NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/56974: 'amq -i' dumps core
>Number: 56974
>Category: bin
>Synopsis: 'amq -i' dumps core with sigsev
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 21 18:50:01 +0000 2022
>Originator: Hauke Fath
>Release: NetBSD 9.2_STABLE
>Organization:
Mahlzeit!
>Environment:
System: NetBSD Smallpad 9.2_STABLE NetBSD 9.2_STABLE (X61) #9: Sat Jul 30 15:53:30 CEST 2022 hauke@pizza:/var/obj/netbsd-build-objects/9/amd64/sys/arch/amd64/compile/X61 amd64
Architecture: x86_64
Machine: amd64
>Description:
Invoking 'amq -i', to obtain information about amd(8) mount
maps, SIGSEVs on both netbsd-9 and -current.
>How-To-Repeat:
Set up amd(8) on a system, then run 'amq -i'.
[hauke@Smallpad] /<5>bsd/am-utils > gdb bin/amq/amq
GNU gdb (GDB) 8.3
Copyright (C) 2019 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:
<http://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 bin/amq/amq...
(gdb) set args -i
(gdb) run
Starting program: /local/source/netbsd-9/src/external/bsd/am-utils/bin/amq/amq -i
Name Wild Flags Refcnt Entries Reloads Stat Modified
Program received signal SIGSEGV, Segmentation fault.
0x00000001c7c023a0 in time_print (tt=0x61e410ff) at /local/source/netbsd-9/src/external/bsd/am-utils/dist/amq/amq.c:84
84 time_t t = (time_t)*tt;
(gdb) bt
#0 0x00000001c7c023a0 in time_print (tt=0x61e410ff) at /local/source/netbsd-9/src/external/bsd/am-utils/dist/amq/amq.c:84
#1 0x00000001c7c02dd7 in show_mapinfo (ml=0x1c7e05290 <res>, e=Full, nwid=0x7f7fff9421f4, wwid=0x7f7fff9421f0)
at /local/source/netbsd-9/src/external/bsd/am-utils/dist/amq/amq.c:294
#2 0x00000001c7c0399d in main (argc=2, argv=0x7f7fff942388) at /local/source/netbsd-9/src/external/bsd/am-utils/dist/amq/amq.c:727
(gdb) frame 1
#1 0x00000001c7c02dd7 in show_mapinfo (ml=0x1c7e05290 <res>, e=Full, nwid=0x7f7fff9421f4, wwid=0x7f7fff9421f0)
at /local/source/netbsd-9/src/external/bsd/am-utils/dist/amq/amq.c:294
294 time_print(mi->mi_modify);
(gdb) print mi->mi_modify
$1 = (time_type) 0x61e410ff
(gdb) print *mi->mi_modify
Cannot access memory at address 0x61e410ff
(gdb)
The mi_modify field is set in amq_xdr.c::xdr_amq_map_info(),
and that's about my current level of understanding.
>Fix:
Yes, please.
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index