Bug#582362: Bug#579917: mkhomedir segfaults within ld.so on startup
On Wed, May 19, 2010 at 23:56:03 +0200, Aurelien Jarno wrote: The problem is that the mkhomedir_helper is built as a library, using a version-script. This lead to: 0x7016 (MIPS_RLD_MAP) 0 Removing --version-script while linking the binary fixes the problem: 0x7016 (MIPS_RLD_MAP) 0x413a50 Steve, please find attached a patch to fix this. Adding it to debian/patches-applied/series and regenerating autoconf.patch fixed the linking flags for mkhomedir_helper as far as I can tell. Cheers, Julien Index: pam/modules/pam_mkhomedir/Makefile.am === --- pam.orig/modules/pam_mkhomedir/Makefile.am +++ pam/modules/pam_mkhomedir/Makefile.am @@ -19,14 +19,14 @@ AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ -DMKHOMEDIR_HELPER=\$(sbindir)/mkhomedir_helper\ -AM_LDFLAGS = -no-undefined -avoid-version -module -if HAVE_VERSIONING - AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map -endif securelib_LTLIBRARIES = pam_mkhomedir.la pam_mkhomedir_la_SOURCES = pam_mkhomedir.c pam_mkhomedir_la_LIBADD = -L$(top_builddir)/libpam -lpam +pam_mkhomedir_la_LDFLAGS = -no-undefined -avoid-version -module +if HAVE_VERSIONING + pam_mkhomedir_la_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map +endif sbin_PROGRAMS = mkhomedir_helper mkhomedir_helper_SOURCES = mkhomedir_helper.c signature.asc Description: Digital signature
Processed: Re: Bug#579917: mkhomedir segfaults within ld.so on startup
Processing commands for cont...@bugs.debian.org: clone 579917 -1 Bug#579917: mkhomedir segfaults within ld.so on startup Bug 579917 cloned as bug 582362. reassign -1 libpam-modules Bug #582362 [libc6] mkhomedir segfaults within ld.so on startup Bug reassigned from package 'libc6' to 'libpam-modules'. Bug No longer marked as found in versions glibc/2.7-18lenny2. severity 579917 important Bug #579917 [libc6] mkhomedir segfaults within ld.so on startup Severity set to 'important' from 'grave' thanks Stopping processing here. Please contact me if you need assistance. -- 579917: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579917 582362: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582362 -1: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=-1 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579917: mkhomedir segfaults within ld.so on startup
clone 579917 -1 reassign -1 libpam-modules severity 579917 important thanks * Aurelien Jarno (aurel...@aurel32.net) [100519 23:56]: The problem is that the mkhomedir_helper is built as a library, using a version-script. This lead to: 0x7016 (MIPS_RLD_MAP) 0 Removing --version-script while linking the binary fixes the problem: 0x7016 (MIPS_RLD_MAP) 0x413a50 I agree that ld.so should not segfault in that case, I'll try to write a patch for that, but I don't think the bug is still serious anymore on the eglibc side. Right. Cloning the RC-grade part to libpam-modules, and lowering the severity on eglibc. Thanks for your support. Andi -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579917: mkhomedir segfaults within ld.so on startup
On Sun, May 02, 2010 at 11:44:56AM +0200, Andreas Barth wrote: Package: libc6 Version: 2.7-18lenny2 Severity: grave Hi, the following happens when trying to run mkhomedir_helper. This happens with any glibc version, i.e. also in testing and unstable (that's how I found out). mkhomedir_helper is only available in testing and unstable, but well. The problem is that the mkhomedir_helper is built as a library, using a version-script. This lead to: 0x7016 (MIPS_RLD_MAP) 0 Removing --version-script while linking the binary fixes the problem: 0x7016 (MIPS_RLD_MAP) 0x413a50 I agree that ld.so should not segfault in that case, I'll try to write a patch for that, but I don't think the bug is still serious anymore on the eglibc side. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurel...@aurel32.net http://www.aurel32.net -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579917: mkhomedir segfaults within ld.so on startup
Package: libc6 Version: 2.7-18lenny2 Severity: grave Hi, the following happens when trying to run mkhomedir_helper. This happens with any glibc version, i.e. also in testing and unstable (that's how I found out). mkhomedir_helper is only available in testing and unstable, but well. a...@swarm:/home/buildd$ LD_LIBRARY_PATH=/usr/lib/debug: gdb ./mkhomedir_helper GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as mipsel-linux-gnu... (gdb) run Starting program: /home/buildd/mkhomedir_helper Program received signal SIGSEGV, Segmentation fault. 0x2aaab614 in dl_main () from /lib/ld.so.1 (gdb) bt #0 0x2aaab614 in dl_main () from /lib/ld.so.1 #1 0x2aac05f4 in _dl_sysdep_start () from /lib/ld.so.1 #2 0x2aaa8c98 in _dl_start_final () from /lib/ld.so.1 #3 0x2aaa8f20 in _dl_start () from /lib/ld.so.1 #4 0x2aaa in __start () from /lib/ld.so.1 Backtrace stopped: frame did not save the PC (gdb) within squeeze: Reading symbols from /tmp/mkhomedir_helper...done. (gdb) run Starting program: /tmp/mkhomedir_helper Program received signal SIGSEGV, Segmentation fault. 0x2aaab734 in dl_main (phdr=value optimized out, phnum=9, user_entry=value optimized out) at rtld.c:1617 1617rtld.c: No such file or directory. in rtld.c (gdb) bt #0 0x2aaab734 in dl_main (phdr=value optimized out, phnum=9, user_entry=value optimized out) at rtld.c:1617 #1 0x2aac21b8 in _dl_sysdep_start (start_argptr=value optimized out, dl_main=0x29d4 dl_main) at ../elf/dl-sysdep.c:243 #2 0x2aaa8ef4 in _dl_start_final (arg=0x7fbe2820, info=value optimized out) at rtld.c:333 #3 0x2aaa91a0 in _dl_start (arg=0x7fbe2820) at rtld.c:561 #4 0x2aaa88e8 in __start () from /lib/ld.so.1 Backtrace stopped: frame did not save the PC (gdb) on an squeeze machine: LD_DEBUG=all /lib/ld-2.10.2.so ./mkhomedir_helper 6625: file=/tmp/mkhomedir_helper [0]; generating link map 6625: dynamic: 0x004001c0 base: 0x size: 0x000139e0 6625: entry: 0x004008f0 phdr: 0x00400034 phnum: 9 6625: Segmentation fault I'm not convinced if the libc6 is the correct place to report this bug to, but having this bug will prevent the release of Debian on mips* (as DSA needs to have mkhomedir available). Please also note that this programm wasn't part of lenny, as the pam module was restructred recently. It however does work on i386. Andi -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#579917: mkhomedir segfaults within ld.so on startup
On Sun, May 02, 2010 at 11:44:56AM +0200, Andreas Barth wrote: on an squeeze machine: LD_DEBUG=all /lib/ld-2.10.2.so ./mkhomedir_helper 6625: file=/tmp/mkhomedir_helper [0]; generating link map 6625: dynamic: 0x004001c0 base: 0x size: 0x000139e0 6625: entry: 0x004008f0 phdr: 0x00400034 phnum: 9 6625: Segmentation fault | gabrielli% LD_DEBUG=all /lib/ld.so.1 /sbin/mkhomedir_helper | 10223: file=/sbin/mkhomedir_helper [0]; generating link map | 10223: dynamic: 0x004001c0 base: 0x size: 0x000139e0 | 10223: entry: 0x004008f0 phdr: 0x00400034 phnum: 9 | 10223: | zsh: segmentation fault LD_DEBUG=all /lib/ld.so.1 /sbin/mkhomedir_helper | gabrielli% ls -al /sbin/mkhomedir_helper | -rwxr-xr-x 1 root root 16384 18. Feb 11:49 /sbin/mkhomedir_helper The reported size (0x000139e0) is much larger than the actual binary size. Bastian -- The idea of male and female are universal constants. -- Kirk, Metamorphosis, stardate 3219.8 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org