Bug 457560

Summary: Inconsistency detected by ld.so: ../sysdeps/unix/sysv/linux/dl-origin.c
Product: [Fedora] Fedora Reporter: Caolan McNamara <caolanm>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: drepper
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.8.90-11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-03 03:01:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.