Re: [Tinyos-help] Segmentation fault in TOSSIM (solved)

2010-07-03 Thread harshalw
Hi, I think I got the problem. I was missing the statement return bufPtr in method: event message_t* Receive.receive(message_t* bufPtr, void* payload, uint8_t len) Adding the above return statement at the end of method removed the segmentation fault. Regards, Harshal > Hi, > I tried running the

Re: [Tinyos-help] Segmentation fault in TOSSIM

2010-07-01 Thread harshalw
Hi, I tried running the code in gdb. I got the following: -- Program received signal SIGSEGV, Segmentation fault. 0xb75a6bca in memcpy () from /lib/tls/i686/cmov/libc.so.6 (gdb) backtrace #0 0xb75a6bca in memcpy () from /lib/tls/i686/cmov/libc.so.6 #1 0x0804f882 in TossimActiveMessageC$M

Re: [Tinyos-help] Segmentation fault in TOSSIM

2010-06-30 Thread Philip Levis
On Jun 29, 2010, at 7:25 AM, harsh...@cse.iitk.ac.in wrote: > Hi, > I have been trying to run a clustering protocol in tinyos2. I have written > some code for some part of the protocol. But whenever I run the code on > TOSSIM, it runs for a few events and then a Segmentation fault is flagged > and

[Tinyos-help] Segmentation fault in TOSSIM

2010-06-29 Thread harshalw
Hi, I have been trying to run a clustering protocol in tinyos2. I have written some code for some part of the protocol. But whenever I run the code on TOSSIM, it runs for a few events and then a Segmentation fault is flagged and simulation stops abruptly. I tried removing the noise model part(i.e.

[Tinyos-help] Segmentation fault in TOSSIM

2010-06-14 Thread Harshal A. Waghmare
Hi, I have been trying to run a clustering protocol in tinyos2. I have written some code for some part of the protocol. But whenever I run the code on TOSSIM, it runs for a few events and then a Segmentation fault is flagged and simulation stops abruptly. I have spent a lot of time in actually loca