On Mon, 24 Dec 2007, [EMAIL PROTECTED] wrote: > >> Hi >> I don't find a core dump generated when a SIGSEGV is received. I set the >> LD_PRELOAD variable to watchmalloc.so.1 but could not find the actual >> place of seg. fault as the core dump file is not generated. (I got the >> stack trace I pasted when I attached mdb to the process) I don't have a >> Sun studio compiler to run dbx. >> Any more tools with which I can debug futher? > > You can use "coreadm" to redirect the core someplace. > > Does your program call "chdir()"? If so, the core dump will be elsewhere. > > Note that with watchmalloc.so.1 you will also need to set some other > variables.
... which are, like all good Solaris features, documented in the manpages, watchmalloc(3MALLOC) in that case :) watchmalloc and libumem are somewhat complementary, some problems are easier to track with one some easier with the other. Merry christmas, FrankH. _______________________________________________ opensolaris-discuss mailing list [email protected]
