[ns] [Q] Packet::alloc problem..

Park, Pusik parksik at keti.re.kr
Mon Feb 23 21:26:47 PST 2004


I wanna simulate my wireless mac.

Packet::alloc() function give me a problem.

void sendRTS()
{
    Packet *p = Packet::alloc();   <--- segmentation fault.
    .....
}

The below message appeared by the upper code.


Program received signal SIGSEGV, Segmentation fault.
chuck_alloc (ar_ptr=0x402e3620, nb=97) at malloc.c: 2929
2929   malloc.c: No such file or directory.
          in malloc.c
(gdb)



Help me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gamma.isi.edu/pipermail/ns-users/attachments/20040224/212f37c3/attachment.html


More information about the Ns-users mailing list