This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libc core dump
- From: "Olenin, Vladimir" <vladimir dot olenin at bgminteractive dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Wed, 23 Jan 2002 15:00:54 -0500
- Subject: libc core dump
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