[ECOS] sscanf() vs. fgetc()
Peter Graf
p.graf@itknet.de
Thu Jul 12 07:43:00 GMT 2001
Hi Jonathan,
>> Which priority value did you have for the sscanf() thread?
>> I had the default of "10", which means lower priority than
>> the "9" in the fgetc() thread.
>
>I used exactly your code, the only change being the serial port name
>(because it has to be for the PC).
Just asked because I didn't exeplicitely set the main() priority.
You might have a different default.
>Try recompiling eCos without optimization, i.e. editting
>CYGBLD_GLOBAL_CFLAGS and doing a "make clean" and then a rebuild.
Yes, I did.
>Once you've compiled without optimization hopefully that will avoid the
>SIGTRAPs.
>Can you then at least give a summary of what functions you enter
>as you single step? Or cut and paste a step session?
sscanf (s=0x811472c "\b\021GL\b\021GP128.128.128.122", format=0x70707070 ...)
vsscanf (s=0x8008690 ...)
__strlen (s=0x202000d "")
cyg_check_data_ptr (ptr=0x202000a)
cyg_check_data_ptr (ptr=0x810df38)
Cyg_Scheduler::unlock_inner (new_lock=0)
Cyg_Thread::check_this (this=0x400001f0, zeal=134416118)
Cyg_Scheduler::unlock_inner (new_lock=0)
Cyg_HardwareThread::check_stack (this=0x0)
Cyg_HardwareThread::get_stack_base (this=0x8084220)
Cyg_HardwareThread::check_stack (this=0x810df38)
Cyg_Scheduler::unlock_inner (new_lock=0)
Cyg_Scheduler::unlock_inner (new_lock=0)
cyg_check_data_ptr (ptr=0x803075a)
Cyg_Scheduler::unlock_inner (new_lock=0)
Cyg_Thread::check_this (this=0x40000100, zeal=134416294)
Program received signal SIGTRAP, Trace/breakpoint trap.
Do you have an idea which common resources sscanf() and fgetc()
might share?
Peter
More information about the Ecos-discuss
mailing list