Bug 457560 - Inconsistency detected by ld.so: ../sysdeps/unix/sysv/linux/dl-origin.c
Summary: Inconsistency detected by ld.so: ../sysdeps/unix/sysv/linux/dl-origin.c
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-01 14:31 UTC by Caolan McNamara
Modified: 2008-08-03 03:01 UTC (History)
1 user (show)

Fixed In Version: 2.8.90-11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-08-03 03:01:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Caolan McNamara 2008-08-01 14:31:05 UTC
[caolan@Nom ~]$ echo "int main() { return 0;}" | gcc -x c -Wl,-rpath,'$ORIGIN' -
[caolan@Nom ~]$ readelf -d a.out | grep ORIGIN
 0x000000000000000f (RPATH)              Library rpath: [$ORIGIN]
[caolan@Nom ~]$ ./a.out
Inconsistency detected by ld.so: ../sysdeps/unix/sysv/linux/dl-origin.c: 85:
_dl_get_origin: Assertion `str[0] == '/'' failed!
[caolan@Nom ~]$ echo $?
127
[caolan@Nom ~]$ `pwd`/a.out
[caolan@Nom ~]$ echo $?

i.e. executing a binary with a RPATH of $ORIGIN fails if an absolute patch to
the binary is not used

glibc-2.8.90-10.x86_64

Comment 1 Ulrich Drepper 2008-08-01 18:04:03 UTC
Fixed upstream.

Comment 2 Ulrich Drepper 2008-08-03 03:01:16 UTC
Now in rawhide.


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