This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4018] New: segfault in ld.so on amd64
- From: "Petr dot Salinger at seznam dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Feb 2007 18:01:38 -0000
- Subject: [Bug libc/4018] New: segfault in ld.so on amd64
- Reply-to: sourceware-bugzilla at sourceware dot org
Hi.
ld.so in glibc 2.5 SIGSEGVs on GNU/kFreeBSD on amd64.
The patch bellow fixes it.
Please, could check, whether it should be applied in general ?
Thanks
Petr
diff -u -r1.34 dl-machine.h
--- sysdeps/x86_64/dl-machine.h 27 Oct 2006 23:11:47 -0000 1.34
+++ sysdeps/x86_64/dl-machine.h 9 Feb 2007 17:45:03 -0000
@@ -286,7 +286,7 @@
const Elf64_Sym *const refsym = sym;
#endif
struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
- Elf64_Addr value = (sym == NULL ? 0
+ Elf64_Addr value = (sym_map == NULL ? 0
: (Elf64_Addr) sym_map->l_addr + sym->st_value);
#if defined RTLD_BOOTSTRAP && !USE___THREAD
--
Summary: segfault in ld.so on amd64
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: Petr dot Salinger at seznam dot cz
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4018
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.