Hello guys !
I obtained the following messages from gdb. Can anybody tell me why does the
segmentation fault occur ?
...
...
dbg (mode=256, format=0x418ce0 "Sending message: %hx, %hhx\n\t") at
/opt/tinyos-1.x/tos/types/dbg.h:104
104 if (! dbg_suppress_stdout) {
(gdb) step
105 va_start(args, format);
(gdb) step
107 fprintf(stdout, "%i: ", NODE_NUM);
(gdb) step
108 vfprintf(stdout, format, args);
(gdb) step
1: Sending message: ffff, 7e
112 }
(gdb) step
AMStandard$SendMsg$send (id=126 '~', addr=65535, length=28 '\034',
data=0x5bd034) at /opt/tinyos-1.x/tos/system/AMStandard.nc:199
199 dbgPacket(data);
(gdb) step
AMStandard$dbgPacket (data=0x5bd034) at /opt/tinyos-1.x
/tos/system/AMStandard.nc:135
135 for(i = 0; i < sizeof(TOS_Msg); i++)
(gdb) step
137 dbg_clear(DBG_AM, "%02hhx ", ((uint8_t *)data)[i]);
(gdb) step
dbg_clear (mode=256, format=0x4161a6 "%02hhx ") at /opt/tinyos-1.x
/tos/types/dbg.h:117
117 if (dbg_active(mode)) {
(gdb) step
dbg_active (mode=256) at /opt/tinyos-1.x/tos/types/dbg.h:82
82 return (dbg_modes & mode) != 0;
(gdb) step
83 }
(gdb) step
dbg_clear (mode=256, format=0x4161a6 "%02hhx ") at /opt/tinyos-1.x
/tos/types/dbg.h:119
119 if (!(mode & DBG_SIM)) {
(gdb) step
120 va_start(args, format);
(gdb) step
121 vsnprintf(ev.debugMessage, sizeof(ev.debugMessage), format, args);
(gdb) step
Program received signal SIGSEGV, Segmentation fault.
0x7c809eb4 in KERNEL32!IsBadWritePtr () from
/cygdrive/c/WINDOWS/system32/kernel32.dll
Many many thanks!
Joseph
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help