It is unllikely that anyone can tell you anything about what is going on
with your program based on the information you have provided.

You have the tossim source code, you should use a debugger like gdb and run
tossim underneath it and  see where it is throwing the seg fault.

Asking the list like you have won't really go anywhere.

On Wed, Dec 12, 2012 at 11:23 AM, Resul DOĞAN <resul.do...@hotmail.com.tr>wrote:

>
>
> Segmentation fault (core dumped)
>
> #! /usr/bin/python
>
> from TOSSIM import *
> from tinyos.tossim.TossimApp import *
> import sys
>
>
> n = NescApp("Unknown App", "app.xml")
> vars = n.variables.variables()
> t=Tossim(vars)
> r=t.radio()
> gurultu=open("gurultu.txt","r")
> r.add(7,6,-54.0)
> r.add(6,7,-54.0)
> r.add(6,5,-54.0)
> r.add(5,6,-54.0)
> r.add(5,4,-54.0)
> r.add(4,5,-54.0)**r.add(4,3,-54.0)
> r.add(3,4,-54.0)
> r.add(3,2,-54.0)
> r.add(2,3 ,-54.0)
> r.add(2,1,-54.0)
> r.add(1,2,-54.0)
> for satir in gurultu:
>     dizi2=satir.strip()
>     if dizi2:
>         deger=int(dizi2)
>         for i in range(1,8):
>             t.getNode(i).addNoiseTraceReading(deger)
>
>
>
> for i in range(1,8):
>     t.getNode(i).createNoiseModel()
>     t.getNode(i).bootAtTime(4 * t.ticksPerSecond() + 219)
>
>
> t.addChannel("Genel_Bilgi",sys.stdout)
> for i in range(20000):
>   t.runNextEvent()
>
>
>
> *Can anybody tell me what might be the reason*
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to