libc core dump

Olenin, Vladimir vladimir.olenin@bgminteractive.com
Wed Jan 23 13:25:00 GMT 2002


Hi,

I'm having some really weird problems using shared library from multiple
Java threads. The deal is that from time to time during stress test I'm
getting core dump from libc (it's always either "strlen" or "atoi" call).
Partly this problem was eliminated by upgrading from 2.8 to 3.0.3 compiler,
but it still occurs in some situations.

Does anyone has an idea what might be causing this error? I've tried various
flags to compile (-pthread, etc, etc), but the problems hasn't dissappeared
completely. Might it be because I'm using precompiled gcc (is it compiled
with --enable-threads flag)? Or some particular flags should be used beyound
-pthread? Could it be because of X Window libraries we r linking with? Or it
can be the problem of calling native library from MT Java application
(though various docs say it's completely safe providing that native library
is MT-safe)?

System configuration is Solaris 2.6, gcc 3.0.3.

Any help would be greately appreciated! Thanks in advance,

vladimir



More information about the Gcc mailing list