Re: [gcc-4.3.1][c++] weird segfault with -O3 in constructor of a global object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag 26 Juni 2008 01:19:37 schrieb Tom Browder:
> On Wed, Jun 25, 2008 at 12:09 PM, Maik Beckmann
>
> <beckmann.maik@xxxxxxxxxxxxxx> wrote:
> > Hello,
> >
> > This code
>
> ...
>
> > compiled with
> >  g++ -O3 test.cpp -o test
> > segaults on my x86-64 linux box.
>
> It works OK for me.
>
> > I compiled it with -g
> >  g++ -O3 -g test.cpp -o test
>
> Ditto.
>
> Using g++-4.3.1.  What are you using?
>
> -Tom
>
> Tom Browder
> Niceville, Florida
> USA

g++-4.3.1, compiled with the attached PKBUILD on my arch linux system.  Hm, I 
bumped the version number of the 4.3.0 PKBUILD to build 4.3.1 .  Tomorrow 
I'll do a vanilla build.


Thanks,
 -- Maik

Attachment: PKGBUILD
Description: application/shellscript

diff -Naur gcc-4.2.0.orig/gcc/config/i386/linux64.h gcc-4.2.0/gcc/config/i386/linux64.h
--- gcc-4.2.0.orig/gcc/config/i386/linux64.h	2007-05-16 19:21:19.000000000 -0400
+++ gcc-4.2.0/gcc/config/i386/linux64.h	2007-05-18 17:04:05.000000000 -0400
@@ -49,8 +49,8 @@
    When the -shared link option is used a final link is not being
    done.  */
 
-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
+#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux-x86-64.so.2"
 
 #undef	LINK_SPEC
 #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
diff -Naur gcc-4.2.0.orig/gcc/config/i386/t-linux64 gcc-4.2.0/gcc/config/i386/t-linux64
--- gcc-4.2.0.orig/gcc/config/i386/t-linux64	2007-05-16 19:21:19.000000000 -0400
+++ gcc-4.2.0/gcc/config/i386/t-linux64	2007-05-18 17:04:36.000000000 -0400
@@ -6,7 +6,7 @@
 
 MULTILIB_OPTIONS = m64/m32
 MULTILIB_DIRNAMES = 64 32 
-MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
+MULTILIB_OSDIRNAMES = ../lib ../lib32
 
 LIBGCC = stmp-multilib
 INSTALL_LIBGCC = install-multilib

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux