From owner-freebsd-bugs@freebsd.org Tue Aug 1 15:04:03 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 844AEDAFF5F for ; Tue, 1 Aug 2017 15:04:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7297A7EA99 for ; Tue, 1 Aug 2017 15:04:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v71F42Xl013545 for ; Tue, 1 Aug 2017 15:04:03 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 221151] panic: tdsendsignal(): invalid signal 0 Date: Tue, 01 Aug 2017 15:04:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nbe@renzel.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 15:04:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221151 --- Comment #2 from Nils Beyer --- (In reply to Konstantin Belousov from comment #1) > Can you provide the minimal test case which reproduces this issue ? It m= ight depend on the kernel configuration. - install FreeBSD 11.1-RELEASE (amd64) incl. ports tree - apply patch https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184876 to ports tree - sysctl security.bsd.map_at_zero=3D1 - pkg install python - pkg install make - cd /usr/ports/security/sandsifter - make - cd work/sandsifter-dff63246fed84d90118441b8ba5b5d3bdd094427 - edit "siftper.py" - shebang line to "#!/usr/bin/env python" - ./sifter.py --unk --dis --len --sync --tick --save -- -P1 -t -j8 it will eventually crash. > With the core dump you get, load it into kgdb and print out the trap fram= e by doing > frame 7 > p/x *frame ---------------------------------------------------------------------------= --- root@capetown:/var/crash/#kgdb -c vmcore.0 /usr/lib/debug/boot/kernel/kernel.debug GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: panic: tdsendsignal(): invalid signal 0 cpuid =3D 3 KDB: stack backtrace: #0 0xffffffff80aada97 at kdb_backtrace+0x67 #1 0xffffffff80a6bb76 at vpanic+0x186 #2 0xffffffff80a6b9e3 at panic+0x43 #3 0xffffffff80a71bbd at tdsendsignal+0xcbd #4 0xffffffff80a70be4 at trapsignal+0x184 #5 0xffffffff80edf3cd at trap+0x58d #6 0xffffffff80ec3671 at calltrap+0x8 Uptime: 5h3m50s Dumping 903 out of 16282 MB:..2%..11%..22%..31%..41%..52%..61%..71%..82%..9= 1% Reading symbols from /usr/lib/debug/boot/kernel/zfs.ko.debug...done. Loaded symbols for /usr/lib/debug/boot/kernel/zfs.ko.debug Reading symbols from /usr/lib/debug/boot/kernel/opensolaris.ko.debug...done. Loaded symbols for /usr/lib/debug/boot/kernel/opensolaris.ko.debug Reading symbols from /usr/lib/debug/boot/kernel/uhid.ko.debug...done. Loaded symbols for /usr/lib/debug/boot/kernel/uhid.ko.debug Reading symbols from /usr/lib/debug/boot/kernel/pflog.ko.debug...done. Loaded symbols for /usr/lib/debug/boot/kernel/pflog.ko.debug Reading symbols from /usr/lib/debug/boot/kernel/pf.ko.debug...done. Loaded symbols for /usr/lib/debug/boot/kernel/pf.ko.debug #0 doadump (textdump=3D) at pcpu.h:222 222 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt #0 doadump (textdump=3D) at pcpu.h:222 #1 0xffffffff80a6b6f1 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:366 #2 0xffffffff80a6bbb0 in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:759 #3 0xffffffff80a6b9e3 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:690 #4 0xffffffff80a71bbd in tdsendsignal (p=3D, td=3D, sig=3D, ksi=3D) at /usr/src/sys/kern/kern_sig.c:2137 #5 0xffffffff80a70be4 in trapsignal (td=3D, ksi=3D) at /usr/src/sys/kern/kern_sig.c:2021 #6 0xffffffff80edf3cd in trap (frame=3D0xfffffe0466890ac0) at /usr/src/sys/amd64/amd64/trap.c:578 #7 0xffffffff80ec3671 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:236 #8 0x000000080121e000 in ?? () Previous frame inner to this frame (corrupt stack?) Current language: auto; currently minimal (kgdb) frame 6 #6 0xffffffff80edf3cd in trap (frame=3D0xfffffe0466890ac0) at /usr/src/sys/amd64/amd64/trap.c:578 578 trapsignal(td, &ksi); (kgdb) p/x *frame $1 =3D {tf_rdi =3D 0x0, tf_rsi =3D 0x0, tf_rdx =3D 0x0, tf_rcx =3D 0x0, tf_= r8 =3D 0x0, tf_r9 =3D 0x0, tf_rax =3D 0x0, tf_rbx =3D 0x0, tf_rbp =3D 0x0, tf_r10 =3D 0= x0, tf_r11 =3D 0x0, tf_r12 =3D 0x0,=20 tf_r13 =3D 0x0, tf_r14 =3D 0x0, tf_r15 =3D 0x0, tf_trapno =3D 0x20, tf_fs= =3D 0x13, tf_gs =3D 0x1b, tf_addr =3D 0x0, tf_flags =3D 0x1, tf_es =3D 0x3b, tf_ds = =3D 0x3b, tf_err =3D 0x0,=20 tf_rip =3D 0x80121e000, tf_cs =3D 0x43, tf_rflags =3D 0x302, tf_rsp =3D 0= x866800, tf_ss =3D 0x3b} ---------------------------------------------------------------------------= --- --=20 You are receiving this mail because: You are the assignee for the bug.=