[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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.



aba@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  0x2aaa8888 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
1617    rtld.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=0x2aaaa9d4 <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: 0x00000000   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



Reply to: