From nobody Fri Dec 6 08:40:01 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y4PpB4vVmz5fsGC for ; Fri, 06 Dec 2024 08:40:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y4PpB3QYtz4ctD for ; Fri, 6 Dec 2024 08:40:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733474402; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QEg6hrcechN77/xEM1xtrp34JVHbtWpXgvfd3gkM2Mg=; b=nF0BE3RmlhXdJ45fJnNWVT41CTOvOYf4ARtTWBbcPHBRo/Tmevi1FAjPO6+frFGkHoqx4d Q0/+9ZLol3MN2jPu8F3+eNLzt97hOogDRjRcpxuM+QyydJ0v61ak2m4ZaX6XFD+AOAh1zB LW7k8afChfe9Ki/cycF3tvdx2zO9BQc5OB40Pus+mz7h3uneMVFE6clZMjkwmf8thTNd5w 6DC54p80qYaSQG5Z4G6z7cwb9IFfMhX5YZnBFxuAN+Ixa6afeGG3jXm7iLSeGV22GI+/GE 5FTid/30Ykif1Bohv+7SwDffvQIYU177jrAlOevytQZcrhZPY70xQSRMx5LSww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733474402; a=rsa-sha256; cv=none; b=dyAQWxVKw3N+4e0axAURD+hqFIz/6tgNE00JDiO8ULJN7Yh59x7QDIFouTdz9cIV6zXYXr t+yngJekA0DgRMX/PmITxWB4Lf7hJektplMJKxg3RKhg/8a+7vgLiXwGswnuuQM+G9j9tX HZdWQ+arMUEh3qQwabzIlEf9Tk8i0YzkUWFy6m6UdxL8c/pe28W7JTJChOz2h5TqDPU7c9 0VhFvhxbthca9txE8Dc6FsPhT9+ZzRcB6XgE968rRPAWAEjK4xLwzvfk9msJYL9U6Jbubw k7OJI6YcnwkYhBQVYmvMjyPJPY3qD74qIoc8FzHVHUlJUzaXeWWLPiqyUwk5WQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y4PpB2rT2zWhR for ; Fri, 6 Dec 2024 08:40:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4B68e2Br075621 for ; Fri, 6 Dec 2024 08:40:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B68e2Nq075620 for bugs@FreeBSD.org; Fri, 6 Dec 2024 08:40:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283159] crash dump backtraces broken on arm64 Date: Fri, 06 Dec 2024 08:40:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: trasz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283159 Bug ID: 283159 Summary: crash dump backtraces broken on arm64 Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: trasz@FreeBSD.org For some reason backtraces in crash dumps don't work for me anymore; this is arm64 Parallels guest: trasz@v3:~ % uname -a FreeBSD v3 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n274011-0dab21248bc9: = Wed Dec 4 19:00:01 UTC 2024=20=20=20=20 root@v3:/usr/obj/usr/home/trasz/git/freebsd/arm64.aarch64/sys/GENERIC arm64 trasz@v3:~ % doas kgdb /boot/kernel/kernel /var/crash/vmcore.last GNU gdb (GDB) 15.1 [GDB v15.1 for FreeBSD] Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 "aarch64-portbld-freebsd15.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /boot/kernel/kernel... Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug... Unread portion of the kernel message buffer: panic: kdb_sysctl_panic cpuid =3D 1 time =3D 1733474064 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x38 vpanic() at vpanic+0x1a0 panic() at panic+0x48 kdb_sysctl_panic() at kdb_sysctl_panic+0x70 sysctl_root_handler_locked() at sysctl_root_handler_locked+0xe4 sysctl_root() at sysctl_root+0x1e0 userland_sysctl() at userland_sysctl+0x12c sys___sysctl() at sys___sysctl+0x84 do_el0_sync() at do_el0_sync+0x60c handle_el0_sync() at handle_el0_sync+0x4c --- exception, esr 0x56000000 Uptime: 4m24s Dumping 419 out of 8163 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81% Reading symbols from /boot/kernel/hwpmc.ko... Reading symbols from /usr/lib/debug//boot/kernel/hwpmc.ko.debug... Reading symbols from /boot/kernel/cc_dctcp.ko... Reading symbols from /usr/lib/debug//boot/kernel/cc_dctcp.ko.debug... Reading symbols from /boot/kernel/cc_cdg.ko... Reading symbols from /usr/lib/debug//boot/kernel/cc_cdg.ko.debug... Reading symbols from /boot/kernel/linux64.ko... Reading symbols from /usr/lib/debug//boot/kernel/linux64.ko.debug... Reading symbols from /boot/kernel/mqueuefs.ko... Reading symbols from /usr/lib/debug//boot/kernel/mqueuefs.ko.debug... Reading symbols from /boot/kernel/linux_common.ko... Reading symbols from /usr/lib/debug//boot/kernel/linux_common.ko.debug... Reading symbols from /boot/kernel/pty.ko... Reading symbols from /usr/lib/debug//boot/kernel/pty.ko.debug... Reading symbols from /boot/kernel/fdescfs.ko... Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug... Reading symbols from /boot/kernel/linprocfs.ko... Reading symbols from /usr/lib/debug//boot/kernel/linprocfs.ko.debug... Reading symbols from /boot/kernel/linsysfs.ko... Reading symbols from /usr/lib/debug//boot/kernel/linsysfs.ko.debug... Reading symbols from /boot/kernel/virtio_balloon.ko... Reading symbols from /usr/lib/debug//boot/kernel/virtio_balloon.ko.debug... Reading symbols from /boot/kernel/uhid.ko... Reading symbols from /usr/lib/debug//boot/kernel/uhid.ko.debug... Reading symbols from /boot/kernel/wmt.ko... Reading symbols from /usr/lib/debug//boot/kernel/wmt.ko.debug... Reading symbols from /boot/kernel/autofs.ko... Reading symbols from /usr/lib/debug//boot/kernel/autofs.ko.debug... Reading symbols from /boot/kernel/nullfs.ko... Reading symbols from /usr/lib/debug//boot/kernel/nullfs.ko.debug... 0xffff0000004b5aa8 in doadump (textdump=3D1) at /usr/home/trasz/git/freebsd/sys/kern/kern_shutdown.c:404 404 dump_savectx(); (kgdb) bt #0 0xffff0000004b5aa8 in doadump (textdump=3D1) at /usr/home/trasz/git/freebsd/sys/kern/kern_shutdown.c:404 #1 0x67fd0000004b5868 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) I've checked some other threads, and all the backtraces look like this. (kgdb) info frame Stack level 0, frame at 0xffff0000c00483c0: pc =3D 0xffff0000004b5aa8 in doadump (/usr/home/trasz/git/freebsd/sys/kern/kern_shutdown.c:404); saved pc =3D 0x67fd0000004b5868 called by frame at 0xffff0000c00483c0 source language c. Arglist at 0xffff0000c0048390, args: textdump=3D1 Locals at 0xffff0000c0048390, Previous frame's sp is 0xffff0000c00483c0 Saved registers: x19 at 0xffff0000c00483b8, x20 at 0xffff0000c00483b0, x21 at 0xffff0000c00483a0, x29 at 0xffff0000c0048390, x30 at 0xffff0000c0048398 (kgdb) up #1 0x67fd0000004b5868 in ?? () (kgdb) info frame Stack level 1, frame at 0xffff0000c00483c0: pc =3D 0x67fd0000004b5868; saved pc =3D Outermost frame: previous frame identical to this frame (corrupt stack?) caller of frame at 0xffff0000c00483c0 Arglist at 0xffff0000c00483d0, args:=20 Locals at 0xffff0000c00483d0, Previous frame's sp is 0xffff0000c00483c0 Why is saved pc not saved? --=20 You are receiving this mail because: You are the assignee for the bug.=