Bug 457560 - Inconsistency detected by ld.so: ../sysdeps/unix/sysv/linux/dl-origin.c
Inconsistency detected by ld.so: ../sysdeps/unix/sysv/linux/dl-origin.c
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
rawhide
All Linux
low Severity low
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-01 10:31 EDT by Caolan McNamara
Modified: 2008-08-02 23:01 EDT (History)
1 user (show)

See Also:
Fixed In Version: 2.8.90-11
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-08-02 23:01:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Caolan McNamara 2008-08-01 10:31:05 EDT
[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 14:04:03 EDT
Fixed upstream.
Comment 2 Ulrich Drepper 2008-08-02 23:01:16 EDT
Now in rawhide.

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