[ns] question about memory management

cazeau phil cazeauphil at yahoo.fr
Tue Jun 28 01:08:37 PDT 2005


Hi,

I'm not sure to understand this part: " The []free
method frees a packet by returning it to the free
list. Note that packets are never returned to the
system's memory allocator. Instead, they are stored on
a free list when []Packet::free is called. "

In that case (" packets are never returned to the
system's memory allocator ") how is it possible to
clean the used memory during segmentation fault?
Is it the function of the PURIFY ns-method ?
if yes  how can I use it?

Thank you,
I really need some help or advice to debugg a
segmentation fault...

ciao
philippe  
	

--- cazeau phil <cazeauphil at yahoo.fr> a écrit :

> 
> I had the bad surprise to become this error after
> debugging my script with valgrind:
> "ns: scheduler going backwards in time from
> 52.637856
> to 52.637012."
> 
> but this error doesn't happen when I run the same
> script without valgrind.
> 
> So what's the conclusion? Is there an error in the
> script or is it just a problem due to the use of
> valgrind?
> 
> Thank you
> 
> 
> 
> 
> 
> 	
> 
> 	
> 		
>
___________________________________________________________________________
> 
> Appel audio GRATUIT partout dans le monde avec le
> nouveau Yahoo! Messenger 
> Téléchargez cette version sur
> http://fr.messenger.yahoo.com
> 
> 



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com



More information about the Ns-users mailing list