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

Warning: sudo-1.7.4p6-1 (and 1.7p4-6) hangs when finished



Hi,

After fixing FTBS for sudo-1.7.4p4-6 on GNU/Hurd Debian upgraded the
package to 1.7.4p6-1. I did build it for testing purposes since the Hurd
buildd are not finished yet. Now it builds properly under Hurd. However,
testing the built packages shows a hang when the command is finished.
Trying to debug with gdb does not seem to work either, see below.

>From the shell:
===============
As user on Hurd:
#> sudo ls -l
[sudo] password for user: 
total 3708
...listing...
(sudo hangs, must be killed -9 as root)
^Z works not ^C

As root on Hurd:
#> sudo ls -l
total 3620
...listing...
(sudo hangs, must be killed -9 as root)
^Z works not ^C

Under gdb
=========
As user on Linux:
(gdb) run ls -l
Starting program: /usr/bin/sudo ls -l
sudo: must be setuid root

Program exited with code 01.

As user on Hurd:
(gdb) run ls -l
Starting program: /usr/bin/sudo ls -l
warning: Error setting exception port for process 3790: (ipc/send)
invalid destination port
warning: Can't continue process: Operation not permitted
^CCan't fetch registers from thread bogus thread id 3: No such thread

As root on Linux:
Starting program: /usr/bin/sudo ls -l
...
Program exited normally

As root on Hurd:
(gdb) run ls -l
Starting program: /usr/bin/sudo ls -l
[New Thread 3799.5]
(sudo hangs, no output!)
^C
Program received signal SIGINT, Interrupt.
0x0107af4c in mach_msg_trap ()

at /build/buildd-eglibc_2.11.2-11-hurd-i386-lioqPW/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
2       /build/buildd-eglibc_2.11.2-11-hurd-i386-lioqPW/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S: No such file or directory.

in /build/buildd-eglibc_2.11.2-11-hurd-i386-lioqPW/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S
Current language:  auto
The current source language is "auto; currently asm".
(gdb) bt
#0  0x0107af4c in mach_msg_trap ()

at /build/buildd-eglibc_2.11.2-11-hurd-i386-lioqPW/eglibc-2.11.2/build-tree/hurd-i386-libc/mach/mach_msg_trap.S:2
#1  0x0107b7f8 in __mach_msg (msg=0x1024b58, option=2, send_size=0,
rcv_size=40, 
    rcv_name=44, timeout=0, notify=0) at msg.c:122
#2  0x01082221 in _hurd_select (nfds=8, pollfds=0x0, readfds=0x806d418, 
    writefds=0x8076b10, exceptfds=0x0, timeout=0x0, sigmask=0x0)
    at hurdselect.c:324
#3  0x0116f9b1 in __select (nfds=8, readfds=0x806d418,
writefds=0x8076b10, 
    exceptfds=0x0, timeout=0x0) at ../sysdeps/mach/hurd/select.c:47
#4  0x08050916 in ?? ()
#5  0x08055271 in ?? ()
#6  0x08056aa3 in ?? ()
#7  0x010a68bb in __libc_start_main (main=0x80554a0, argc=3,
ubp_av=0x1024e54, 
    init=0x8060580, fini=0x8060570, rtld_fini=0xef60 <_dl_fini>, 
    stack_end=0x1024e4c) at libc-start.c:257
#8  0x0804ab51 in ?? ()

Questions:
==========
1) How to debug? As root and debug-compiled? Still, under gdb no output
was given, compared to in a shell, where sudo did hang after a completed
listing.
2) Where can I get version 1.7.2p7-1 back?


Reply to: