Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-07-01 Thread Maik Beckmann
Am Freitag 27 Juni 2008 09:18:17 schrieb Maik Beckmann:
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36648

Bug has been fixed.

Best,
 -- Maik





Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-27 Thread Maik Beckmann
Am Donnerstag 26 Juni 2008 10:13:13 schrieb Maik Beckmann:
 Hi,

 Can someone confirm that this
   http://codepad.org/I313t7BN
 compiled with
   g++ -O3 test.cpp -o test
 gives a segfault when trying to run it via
   ./test
 ??

 I mailed to the gcc-help list regarding this issue:
   http://thread.gmane.org/gmane.comp.gcc.help/24804

 Thanks,
  -- Maik

 PS: I'm on arch64, no testing no unstable.

I just managed to debootstrap ubuntu hardy amd64 to a partition.  Same 
segfault! Thank you people for helping me hunting down this bug.  I'll file a 
bug report to gcc.

-- Maik



Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-27 Thread Fredrik Eriksson

Ahh, nevermind :P
I missed that you wrote you're on arch64, i'm still on 32bits :P

Best Regards
Fredrik Eriksson


Maik Beckmann wrote:

Am Donnerstag 26 Juni 2008 10:13:13 schrieb Maik Beckmann:
  

Hi,

Can someone confirm that this
  http://codepad.org/I313t7BN
compiled with
  g++ -O3 test.cpp -o test
gives a segfault when trying to run it via
  ./test
??

I mailed to the gcc-help list regarding this issue:
  http://thread.gmane.org/gmane.comp.gcc.help/24804

Thanks,
 -- Maik

PS: I'm on arch64, no testing no unstable.



I just managed to debootstrap ubuntu hardy amd64 to a partition.  Same 
segfault! Thank you people for helping me hunting down this bug.  I'll file a 
bug report to gcc.


-- Maik


  





Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Angus Gibson

On 26/06/2008, at 6:13 PM, Maik Beckmann wrote:


Hi,

Can someone confirm that this
 http://codepad.org/I313t7BN
compiled with
 g++ -O3 test.cpp -o test
gives a segfault when trying to run it via
 ./test


Using gcc 4.3.1 on arch32, I don't get a segfault.



Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Hannes Rist
Maik Beckmann [EMAIL PROTECTED] writes:

 Hi,

 Can someone confirm that this
   http://codepad.org/I313t7BN
 compiled with
   g++ -O3 test.cpp -o test
 gives a segfault when trying to run it via
   ./test
 ??

 I mailed to the gcc-help list regarding this issue:
   http://thread.gmane.org/gmane.comp.gcc.help/24804

 Thanks,
  -- Maik

 PS: I'm on arch64, no testing no unstable.

Same here with:
 [EMAIL PROTECTED] %gcc -v
 Using built-in specs.
 Target: x86_64-unknown-linux-gnu
 Configured with: ../configure --prefix=/usr --enable-shared 
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix 
--mandir=/usr/share/man --enable-__cxa_atexit --disable-multilib 
--libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu 
--disable-libstdcxx-pch --with-tune=generic
 Thread model: posix
 gcc version 4.3.1 (GCC)

Arch64

up to date:
[testing]
[core]
[extra]
[community]



Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Johannes Held
 Can someone confirm that this
   http://codepad.org/I313t7BN
 compiled with
   g++ -O3 test.cpp -o test
 gives a segfault when trying to run it via
   ./test
same here:

11:14:33 [~/idownload]
cat test.cpp 
struct Vector {
  Vector() : x(0), y(0), z(0) { }  
  float x,y,z;
};

struct Foo { 
  int dummy; // commenting this out makes it run perfectly
  Vector array_of_vectors[4];
};

Foo foo;

int main() { }
11:14:35 [~/idownload]
g++ -O3 test.cpp -o test
11:14:54 [~/idownload]
./test 
Speicherzugriffsfehler
11:14:57 [~/idownload]
g++ --version
g++ (GCC) 4.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.

11:15:07 [~/idownload]
uname -a
Linux Sarah 2.6.25-ARCH #1 SMP PREEMPT Sat Jun 14 17:44:19 CEST 2008 x86_64
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz GenuineIntel GNU/Linux 11:15:11
[~/idownload]


-- 
Gruß, Johannes
Täglich http://blog.hehejo.de und du fühlst dich gut.

http://cryptocd.eduforge.org/online_version


signature.asc
Description: PGP signature


Re: [arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code

2008-06-26 Thread Dincer Celik

Worked seamlessly on Arch32.

# gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared 
--enable-languages=c,c++,fortran,objc,obj-c++,treelang 
--enable-threads=posix --mandir=/usr/share/man --enable-__cxa_atexit 
--disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib 
--enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic

Thread model: posix
gcc version 4.3.1 (GCC)

Dincer Celik ~ [EMAIL PROTECTED] ~ [EMAIL PROTECTED] ~ 
http://dincercelik.com/pub.asc


Please encrypt every mail you can. Privacy is your right. Don't let 
anyone take it from you. Look at GnuPG or PGP and ask for my key D352EEBA.



Maik Beckmann wrote:

Hi,

Can someone confirm that this
  http://codepad.org/I313t7BN
compiled with
  g++ -O3 test.cpp -o test
gives a segfault when trying to run it via
  ./test
??

I mailed to the gcc-help list regarding this issue:
  http://thread.gmane.org/gmane.comp.gcc.help/24804

Thanks,
 -- Maik

PS: I'm on arch64, no testing no unstable.