473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

GNU libstdc++ crash 64 bits gcc 3.4.2

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_addEP Vli(1314eb710,
1314eb710, 1314eb718, 1314eb710, 0, ffffffff668fd918)
ffffffff668fd091 0xffffffff6fd786d8(12ad55738, 3, ffffffff6e591a38,
ffffffff668fdaa0, ffffffff668ff250, ffffffff668fd9d8)
ffffffff668fd151
CacheRelatedPlugins.so`_ZN25CurrentTransactionStor age12addAccountIdEjm+0x40(12ad55738,
275946, 275946, 0, 81010100,
ffffffff668fdaa0)
ffffffff668fd211
CacheRelatedPlugins.so`_ZN12PackageCache17register AccountIdER13ParserContextm+0x4b4(12ad54d00,
ffffffff668ff250, 275946,
117eda898, 81010100, ff00)

Jan 20 '06 #1
4 2155
faria wrote:
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-lit...t.html#faq-5.9

Cheers! --M

Jan 20 '06 #2
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 ?

Jan 20 '06 #3
Trying a different STL might be worth a shot to isolate the problem.
STLPort is pretty good.

http://www.stlport.org/

Damien

Jan 20 '06 #4
Is your compiler built with the -enable-threads option?
Run "g++ -v" to find out.

--
Paul M. Dubuc
Jan 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fritz Schmidt | last post by:
Hi, I tried to install some small tools for linux.. for one tool i needed libstc+++.so.2.10 ... so in installed it into my /usr/lib but when i then tried to launch ./php i got this error:...
5
by: VoiD | last post by:
Aloha! I'm looking for libstdc++ documentation. I've been searching the net for last 2 days! The best thing I can imagine is a downloadable function and class index with at least short...
0
by: Bit Gossip | last post by:
I find really difficult to understand the doxygen documentation on www.gnu.org. Can someone suggest me some good and easily readable doc or book for libstdc++ V3? Are there man pages available...
3
by: Jürgen Tiedemann | last post by:
Diesen Beitrag setze ich für André Hitzschke ein: Hallo, ich habe ne Frage zu den ganzen "autotools" um das configure-Skript etc. zu erstellen. "autoscan" hat festgestellt, dass die Library...
4
by: angels__tear | last post by:
Hi - I'm creating an application for a communications network that needs to be portable between at least Mandrake Linux 10 and Solaris 9 (obviously, the more portable, the better). I realized...
1
by: Doctor Bones | last post by:
PLease help. I have a decent amount of C++ experience on Windows, but know nothing about Unix. I wrote a simple "Hello World" program on a Solaris box which includes <iostream>. The program...
1
by: VincentWen | last post by:
I am using g++ 3.3.4, and the default libstdc++ version is libstdc++.so.5.0.6,but for some reason, I must use libstdc++-libc6.2-2.so. how could I use the other version libstdc++ library ? I...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
3
by: AndreyS | last post by:
Hi everyone, I am relatively new to C++ and trying to write a program during which I need to generate random numbers with uniform distribution. On g++'s site - the compiler I am using - (version...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.