Re: Core in a multithread application in AIX using RogueWave



"jmartin" <jorge.jose.martin@xxxxxxx> writes:

I get a core un our application in a point that belongs to internal
libraries.

No, you don't. You get a crash inside malloc/free implementation.
With 99.9999% probability, this is a result of heap corruption.

The compilation is theorically thread safe using the -
qthreaded compiler and linker option. I have seem that the RogueWave
libraries were not built using that option. Could be that?

Yes, theoretically it could be that.
But an application bug is much more likely.

Use "heap debugging" tools. Start with this one:
http://www.redbooks.ibm.com/redbooks/SG245674/wwhelp/wwhimpl/java/html/wwhelp.htm
and go to 4.2.4 The debug malloc allocator.

Other tools that may help: Purify, Valgrind (linux-only), Insure++,
ZeroFault.

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.



Relevant Pages

  • Re: Core in a multithread application in AIX using RogueWave
    ... You get a crash inside malloc/free implementation. ... this is a result of heap corruption. ... qthreaded compiler and linker option. ... The bare-minimum debug malloc that is inbuilt into ...
    (comp.unix.aix)
  • Re: VC6/SP5 MFC Linker?
    ... All it means is that you included libraries whose functions are never called, ... I think there is a linker option to suppress this ... >following warnings. ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)
  • Paths for finding own shared libraries
    ... Program has more shared libraries. ... $LD_LIBRARY_PATH (it's affected child processes). ... linker option, but I know right paths for libraries only during ... I find solutions with changing rpath in .so files. ...
    (comp.os.linux.development.apps)
  • Paths for finding own shared libraries
    ... Program has more shared libraries. ... $LD_LIBRARY_PATH (it's affected child processes). ... linker option, but I know right paths for libraries only during ... I find solutions with changing rpath in .so files. ...
    (comp.os.linux.development.apps)
  • Re: Multiply defined symbols while linking with Workshop 6 ...
    ... > I must link an application with 2 libraries. ... (look for linker scoping specifiers). ... You can try using the linker option "-z muldefs" ...
    (comp.unix.solaris)