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

Re: Bug#321785: fakeroot: segfaults on [hppa]



(I trimmed the cc list a bit)

Dave,

Could this actually be a gcc problem?

Take a look at this:

(gdb) bt
#0  0x406dbd20 in __canonicalize_funcptr_for_compare ()
   from /usr/lib/debug/libpthread.so.0
#1 0x406d7424 in __pthread_sigaction (sig=18, act=0xc0241ec8, oact=0xc0241f50)
    at signals.c:106
#2  0x4035f950 in *__GI___sigaction (sig=<value optimized out>,
    act=<value optimized out>, oact=<value optimized out>)
    at ../linuxthreads/sysdeps/pthread/sigaction.c:42
#3  0x4035f748 in __bsd_signal (sig=18,
    handler=@0x423ce: 0x42410 <__gmon_start__+92828>) at signal.c:47
#4  0x0001d690 in main ()
(gdb) frame 1
#1 0x406d7424 in __pthread_sigaction (sig=18, act=0xc0241ec8, oact=0xc0241f50)
    at signals.c:106
106               if (old == SIG_IGN || old == SIG_DFL || old == SIG_ERR)
(gdb) print &old
Address requested for identifier "old" which is in register $r11
(gdb) print /x $r11
$6 = 0x0
(gdb) print /x $pc
$7 = 0x406d7424
(gdb) disassemble $pc-16 $pc+4
Dump of assembler code from 0x406d7414 to 0x406d7428:
0x406d7414 <__pthread_sigaction+252>:   stw r20,-138(,sp)
0x406d7418 <__pthread_sigaction+256>:   copy r19,r4
0x406d741c <__pthread_sigaction+260>: b,l 0x406dbcd8 <__canonicalize_funcptr_for_compare>,rp
0x406d7420 <__pthread_sigaction+264>:   ldo -2(r11),r26
0x406d7424 <__pthread_sigaction+268>:   copy r4,r19
End of assembler dump.
(gdb)

Why is it doing that "ldo -2(r11),r26" ?

I think this version of glibc is built with gcc-4.0

randolph



Reply to: