$ i486-gnu-linux-g++ -v Using built-in specs. Target: i486-gnu-linux Configured with: ../configure --target=i486-gnu-linux --prefix=/local/devel/toolchain41/i486-gnu-linux --libdir=/local/devel/toolchain41/i486-gnu-linux/lib --libexecdir=/local/devel/toolchain41/i486-gnu-linux/lib --with-slibdir=/local/devel/toolchain41/i486-gnu-linux/lib --with-sysroot=/local/devel/toolchain41/i486-gnu-linux --disable-multilib --disable-nls --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --enable-symvers=gnu Thread model: posix gcc version 4.1.1 20060405 (prerelease) (PLD-Linux)
$ i486-gnu-linux-g++ \ -I/local/devel/buildenv41/i486-gnu-linux/STLport/include/stlport \ -L/local/devel/buildenv41/i486-gnu-linux/STLport/lib \ testDrv.cpp -o testDrv --save-temps -pthread \ -Wl,-rpath,/local/devel/buildenv41/i486-gnu-linux/STLport/lib \ -lstlport -nodefaultlibs -lc -O2 Program received signal SIGSEGV, Segmentation fault. 0x55674c91 in free () from /lib/tls/libc.so.6 (gdb) bt #0 0x55674c91 in free () from /lib/tls/libc.so.6 #1 0x555ded2b in operator delete () from /local/devel/buildenv41/i486-gnu-linux/ STLport/lib/libstlport.so.5.0 #2 0x08048d19 in main () testcase works with 3.3.6, 3.4.x and 4.1.x(-fno-strict-aliasing). 4.0.x and 4.2.x not tested. 4.1.x(-fstrict-aliasing) causing segv in the testcase. -Wall -Wstrict-aliasing=2 says nothing :( -- Summary: SIGSEGV in operator delete() / wrong-code? Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pluto at agmk dot net GCC build triplet: i486-linux GCC host triplet: i486-linux GCC target triplet: i486-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27156