Bug#631242: libc6: ldd exits with 'unknown exit code (139)' after searching for "/lib64/ld64.so.1" on a 32bit system
Package: libc6
Version: 2.11.2-10
Severity: normal
When I build + run a particular program written in c++ on my 32bit system
the program fails to start with the message 'Killed'.
The software can be obtained from http://svn.openstreetmap.org/applications/utils/export/osm2pgsql-64
revision 26028
$ ldd ./osm2pgsql
ldd: exited with unknown exit code (139)
$
$ strace ldd ./osm2pgsql
ends with
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x10043f70, [], 0}, {SIG_DFL, [], 0}, 8) = 0
waitpid(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0) = 20740
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbfab11b8, WNOHANG) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {0x10043f70, [], 0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
stat64("/lib64/ld64.so.1", 0xbfab1b48) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
fcntl64(1, F_GETFD) = 0
fcntl64(1, F_DUPFD, 10) = 10
fcntl64(1, F_GETFD) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
dup2(2, 1) = 1
fcntl64(2, F_GETFD) = 0
write(1, "ldd: exited with unknown exit co"..., 41ldd: exited with unknown exit code (139)
) = 41
dup2(10, 1) = 1
fcntl64(10, F_GETFD) = 0x1 (flags FD_CLOEXEC)
close(10) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
exit_group(1) = ?
If libc-ppc64 is installed then it tries to use the 64 bit library which won't work.
This is a 32 bit system building 32 bit binaries.
1) ldd shouldn't die when trying to load a library that isn't on the system
2) It shouldn't be trying to load the 64 bit library in the first place.
-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (500, 'stable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.32-5-powerpc
Locale: LANG=en_CA.utf8, LC_CTYPE=en_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc6 depends on:
ii libc-bin 2.11.2-10 Embedded GNU C Library: Binaries
ii libgcc1 1:4.4.5-8 GCC support library
libc6 recommends no packages.
Versions of packages libc6 suggests:
ii debconf [debconf-2.0] 1.5.36 Debian configuration management sy
pn glibc-doc <none> (no description available)
ii locales 2.11.2-6 Embedded GNU C Library: National L
-- debconf information:
glibc/upgrade: true
glibc/restart-services:
glibc/disable-screensaver:
glibc/restart-failed:
Reply to: