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

Bug#133640: dpkg: [HURD] start-stop-daemon segfaults in some cases

Package: dpkg
Version: 1.9.17
Severity: normal

In short:

# echo $RANDOM >foo.pid
# start-stop-daemon --stop --pidfile foo.pid --name foobar
Segmentation fault
# uname -a
GNU dryden 0.2 GNUmach-1.2/Hurd-0.2 i386-AT386 unknown

So far, I tracked it down to pid_is_cmd calling
proc_stat_list_pid_proc_stat with the first argument (procset) being
NULL, which shouldn't happen.

Grepping through the sources, do_procinit() is supposed to initialise
this global varible. Yet, that function is not called AFAICS (setting
a break point on it in gdb doesn't stop the program).

Since I'm not really familiar with start-stop-daemon yet, I don't have
a solution, nor an idea how to fix it. I'll try to investigate it
further, and will send followups to this bugreport, provided that
someone doesn't beat me.

Note that the contents of the pidfile doesn't matter, and without the
--name argument, it works fine, also without --pidfile foobar, it
works too. It just doesn't work with both specified :(

Oh, I tried dpkg CVS, and the bug is still present.

Reply to: