[arch-general] [gcc-4.3] segfault when runnung -O3 compiled c++ code
Johannes Held
mail at hehejo.de
Thu Jun 26 05:17:20 EDT 2008
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/arch-general/attachments/20080626/3b5d1660/attachment.pgp>
More information about the arch-general
mailing list