reassign 268450 kernel-image-2.4.27-sparc retitle 268450 ld-linux.so.2 is mapped too low in memory causing intermittent ldd failures on sparc64 tags 268450 patch thanks
Hi,
This bug causes FTBFS in at least one another package (fet) on sparc64 [0]. In that case the failure looks identical to the one experienced by kmd:
dh_shlibdeps
ldd: /lib/ld-linux.so.2 exited with unknown exit code (132)
dpkg-shlibdeps: failure: ldd on `debian/fet/usr/bin/fet' gave error exit status 1
dh_shlibdeps: command returned error code 256
make: *** [binary-arch] Error 1
After a discussion on the [EMAIL PROTECTED] [1] and debian-glibc [2,3] mailing lists it was determined that this is actually a kernel problem.
It is triggered when ldd is run on a binary with an abnormally large
static data segment. When ldd is invoked on the binary, at some point
it executes a command '/lib/ld-linux.so.2 --verify <binary>'. When executing ELF32 binaries on sparc64 the kernel was mapping the ld-linux.so.2 binary too low, leaving just 128 MB for the program's data segment. Failures experienced during fet and kmd builds were caused by the mmap() overwriting the ld-linux.so.2 code section while mapping the binary. The location of the ld-linux.so.2 mapping is controlled by the ELF_ET_DYN_BASE variable in kernel source. Following the discussion David Miller have released the patches [4], increasing its value. I have built fet and kmd packages sucessfully with fixed 2.4.27 kernel on sparc64 and no ill side-effects were noticed while running it. Hopefully, these fixes may be included in the next upload of both 2.4 and 2.6 kernel images on sparc, so that the kernel may be updated on autobuilders.
[0] http://buildd.debian.org/fetch.php?&pkg=fet&ver=3.9.19-1&arch=sparc&stamp=1101448389&file=log&as=raw [1] http://marc.theaimsgroup.com/?t=110213793300001&r=1&w=2 [2] http://lists.debian.org/debian-glibc/2004/12/msg00057.html [3] http://lists.debian.org/debian-glibc/2004/12/msg00060.html [4] http://marc.theaimsgroup.com/?l=linux-sparc&m=110257791514739&w=2
Best regards,
Jurij Smakov [EMAIL PROTECTED] Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

