Hi Phil,
 That fix works, I am trying to push the simulation to around 990 nodes :) seems to be working. Will see how the results come out and will keep you posted on this.

Thanks again for all the help,
regards,
Avinash

On 3/10/06, Avinash Sridharan <[EMAIL PROTECTED]> wrote:
Hi Phil,
 Again thanks a lot. I think thats the behaviour I am observing. The minute I step beyond 100 the simulation segfaults at boot up. Will try the fix and get back to you.

Thanks,
Avinash


On 3/10/06, Philip Levis <[EMAIL PROTECTED]> wrote:
On Mar 9, 2006, at 7:21 PM, Avinash Sridharan wrote:

> Hi Phil,
>
>

There's a bug in the beta that prevents you from simulating more than
100 nodes. It's in tos/chips/atm128/sim/atm128hardware.h:

uint8_t atm128RegFile[100][0xa0];

should be

uint8_t atm128RegFile[TOSSIM_MAX_NODES][0xa0];

I thought I had checked the fix into CVS, but it looks like it's not
there yet. I'll check it in today.

If you don't have this fix then the simulation segfaults pretty
quickly. The way I saw it manifest was a node >100 tried to modify
its clock register and instead corrupted the memory for the logging
system, leading TOSSIM to think there were a bazillion output
channels for a dbg statement and segfaulting when it ran off the end
of a length 0 array.

Phil



--
Phd Dept. of Electrical Engineering
University of Southern California
http://www-scf.usc.edu/~asridhar



--
Phd Dept. of Electrical Engineering
University of Southern California
http://www-scf.usc.edu/~asridhar
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to