Hi,

We have an application that sends packets. It also print the packets on 
the serial port. There are also some other complex tasks carried out by 
the application. We have debug that application throughly and found out 
that TinyOS function CC1000SendReceiveP$listenData somehow overwrites 
the c-stack. It leads to the application get halt as a return method of 
a function now points to an invalid address.
We have checked our code and was not able to find any mistake. Please 
guide us how can we fix this or give us any ideas?
Is that errror could be called because of non-atomic regions accessing 
data? However, we have no asyn functions. What could be the reason of this?

I will be very thankful with some replies.

-- 
best regards,

Faisal Aslam
Ph.D. Candidate
University of Freiburg, Germany
http://cone.informatik.uni-freiburg.de/people/aslam/



Luminous Fennell wrote:
> Hi Faisal,
>
> so the error is that the return address on the c-stack is overwritten.
> This happens in a tinyOs function (CC1000SendReceiveP$listenData). I
> don't know why the stack is overwritten.. it has nothing to do with the
> TakaTuka-Memory (when I make it smaller nothing changes wrt the error).
> Perhaps it's a compiler problem (with -Os??). 
>
> We perhaps could ask on the tinyOs mailing list, if there are problems
> when the function calls are too nested (even though the stack is NOT
> colliding with a reserved memory region, there are 664 bytes between the
> stack and .bss (the memory used by the vm) left when the error occurs).
>
> Anyway I will try some more things on wednesday morning perhaps...
>
> have a nice evening
>
> Lu
>
>   


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

Reply via email to