This is the mail archive of the gcc@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]
Other format: [Raw text]

Optimization flag causing crash of a multithreaded application


Hi,
While building an application on AIX we have observed that
if the compiler option -O2 is used (we are using g++ 3.2), then
it crashes in libdb2.a (DB2's shared lib) when it tries to connect
to DB2 server (please see attached stack trace in errpt.out).
The aplication uses pthreads.

g++ -O2 flag represents many optimizations. One way we could try
is try to disable / enable each of those flags and find out the flag(s)
which may be inducing the crash.
Can anybody suggest us any other solutions which could resolve this issue?

Thanks,
Abhijit.
-------------------------------------------------------------


Working on AIX 4.3.2.0
Using GCC 3.2 to build my application.

The output of errpt -a gives following info.
-------------------------------------------------
LABEL:          CORE_DUMP
IDENTIFIER:     C60BB505

Date/Time:       Mon Sep 23 16:05:24
Sequence Number: 120
Machine Id:      000C8DDD4C00
Node Id:         kansai
Class:           S
Type:            PERM
Resource Name:   SYSPROC

Description
SOFTWARE PROGRAM ABNORMALLY TERMINATED

Probable Causes
SOFTWARE PROGRAM

User Causes
USER GENERATED SIGNAL

       Recommended Actions
       CORRECT THEN RETRY

Failure Causes
SOFTWARE PROGRAM

       Recommended Actions
       RERUN THE APPLICATION PROGRAM
       IF PROBLEM PERSISTS THEN DO THE FOLLOWING
       CONTACT APPROPRIATE SERVICE REPRESENTATIVE

Detail Data
SIGNAL NUMBER
         11
USER'S PROCESS ID:
      34758
FILE SYSTEM SERIAL NUMBER
         13
INODE NUMBER
     460800
PROGRAM NAME
dbAgent
ADDITIONAL INFORMATION
sqlowque 178
sqloTQMRe A4
sqlccipcc 188
sqlccconn 20
sqle_db2r 744
sqle_db2r 10C4
sqle_data 5834
sqleriar_ 670
sqleStart 888
sqlak_con B48
sqlacall 392C
clp_conne 56C
CLI_sqlCo A9C
SQLConnec D94
SQLDriver 45BC
SQLConnec 6FC
SQLConnec 318
_ZN2sa15D 884
_ZN2sa12D 11C
_ZN16CDB2 3F4
_ZN12CDbl 134
_ZN29CGsa A4
_ZN2sa16C CC
_ZN2sa16C 220
_Z19cache 38
_pthread_ D4
??

Symptom Data
REPORTABLE
1
INTERNAL ERROR
0
SYMPTOM CODE
PCSS/SPI2 FLDS/dbAgent SIG/11 FLDS/sqlowque VALU/178 FLDS/_ZN2sa12D


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