Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 116745 - PIE binaries seem very broken on x86-64
Summary: PIE binaries seem very broken on x86-64
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: FC2Blocker
TreeView+ depends on / blocked
 
Reported: 2004-02-24 21:08 UTC by Bill Nottingham
Modified: 2014-03-17 02:42 UTC (History)
2 users (show)

Fixed In Version: 2.6.3-1.108
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-02-25 16:17:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
eu-elflint run on the binary in question (deleted)
2004-02-24 21:14 UTC, Bill Nottingham
no flags Details
Oops, take 2 (deleted)
2004-02-24 21:16 UTC, Bill Nottingham
no flags Details

Description Bill Nottingham 2004-02-24 21:08:36 UTC
[root@apone root]# strace /usr/bin/newaliases
execve("/usr/bin/newaliases", ["/usr/bin/newaliases"], [/* 29 vars
*/]) = 0
uname({sys="Linux", node="apone.devel.redhat.com", ...}) = 0
brk(0)                                  = 0x2a95732000
fcntl(0, F_GETFD)                       = 0
fcntl(1, F_GETFD)                       = 0
fcntl(2, F_GETFD)                       = 0
access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or
directory)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x2a95617000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


[root@apone root]# LD_DEBUG=all /usr/bin/newaliases
      4955:
      4955:     relocation processing: /usr/bin/newaliases (lazy)
Segmentation fault


syslogd and klogd segfault as well.

Comment 1 Bill Nottingham 2004-02-24 21:14:55 UTC
Created attachment 98011 [details]
eu-elflint run on the binary in question

eu-elflint does not seem to think that the binary is valid.

Comment 2 Bill Nottingham 2004-02-24 21:16:41 UTC
Created attachment 98013 [details]
Oops, take 2

Erm, try this eu-elflint dump.

Comment 3 Bill Nottingham 2004-02-24 22:26:22 UTC
Works with Arjan's .204 kernel. 

Comment 4 Dave Jones 2004-02-25 14:54:21 UTC
todays rawhide should also work now ?


Comment 5 Bill Nottingham 2004-02-25 16:17:01 UTC
Yup, 1.108 is fine.


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