> 6/18/12 7:20:10 AM [0x0-0x2ae0ade].com.4d.4d[83527] 4D(83527,0xb6689000) 
> malloc: *** mmap(size=16777216) failed (error code=12)
> 6/18/12 7:20:10 AM [0x0-0x2ae0ade].com.4d.4d[83527] *** error: can't allocate 
> region
> 6/18/12 7:20:10 AM [0x0-0x2ae0ade].com.4d.4d[83527] *** set a breakpoint in 
> malloc_error_break to debug
> 6/18/12 7:20:10 AM [0x0-0x2ae0ade].com.4d.4d[83527] terminate called after 
> throwing an instance of 'std::bad_alloc'
> 6/18/12 7:20:10 AM [0x0-0x2ae0ade].com.4d.4d[83527]  what():  std::bad_alloc

That is definitely failure to allocate memory.


> (2) The crash occurs in my modified active4D shell when the NTK 
> "TCP_Lookahead_Blob" command is called.

You should contact Rob Lavaux then, there could be a leak in that command.


> My question is what would be the best way to:
> 
> (a) verify that we have a memory leak, and

You could use in Terminal:

top -stats command,vsize -pid <4D pid> -s 60 -l 0 | awk /^4D Server/

This would output the total memory usage including virtual memory every minute. 
Change "4D Server" in /^4D Server/ to whatever the beginning of the name of the 
4D process.


> (b) isolate the cause.

If there is any way you can not use TCP_Lookahead_Blob that would be a start.

Regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to