Thanks, Kurt and Phil.
As you two pointed out the different aspects,
I am still not sure if it is due to my own mistake, or Tossim's problem
with the newest gcc.
But, regarding that my simulation stops when there is no event in the
middle of running and I have already spent plenty of time in debugging,
I think I now need to go in depth toward gcc version conflict issue.

Thanks again anyway.

Jinkyu Koo



On Oct 26, 2009, at 2:10 PM, Peterskurt wrote:

>>
>>
>> Date: Mon, 26 Oct 2009 14:27:16 -0400
>> From: Jinkyu Koo <[email protected]>
>> Subject: [Tinyos-help] segmentation fault
>> To: [email protected]
>> Message-ID: <1256581636.8164.5.ca...@jinkyu-laptop>
>> Content-Type: text/plain
>>
>> Dear all,
>>
>> Have you ever see "segmentation fault" error message which stops
>> TOSSIM
>> running?
>> In tutorial page, it is told that it may be caused by gcc version
>> conflict. But I wonder if there can be any other reason for this.
>>
>> Any help is appreciated.
>>
>> Thanks,
>> Jinkyu Koo
>
> I've received a segmentation fault when I cast the payload of an
> AMMessage to too long or short of my data type.
> Kurt

http://en.wikipedia.org/wiki/Segmentation_fault

"A segmentation fault occurs when a program attempts to access a  
memory location that it is not allowed to access, or attempts to  
access a memory location in a way that is not allowed (for example,  
attempting to write to a read-only location, or to overwrite part of  
the operating system)."

You have a memory access bug in your program.

Phil
________________


_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to