Hide Forgot
Created attachment 515833 [details] Source code of the binary Description of problem: I have the following setup: GCC 4.1.2 compiled on a RHEL4(CentOs 4) system. If I compile the attached C++ source with this compiler and -O3, the executable crashes with the following backtrace: #0 0x080491f0 in strlen@@GLIBC_2.0 () #1 0x00a12822 in _dl_fixup () from /lib/ld-linux.so.2 #2 0x00a18c60 in _dl_runtime_resolve () from /lib/ld-linux.so.2 #3 0x0019dd3c in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib/libstdc++.so.6 #4 0x08048a24 in main () When compiling with the binary same compiler on CentOs 4, no crash occurs. Leaving away -O3 also doesn't crash. Running the binary produced on CentOS 6, it doesn't crash but produces the warning: Symbol `strlen' has different size in shared object, consider re-linking Version-Release number of selected component (if applicable): gcc 4.1.2 glibc 2.12-1.7 libstdc++ 4.4.4 How reproducible: see above Steps to Reproduce: see above Run the attached binary. Actual results: Expected results: Additional info:
Created attachment 515834 [details] Executable that crashes
Your compiler is broken.