This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

multi-threaded executable aborts with a core dump when throw is called


I don't understand what's going on. I can't think of any reason why this
happens.

I have a big executable (~ 45 MB). This is a multi-threaded executable.
Whenever it calls throw, program aborts on Redhat 7.0 and 7.1. It works fine
on Redhat 6.2

Test Systems
===========
Redhat Distribution	Kernel Rev	glibc rev
-------------------------------------------------------------------------
6.2			2.2.14-12smp	2.1.3-15
7.0			2.2.17-14smp	2.2-12
7.1			2.4.2-2smp	2.2.2-10

gcc -v output
==========
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)

If I use -lc while linking this executable, resultant executable aborts when
it throws exception on 7.0 and 7.1. Runs fine on 6.2

However, if I link without -lc switch, it works fine on all three platforms.

output of ldd in both the cases (ie- when executable is linked with or
without -lc option) is similar.

Note: executable is always built on RH 6.2 system.

I have a small testcase which runs on 6.2 and 7.1 but fails on 7.0.

Nitin Sane
sane_purushottam@emc.com
*(508)382-7319


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]