If you application uses valloc(), be careful to use with libmalloc.so on Solaris 10.
Solaris 10's libmalloc (at least for several versions I tested) does
not have implementation of valloc(), then valloc() is called from libc
but free() is called from libmalloc, this will cause core dump.
You can use DTrace to check it. For example:
~/tmp$ dtrace -qn 'pid$target::valloc:entry {ustack();}' -c ./a.out
To check if you libmalloc has valloc:
$ elfdump /usr/lib/libmalloc.so|grep valloc
No comments:
Post a Comment