Bug 190599

Summary: ld.so segfault with glib-debuginfo
Product: [Fedora] Fedora Reporter: Ville Skytt√§ <scop>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-07 21:21:53 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Ville Skyttä 2006-05-03 16:00:11 EDT
For some reason (don't ask), I ended up running ldd -[dr] on some files in
glib-debuginfo, and found that ld.so segfaults with them, reproduced on i386 and
x86_64 here.

$ rpm -qf /lib/ld-linux.so.2
$ rpm -qf /usr/lib/debug/usr/lib/libgthread-1.2.so.0.0.10.debug
$ /lib/ld-linux.so.2 /usr/lib/debug/usr/lib/libgthread-1.2.so.0.0.10.debug
Segmentation fault (core dumped)

gdb backtrace:

Core was generated by `/lib/ld-linux.so.2
Program terminated with signal 11, Segmentation fault.
#0  0x00a77662 in _dl_relocate_object ()
(gdb) bt
#0  0x00a77662 in _dl_relocate_object ()
#1  0x00a70833 in dl_main ()
#2  0x00a8056b in _dl_sysdep_start ()
#3  0x00a6f48f in _dl_start ()
#4  0x00a6d847 in _start ()
Comment 1 Ulrich Drepper 2006-05-07 21:21:53 EDT
There are a gazillion possibilities to create an ill-formed ELF-like file which
will crash when run with ld.so.  I don't see any reason to make ld.so more
complex and waste time which could be used otherwise on this.