On Nov 22, 2005, at 12:43 AM, Nue Noi wrote:
Hi Phil,
$ gdb build/pc/main.exe
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License,
and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run 2
Starting program: /opt/tinyos-1.x/apps/CntToLedsAndRfm/build/pc/
main.exe
2
SIM: EEPROM system initialized.
SIM: event queue initialized.
SIM: Random seed is 46875
SIM: Initializing sockets
SIM: Created server socket listening on port 10584.
SIM: Created server socket listening on port 10585.
SIM: eventAcceptThread running.
SIM: Time for mote 0 initialized to 34496133.
SIM: commandReadThread running.
SIM: Time for mote 1 initialized to 13882466.
1: BOOT: Scheduling for boot at 0:0:8.62403325.
1: BOOT: Scheduling for boot at 0:0:3.47061650.
1: Popping event for mote 1 with time 0:0:3.47061650.
Program received signal SIGSEGV, Segmentation fault.
0x7c809f64 in KERNEL32!IsBadWritePtr ()
from /cygdrive/c/WINDOWS/system32/kernel32.dll
I even tried "run 2" in Blink. It didn't work as well.
My TinyOS version is 1.1.14. I also modified something following
the beta/TOSSIM-CC2420 which works fine (not tried gdb yet).
I am not sure this is the problem.
Thank you very much for your help.
NueNoi
On 11/21/05, Philip Levis <[EMAIL PROTECTED]> wrote: On Mon,
2005-11-21 at 12:03 +0100, Nue Noi wrote:
> Program received signal SIGSEGV, Segmentation fault.
> 0x7c809f64 in KERNEL32!IsBadWritePtr ()
> from /cygdrive/c/WINDOWS/system32/kernel32.dll
>
>
>
>
> What would be the problem?
> Thank you in advance.
Can you send the stack trace, so I can know what TOSSIM function is
causing the problem?
Phil
When gdb catches the SEGV, type 'where'. That will give you a stack
trace.
Phil
-------
"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."
- T. S. Eliot, 'Little Gidding'
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help