public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
@ 2011-10-10 13:46 barry_matheney at yahoo dot com
  2011-10-10 13:52 ` [Bug c++/50685] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: barry_matheney at yahoo dot com @ 2011-10-10 13:46 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50685
           Summary: Compiler segmentation fault on AIX when constructors
                    and destructors are implemented in the implementation
                    file (non-inline).
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: barry_matheney@yahoo.com


Created attachment 25453
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25453
detailed output for the good.cpp and bad.cpp compile runs

username@aixhost:~/code/aix1-->cat good.cpp
#include <iostream>
#include <string>
using namespace std;

class MyClass
{
  public:
    int x;
    MyClass(){ x = 0;};
    int GetX();
};

int MyClass::GetX()
{
  return x;
}

int main()
{
  cout << "Hello world!" << endl;
  return 0;
}
username@aixhost:~/code/aix1-->g++ -v -save-temps good.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/lto-wrapper
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.6.1/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware
--mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-threads
--enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd
--host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.6.1 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/cc1plus -E -quiet -v
-D_ALL_SOURCE good.cpp -fpch-preprocess -o good.ii
ignoring nonexistent directory
"/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/../../../../powerpc-ibm-aix5.3.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include/c++

/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include/c++/powerpc-ibm-aix5.3.0.0
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include/c++/backward
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include
 /usr/local/include
 /opt/freeware/include
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/cc1plus -fpreprocessed
good.ii -quiet -dumpbase good.cpp -auxbase good -version -o good.s
GNU C++ (GCC) version 4.6.1 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.6.1, GMP version 4.3.2, MPFR version
2.4.2-p1, MPC version 0.8.1
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
GNU C++ (GCC) version 4.6.1 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.6.1, GMP version 4.3.2, MPFR version
2.4.2-p1, MPC version 0.8.1
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
Compiler executable checksum: 68e3d0057093920041387ac67e49bcf7
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /usr/bin/as -u -mppc -o good.o good.s
COMPILER_PATH=/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/:/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/:/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/
LIBRARY_PATH=/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/:/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/collect2
-bpT:0x10000000 -bpD:0x20000000 -btextro -bnodelcsect /lib/crt0.o
-L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1
-L/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/../../.. good.o -lstdc++
-lm -lgcc_s /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/libgcc.a -lc
-lgcc_s /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/libgcc.a
username@aixhost:~/code/aix1-->cat bad.cpp
#include <iostream>
#include <string>
using namespace std;

class MyClass
{
  public:
    int x;
    MyClass();
    int GetX();
};

MyClass::MyClass()
{
  x = 0;
}
int MyClass::GetX()
{
  return x;
}

int main()
{
  cout << "Hello world!" << endl;
  return 0;
}
username@aixhost:~/code/aix1-->g++ -v -save-temps bad.cpp
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/lto-wrapper
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.6.1/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware
--mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-threads
--enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd
--host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.6.1 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/cc1plus -E -quiet -v
-D_ALL_SOURCE bad.cpp -fpch-preprocess -o bad.ii
ignoring nonexistent directory
"/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/../../../../powerpc-ibm-aix5.3.0.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include/c++

/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include/c++/powerpc-ibm-aix5.3.0.0
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include/c++/backward
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include
 /usr/local/include
 /opt/freeware/include
 /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.1/cc1plus -fpreprocessed
bad.ii -quiet -dumpbase bad.cpp -auxbase bad -version -o bad.s
GNU C++ (GCC) version 4.6.1 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.6.1, GMP version 4.3.2, MPFR version
2.4.2-p1, MPC version 0.8.1
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
GNU C++ (GCC) version 4.6.1 (powerpc-ibm-aix5.3.0.0)
        compiled by GNU C version 4.6.1, GMP version 4.3.2, MPFR version
2.4.2-p1, MPC version 0.8.1
warning: MPC header version 0.8.1 differs from library version 0.9.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=32768
Compiler executable checksum: 68e3d0057093920041387ac67e49bcf7
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-shared-libgcc'
 /usr/bin/as -u -mppc -o bad.o bad.s
g++: internal compiler error: Segmentation fault (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
username@aixhost:~/code/aix1-->


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/50685] Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
  2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
@ 2011-10-10 13:52 ` paolo.carlini at oracle dot com
  2011-10-10 14:34 ` dje at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-10 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-10 13:52:34 UTC ---
David, can you have a look? Note, if I understand correctly *as* is
segfaulting, not the compiler!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/50685] Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
  2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
  2011-10-10 13:52 ` [Bug c++/50685] " paolo.carlini at oracle dot com
@ 2011-10-10 14:34 ` dje at gcc dot gnu.org
  2011-10-10 15:07 ` barry_matheney at yahoo dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu.org @ 2011-10-10 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

David Edelsohn <dje at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011-10-10
     Ever Confirmed|0                           |1

--- Comment #2 from David Edelsohn <dje at gcc dot gnu.org> 2011-10-10 14:31:54 UTC ---
AIX 5.3 has had many updates, so this bug report does not provide enough
information to know exactly which version of AIX as was used, not that I have
access to the exact version to reproduce it.  It works on my system.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/50685] Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
  2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
  2011-10-10 13:52 ` [Bug c++/50685] " paolo.carlini at oracle dot com
  2011-10-10 14:34 ` dje at gcc dot gnu.org
@ 2011-10-10 15:07 ` barry_matheney at yahoo dot com
  2011-10-10 15:14 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: barry_matheney at yahoo dot com @ 2011-10-10 15:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Barry Matheney <barry_matheney at yahoo dot com> 2011-10-10 15:07:23 UTC ---
oslevel -s
5300-11-05-1036

aix 5.3   TL  11   and sp = 5 1036

Is there some specific level that it needs to be brought up to that will
correct the issue?


(In reply to comment #2)
> AIX 5.3 has had many updates, so this bug report does not provide enough
> information to know exactly which version of AIX as was used, not that I have
> access to the exact version to reproduce it.  It works on my system.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/50685] Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
  2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
                   ` (2 preceding siblings ...)
  2011-10-10 15:07 ` barry_matheney at yahoo dot com
@ 2011-10-10 15:14 ` rguenth at gcc dot gnu.org
  2011-10-10 19:01 ` dje at gcc dot gnu.org
  2011-10-11 11:11 ` barry_matheney at yahoo dot com
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-10 15:14 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-10 15:13:17 UTC ---
Not a GCC bug.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/50685] Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
  2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
                   ` (3 preceding siblings ...)
  2011-10-10 15:14 ` rguenth at gcc dot gnu.org
@ 2011-10-10 19:01 ` dje at gcc dot gnu.org
  2011-10-11 11:11 ` barry_matheney at yahoo dot com
  5 siblings, 0 replies; 7+ messages in thread
From: dje at gcc dot gnu.org @ 2011-10-10 19:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from David Edelsohn <dje at gcc dot gnu.org> 2011-10-10 19:00:22 UTC ---
AIX 5.3 TL10 (as well as AIX 6.1 TL05 and AIX 7.1 TL00) instroduced AIX
assembler changes with some bugs.  An AIX iFix for AIX 5.3 is available (APAR
IZ98385 for AIX 5.3 TL10, APAR IZ98477 for AIX 5.3 TL11 and IZ98134 for AIX 5.3
TL12).  I know the assembler fixes address another bug with the assembler
generating corrupt object files, but I do not know if it fixes this bug of the
assembler crashing.

This is an AIX bug and you need to contact AIX Customer Support.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/50685] Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline).
  2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
                   ` (4 preceding siblings ...)
  2011-10-10 19:01 ` dje at gcc dot gnu.org
@ 2011-10-11 11:11 ` barry_matheney at yahoo dot com
  5 siblings, 0 replies; 7+ messages in thread
From: barry_matheney at yahoo dot com @ 2011-10-11 11:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Barry Matheney <barry_matheney at yahoo dot com> 2011-10-11 11:11:22 UTC ---
Thanks David for all of your insight and info.  I will forward this info to our
sysadmins to further investigate this assembler issue.

(In reply to comment #5)
> AIX 5.3 TL10 (as well as AIX 6.1 TL05 and AIX 7.1 TL00) instroduced AIX
> assembler changes with some bugs.  An AIX iFix for AIX 5.3 is available (APAR
> IZ98385 for AIX 5.3 TL10, APAR IZ98477 for AIX 5.3 TL11 and IZ98134 for AIX 5.3
> TL12).  I know the assembler fixes address another bug with the assembler
> generating corrupt object files, but I do not know if it fixes this bug of the
> assembler crashing.
> 
> This is an AIX bug and you need to contact AIX Customer Support.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-11 11:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-10 13:46 [Bug c++/50685] New: Compiler segmentation fault on AIX when constructors and destructors are implemented in the implementation file (non-inline) barry_matheney at yahoo dot com
2011-10-10 13:52 ` [Bug c++/50685] " paolo.carlini at oracle dot com
2011-10-10 14:34 ` dje at gcc dot gnu.org
2011-10-10 15:07 ` barry_matheney at yahoo dot com
2011-10-10 15:14 ` rguenth at gcc dot gnu.org
2011-10-10 19:01 ` dje at gcc dot gnu.org
2011-10-11 11:11 ` barry_matheney at yahoo dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).