public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12067] New: PIE && prelink && -m31 = crash
@ 2010-09-27 17:42 jan dot kratochvil at redhat dot com
2010-09-28 2:52 ` [Bug libc/12067] " drepper dot fsp at gmail dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-09-27 17:42 UTC (permalink / raw)
To: glibc-bugs
echo 'main(){return 42;}'|gcc -m31 -fPIE -pie -g -o 1 -x c -;prelink 1;./1;echo $?
Segmentation fault
139
FAIL:
glibc-2.12-1.7.el6.s390
prelink-0.4.3-4.el6.s390x
gcc-4.4.4-13.el6.s390x
kernel-2.6.32-71.el6.s390x
PASS:
glibc-2.5-42.el5_4.5.s390
prelink-0.4.0-2.el5.s390x
gcc-4.1.2-46.el5_4.2.s390x
kernel-2.6.18-164.25.1.el5.s390x
It crashes on:
./sysdeps/s390/s390-32/elf/start.S
.L21: l %r5,36(%r9) /* Load the e_flags field. */
$r3 = in-file address
$r9 = (in-memory - in-file) offset
$r11 = in-memory address
Prelinking PIE does not make much sense but it can be run everywhere else.
It affects GDB gdb.base/break-interp.exp testcase.
--
Summary: PIE && prelink && -m31 = crash
Product: glibc
Version: 2.12
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper dot fsp at gmail dot com
ReportedBy: jan dot kratochvil at redhat dot com
CC: glibc-bugs at sources dot redhat dot com,luisgpm at
linux dot vnet dot ibm dot com
GCC host triplet: s390-ibm-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
@ 2010-09-28 2:52 ` drepper dot fsp at gmail dot com
2010-09-28 14:04 ` luisgpm at linux dot vnet dot ibm dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: drepper dot fsp at gmail dot com @ 2010-09-28 2:52 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|drepper dot fsp at gmail dot|luisgpm at linux dot vnet
|com |dot ibm dot com
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
2010-09-28 2:52 ` [Bug libc/12067] " drepper dot fsp at gmail dot com
@ 2010-09-28 14:04 ` luisgpm at linux dot vnet dot ibm dot com
2010-09-28 16:52 ` krebbel1 at de dot ibm dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: luisgpm at linux dot vnet dot ibm dot com @ 2010-09-28 14:04 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|luisgpm at linux dot vnet |krebbel1 at de dot ibm dot
|dot ibm dot com |com
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
2010-09-28 2:52 ` [Bug libc/12067] " drepper dot fsp at gmail dot com
2010-09-28 14:04 ` luisgpm at linux dot vnet dot ibm dot com
@ 2010-09-28 16:52 ` krebbel1 at de dot ibm dot com
2010-09-28 16:53 ` krebbel1 at de dot ibm dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: krebbel1 at de dot ibm dot com @ 2010-09-28 16:52 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From krebbel1 at de dot ibm dot com 2010-09-28 16:52 -------
Created an attachment (id=5019)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=5019&action=view)
Fix
The calculation of the relocation offset was wrong. It basically worked only
for PIE with a base address of zero what is not the case for a prelinked
binaries. The patch fixes the testcase for me.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
` (2 preceding siblings ...)
2010-09-28 16:52 ` krebbel1 at de dot ibm dot com
@ 2010-09-28 16:53 ` krebbel1 at de dot ibm dot com
2010-09-28 19:57 ` jan dot kratochvil at redhat dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: krebbel1 at de dot ibm dot com @ 2010-09-28 16:53 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
` (3 preceding siblings ...)
2010-09-28 16:53 ` krebbel1 at de dot ibm dot com
@ 2010-09-28 19:57 ` jan dot kratochvil at redhat dot com
2010-09-28 19:58 ` jan dot kratochvil at redhat dot com
2010-09-29 15:34 ` drepper dot fsp at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-09-28 19:57 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-09-28 19:56 -------
Verified it also on gdb.base/break-interp.exp and it fully PASSes now.
Could you submit it for a check-in?
I do not find it serious enough for RHEL. Please file a RH Bug if you find it is.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|krebbel1 at de dot ibm dot |jan dot kratochvil at redhat
|com |dot com
Status|WAITING |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
` (4 preceding siblings ...)
2010-09-28 19:57 ` jan dot kratochvil at redhat dot com
@ 2010-09-28 19:58 ` jan dot kratochvil at redhat dot com
2010-09-29 15:34 ` drepper dot fsp at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-09-28 19:58 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|jan dot kratochvil at redhat|krebbel1 at de dot ibm dot
|dot com |com
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug libc/12067] PIE && prelink && -m31 = crash
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
` (5 preceding siblings ...)
2010-09-28 19:58 ` jan dot kratochvil at redhat dot com
@ 2010-09-29 15:34 ` drepper dot fsp at gmail dot com
6 siblings, 0 replies; 8+ messages in thread
From: drepper dot fsp at gmail dot com @ 2010-09-29 15:34 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper dot fsp at gmail dot com 2010-09-29 15:34 -------
Fixed in git.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=12067
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-09-29 15:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-27 17:42 [Bug libc/12067] New: PIE && prelink && -m31 = crash jan dot kratochvil at redhat dot com
2010-09-28 2:52 ` [Bug libc/12067] " drepper dot fsp at gmail dot com
2010-09-28 14:04 ` luisgpm at linux dot vnet dot ibm dot com
2010-09-28 16:52 ` krebbel1 at de dot ibm dot com
2010-09-28 16:53 ` krebbel1 at de dot ibm dot com
2010-09-28 19:57 ` jan dot kratochvil at redhat dot com
2010-09-28 19:58 ` jan dot kratochvil at redhat dot com
2010-09-29 15:34 ` drepper dot fsp at gmail 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).