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
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
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
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.
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