public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup
@ 2011-02-14 4:56 vapier at gentoo dot org
2011-02-14 6:44 ` [Bug libc/12489] " allan at archlinux dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: vapier at gentoo dot org @ 2011-02-14 4:56 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Summary: prelinking ldso causes binaries to segfault upon
startup
Product: glibc
Version: 2.13
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: vapier@gentoo.org
CC: schwab@linux-m68k.org, toolchain@gentoo.org,
allan@archlinux.org
after upgrading from glibc-2.12.2 to glibc-2.13 and running prelink on the
system, many binaries segfault immediately. undoing prelink on just the ldso
makes the segfaults go away.
using git bisect from the glibc-2.12 tag to the glibc-2.13 tag shows the
trouble starts around commit bc5fb0374c3ce6eca92f44d13a55b066e707c4a0 (Don't
try to free rpath strings allocated during startup). and indeed, if i take
current master (edf9294e7a2cd46b050faf2d270d28ff477f6c5e) and revert that one
commit, things still work fine. same goes for taking glibc-2.13 and reverting
that one change.
http://sourceware.org/git/?p=glibc.git;a=commit;h=bc5fb0374c3ce6eca92f44d13a55b066e707c4a0
full bisect log:
# bad: [6392473fe970b0cdace62f31000a83ba0fcf6161] 2.13 release
# good: [e28c88707ef0529593fccedf1a94c3fce3df0ef3] Prepare for release. git
bisect start 'glibc-2.13' 'glibc-2.12'
# good: [c96d23fcaa7072bb9e7669957c90b09dddfd9161] Fixup x86 after x86-64
varshift change.
git bisect good c96d23fcaa7072bb9e7669957c90b09dddfd9161
# good: [c96d23fcaa7072bb9e7669957c90b09dddfd9161] Fixup x86 after x86-64
varshift change.
git bisect good c96d23fcaa7072bb9e7669957c90b09dddfd9161
# bad: [fdc0f374bcd2d0513569aa8d600f960e43e8af1d] Fix perturbing in malloc on
free.
git bisect bad fdc0f374bcd2d0513569aa8d600f960e43e8af1d
# bad: [91c42559190f59c6c4b3cb0b7f5c9bb11dd28161] powerpc: Use generic memset
for RTLD for ppc32/64
git bisect bad 91c42559190f59c6c4b3cb0b7f5c9bb11dd28161
# good: [e66e7419a6f58200eec6941b14e2dcff9875cc6c] Actually make it possible to
user the default name server.
git bisect good e66e7419a6f58200eec6941b14e2dcff9875cc6c
# bad: [dda51327baa01c8e5c188a9952317396bb5569b1] Undo feature selection for
ftruncate.
git bisect bad dda51327baa01c8e5c188a9952317396bb5569b1
# bad: [8ffcee4a049b244e369e371536486a9b2eabb25f] Fix limit detection in x86-64
SSE2 strncasecmp.
git bisect bad 8ffcee4a049b244e369e371536486a9b2eabb25f
# bad: [7291c56f9d6f5861d1c001bc63a364f047a74738] Fix register conflict in s390
____longjmp_chk
git bisect bad 7291c56f9d6f5861d1c001bc63a364f047a74738
# bad: [bc5fb0374c3ce6eca92f44d13a55b066e707c4a0] Don't try to free rpath
strings allocated during startup
git bisect bad bc5fb0374c3ce6eca92f44d13a55b066e707c4a0
the simple test script i was using (probably should automate this with `git
bisect run`, but oh well):
rm -rf chroot
mkdir chroot
cd chroot
mkdir lib etc bin
ln -s lib lib64
cp `which gcc` `which prelink` bin
cp /etc/prelink.conf etc
cp ../lib*.so.? lib/
cp ../elf/ld.so lib/ld-linux-x86-64.so.2
sudo chroot . prelink -a
sudo chroot . gcc
if gcc crashes, then it doesnt look so good
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
@ 2011-02-14 6:44 ` allan at archlinux dot org
2011-02-14 7:35 ` Martin.vGagern at gmx dot net
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: allan at archlinux dot org @ 2011-02-14 6:44 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
--- Comment #1 from Allan McRae <allan at archlinux dot org> 2011-02-14 06:44:39 UTC ---
Looking at the bisect result, this patch from the Fedora branch seemed a likely
fix:
http://sourceware.org/git/?p=glibc.git;a=commit;h=25b3aada
Taking glibc-2.13 and adding that patch makes the test script work.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
2011-02-14 6:44 ` [Bug libc/12489] " allan at archlinux dot org
@ 2011-02-14 7:35 ` Martin.vGagern at gmx dot net
2011-02-14 10:44 ` ldv at altlinux dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Martin.vGagern at gmx dot net @ 2011-02-14 7:35 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Martin von Gagern <Martin.vGagern at gmx dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Martin.vGagern at gmx dot
| |net
See Also| |http://bugs.gentoo.org/show
| |_bug.cgi?id=353814
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
2011-02-14 6:44 ` [Bug libc/12489] " allan at archlinux dot org
2011-02-14 7:35 ` Martin.vGagern at gmx dot net
@ 2011-02-14 10:44 ` ldv at altlinux dot org
2011-02-14 17:00 ` vapier at gentoo dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ldv at altlinux dot org @ 2011-02-14 10:44 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Dmitry V. Levin <ldv at altlinux dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugzilla.redhat.com
| |/show_bug.cgi?id=638091
--- Comment #2 from Dmitry V. Levin <ldv at altlinux dot org> 2011-02-14 10:44:09 UTC ---
According to bugzilla.redhat.com, the issue have been reported a dozen times
already.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
` (2 preceding siblings ...)
2011-02-14 10:44 ` ldv at altlinux dot org
@ 2011-02-14 17:00 ` vapier at gentoo dot org
2011-02-14 17:08 ` carlos at systemhalted dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vapier at gentoo dot org @ 2011-02-14 17:00 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at codesourcery dot
| |com
--- Comment #3 from Mike Frysinger <vapier at gentoo dot org> 2011-02-14 17:00:33 UTC ---
(In reply to comment #1)
thanks, that patch seems to work for me too. i guess we'll want it cherry
picked into master and the glibc-2.13 release branches. but i dont think the
glibc-2.13 branch can get it until the master does ...
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
` (3 preceding siblings ...)
2011-02-14 17:00 ` vapier at gentoo dot org
@ 2011-02-14 17:08 ` carlos at systemhalted dot org
2011-02-20 12:26 ` drepper.fsp at gmail dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: carlos at systemhalted dot org @ 2011-02-14 17:08 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Carlos O'Donell <carlos at systemhalted dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |carlos at systemhalted dot
| |org
--- Comment #4 from Carlos O'Donell <carlos at systemhalted dot org> 2011-02-14 17:08:13 UTC ---
Correct, it must be on master before I can cherry-pick it into 2.13. Please add
the keyword "glibc-2.13" if you want me to cherry-pick it into 2.13 stable.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
` (4 preceding siblings ...)
2011-02-14 17:08 ` carlos at systemhalted dot org
@ 2011-02-20 12:26 ` drepper.fsp at gmail dot com
2011-02-20 17:39 ` vapier at gentoo dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-02-20 12:26 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-02-20 12:26:28 UTC ---
I added a patch.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
` (5 preceding siblings ...)
2011-02-20 12:26 ` drepper.fsp at gmail dot com
@ 2011-02-20 17:39 ` vapier at gentoo dot org
2011-02-23 16:27 ` carlos at systemhalted dot org
2014-06-27 13:51 ` fweimer at redhat dot com
8 siblings, 0 replies; 10+ messages in thread
From: vapier at gentoo dot org @ 2011-02-20 17:39 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |glibc_2.13
--- Comment #6 from Mike Frysinger <vapier at gentoo dot org> 2011-02-20 17:38:45 UTC ---
Carlos: you'll want e23fe25b33324a9ea992276c1a4f04127bf9ba4b
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
` (6 preceding siblings ...)
2011-02-20 17:39 ` vapier at gentoo dot org
@ 2011-02-23 16:27 ` carlos at systemhalted dot org
2014-06-27 13:51 ` fweimer at redhat dot com
8 siblings, 0 replies; 10+ messages in thread
From: carlos at systemhalted dot org @ 2011-02-23 16:27 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12489
Carlos O'Donell <carlos at systemhalted dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|glibc_2.13 |
--- Comment #7 from Carlos O'Donell <carlos at systemhalted dot org> 2011-02-23 16:26:39 UTC ---
No regressions. Fix cherry-picked into 2.13. Thanks!
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libc/12489] prelinking ldso causes binaries to segfault upon startup
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
` (7 preceding siblings ...)
2011-02-23 16:27 ` carlos at systemhalted dot org
@ 2014-06-27 13:51 ` fweimer at redhat dot com
8 siblings, 0 replies; 10+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:51 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=12489
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-06-27 13:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-14 4:56 [Bug libc/12489] New: prelinking ldso causes binaries to segfault upon startup vapier at gentoo dot org
2011-02-14 6:44 ` [Bug libc/12489] " allan at archlinux dot org
2011-02-14 7:35 ` Martin.vGagern at gmx dot net
2011-02-14 10:44 ` ldv at altlinux dot org
2011-02-14 17:00 ` vapier at gentoo dot org
2011-02-14 17:08 ` carlos at systemhalted dot org
2011-02-20 12:26 ` drepper.fsp at gmail dot com
2011-02-20 17:39 ` vapier at gentoo dot org
2011-02-23 16:27 ` carlos at systemhalted dot org
2014-06-27 13:51 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).