Bug 726598 - Crash in _dl_fixup
Summary: Crash in _dl_fixup
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: glibc
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andreas Schwab
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-29 07:41 UTC by Dominik Strasser
Modified: 2016-11-24 16:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-29 10:13:08 UTC
Target Upstream Version:


Attachments (Terms of Use)
Source code of the binary (475 bytes, text/plain)
2011-07-29 07:41 UTC, Dominik Strasser
no flags Details
Executable that crashes (8.50 KB, application/octet-stream)
2011-07-29 07:42 UTC, Dominik Strasser
no flags Details

Description Dominik Strasser 2011-07-29 07:41:45 UTC
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:

Comment 1 Dominik Strasser 2011-07-29 07:42:23 UTC
Created attachment 515834 [details]
Executable that crashes

Comment 3 Andreas Schwab 2011-07-29 10:13:08 UTC
Your compiler is broken.


Note You need to log in before you can comment on or make changes to this bug.