tech-kern archive

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

Re: ALTQ cannot be stopped Was: Fwd: 10-BETA : some network issues



Taylor R Campbell a écrit :
>> Date: Wed, 19 Jul 2023 15:36:48 +0200
>> From: BERTRAND Joël <joel.bertrand%systella.fr@localhost>
>>
>> 	Yesterday, I have done a mistake... ALTQD is running on one of my
>> NetBSD server (this server routes rtp packets) and I have tried to
>> reboot this machine... It was not possible: shutdown stalled on
>> "Stopping altqd" (more than 10 minutes, I have only powered up screen
>> after a long time...). Fortunately, this server was not too far and I
>> have manually killed altqd.
>>
>> 	Any news about PR 57171 ? If altqd is running, it has to be manually
>> killed before shutdown or shutdown cannot stop system...
> 
> It looks like the PR is waiting for feedback from you to get a stack
> trace from altqd with debug info?
> 
> Can you please extract the debug.tar.xz set for your userland, attach
> gdb to the stuck altqd, and ask for `bt'?

	I have rebuilt my tree, done an install=/ and extract debug.tar.xz in
/usr/libdata.

	altqd is stopped.

legendre# /etc/rc.d/altqd start
Starting altqd.
legendre# /etc/rc.d/altqd stop
Stopping altqd.
Waiting for PIDS: 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893,
7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893,
7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893,
7893, 7893, 7893, 7893, 7893, 7893, 7893, 7893 ...


legendre# gdb /usr/sbin/altqd 7893
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 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 "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/altqd...
(No debugging symbols found in /usr/sbin/altqd)
Attaching to program: /usr/sbin/altqd, process 7893
Reading symbols from /usr/lib/libutil.so.7...
Reading symbols from /usr/libdata/debug//usr/lib/libutil.so.7.24.debug...
(No debugging symbols found in
/usr/libdata/debug//usr/lib/libutil.so.7.24.debug)
Reading symbols from /usr/lib/libm.so.0...
--Type <RET> for more, q to quit, c to continue without paging--
Reading symbols from /usr/libdata/debug//usr/lib/libm.so.0.12.debug...
(No debugging symbols found in
/usr/libdata/debug//usr/lib/libm.so.0.12.debug)
Reading symbols from /usr/lib/libc.so.12...
Reading symbols from /usr/libdata/debug//usr/lib/libc.so.12.220.debug...
(No debugging symbols found in
/usr/libdata/debug//usr/lib/libc.so.12.220.debug)
Reading symbols from /usr/libexec/ld.elf_so...
(No debugging symbols found in /usr/libexec/ld.elf_so)
[Switching to LWP 7893 of process 7893]
0x000000010820564b in qop_clear ()
(gdb) bt
#0  0x000000010820564b in qop_clear ()
#1  0x0000000108205774 in qop_delete_if ()
#2  0x00000001082058c6 in qcmd_destroyall ()
#3  0x0000000108212c45 in main ()
(gdb) info locals
No symbol table info available.
(gdb)

	I don't understand why gdb complains about debugging symbols.

legendre# pwd
/usr/libdata/debug/usr/lib
legendre# file libutil.so.7.24.debug
libutil.so.7.24.debug: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked, for NetBSD 10.0, not stripped
legendre# ls -l libutil.so.7.24.debug
-r--r--r--  1 root  wheel  111104 Jul 20 16:17 libutil.so.7.24.debug
legendre#

	Best regards,

	JB


Home | Main Index | Thread Index | Old Index