GNU libstdc++ crash 64 bits gcc 3.4.2

F

faria

Hi,

I would like if somedy has had problem with GNU libstdc++ with 64 bits
?

Sometimes I have got a bus error at libstdc++ with gcc 3.4.2
in SUN.

I have used a multithread 64 bits application that loads dynamicly ( as
a application's plugin ) a couple of dinamic libraries. That
application and all your dynamic libraries have a strong use of C++
Standard Librarie.

Sometimes, when the application is running over high load
It has received a bus error. The error is got in the push_back() method
call to a vector object.
I have a limited stack trace got using "mdb" ( see below ), because I
was not able to reproduce the error in development.

I would like know if the error could is or due some libstdc++ bug
either some missing compilation flag ( i have used -fPIC -shared -m64
in shared libraries generation ), either some application bug.

Could somebody gives me any hint/tip ? Below is the stack trace.

Thank you,

Frederico Faria


----------------------------------------------------
Information about the environment


The application is compiled with:
SunOS 5.8 Generic_117350-04 sun4u sparc SUNW,Sun-Fire-V210
GCC 3.4.2

The application runs another SUN:
SunOS 5.9 Generic_118558-04 sun4u sparc SUNW,Sun-Fire-880


Stack Trace:

ffffffff668fcfb1
libstdc++.so.6`_ZN9__gnu_cxx18__exchange_and_addEPVli(1314eb710,
1314eb710, 1314eb718, 1314eb710, 0, ffffffff668fd918)
ffffffff668fd091 0xffffffff6fd786d8(12ad55738, 3, ffffffff6e591a38,
ffffffff668fdaa0, ffffffff668ff250, ffffffff668fd9d8)
ffffffff668fd151
CacheRelatedPlugins.so`_ZN25CurrentTransactionStorage12addAccountIdEjm+0x40(12ad55738,
275946, 275946, 0, 81010100,
ffffffff668fdaa0)
ffffffff668fd211
CacheRelatedPlugins.so`_ZN12PackageCache17registerAccountIdER13ParserContextm+0x4b4(12ad54d00,
ffffffff668ff250, 275946,
117eda898, 81010100, ff00)
 
M

mlimber

faria said:
Hi,

I would like if somedy has had problem with GNU libstdc++ with 64 bits
?

A bit of schadenfreude, eh? ;-)
Sometimes I have got a bus error at libstdc++ with gcc 3.4.2
in SUN.

I have used a multithread 64 bits application that loads dynamicly ( as
a application's plugin ) a couple of dinamic libraries. That
application and all your dynamic libraries have a strong use of C++
Standard Librarie.

Sometimes, when the application is running over high load
It has received a bus error. The error is got in the push_back() method
call to a vector object.
I have a limited stack trace got using "mdb" ( see below ), because I
was not able to reproduce the error in development.

I would like know if the error could is or due some libstdc++ bug
either some missing compilation flag ( i have used -fPIC -shared -m64
in shared libraries generation ), either some application bug.

Could somebody gives me any hint/tip ?
[snip]

You should post in a g++ group since this is a platform-specific
question. See the FAQ for what is on-topic here and for some
suggestions of better groups to post in:

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

Cheers! --M
 
D

dagecko

Le Fri, 20 Jan 2006 06:45:26 -0800, faria a écrit :
Hi,

I would like if somedy has had problem with GNU libstdc++ with 64 bits
?

Sometimes I have got a bus error at libstdc++ with gcc 3.4.2
in SUN.

I have used a multithread 64 bits application that loads dynamicly ( as
a application's plugin ) a couple of dinamic libraries. That
application and all your dynamic libraries have a strong use of C++
Standard Librarie.

Maybe a newer version of gcc (like 4.x) should help ?
 
P

Paul Dubuc

Is your compiler built with the -enable-threads option?
Run "g++ -v" to find out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top