[Bug other/31282] SegV on AIX 5.3 due to uninit'ed static object when using -pthread

2007-03-22 Thread tom dot culliton at oracle dot com


--- Comment #5 from tom dot culliton at oracle dot com  2007-03-22 20:15 
---
That does indeed appear to have been the problem.  Even though the system
claims that APAR was already applied, the header file was still missing the
typedef keyword. I suspect something silly like the compiler being reinstalled
after the patch was applied the first time.

Many thanks!

BTW - This also explains a number of other issues I've seen people report with
duplicate symbols for 'thread_creds_t', but this is the only item that search
turned up in the bug DB that mentions APAR IY90737.


-- 

tom dot culliton at oracle dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282



[Bug other/31282] SegV on AIX 5.3 due to uninit'ed static object when using -pthread

2007-03-20 Thread pinskia at gcc dot gnu dot org


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|blocker |normal
  Component|libstdc++   |other


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282



[Bug other/31282] SegV on AIX 5.3 due to uninit'ed static object when using -pthread

2007-03-20 Thread dje at gcc dot gnu dot org


--- Comment #1 from dje at gcc dot gnu dot org  2007-03-20 21:43 ---
Compiling with -pthread adds -D_THREAD_SAFE to the defined macros, which causes
different header files to be included.  Prior to GCC 4.3, this appears to cause
a non-unique name to be chosen for the global constructor in the file.  When
compiling with -pthread, the first global object seen is:

struct thread_credentials {
 uint flags;
 cred_ext_t cred;
 int reserved[9];
} thread_creds_t;

in /usr/include/sys/thread.h


-- 

dje at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||dje at gcc dot gnu dot org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2007-03-20 21:43:31
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282



[Bug other/31282] SegV on AIX 5.3 due to uninit'ed static object when using -pthread

2007-03-20 Thread dje at gcc dot gnu dot org


--- Comment #2 from dje at gcc dot gnu dot org  2007-03-20 21:47 ---
Andrew Pinski pointed out that this is known with a workaround:

http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=747thread=119546cat=72


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282



[Bug other/31282] SegV on AIX 5.3 due to uninit'ed static object when using -pthread

2007-03-20 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2007-03-20 21:48 ---
http://gcc.gnu.org/ml/gcc-help/2007-03/msg00095.html


According to IBM, the fix for this APAR IY90737 is incorporated into
Service Pack 5300-05-04.

Do you have that installed?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282



[Bug other/31282] SegV on AIX 5.3 due to uninit'ed static object when using -pthread

2007-03-20 Thread dje at gcc dot gnu dot org


--- Comment #4 from dje at gcc dot gnu dot org  2007-03-20 21:48 ---
and more info http://gcc.gnu.org/ml/gcc-help/2007-03/msg00095.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31282