[Bug 295805] KGDB 15.1 seems broken for PPC64
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 295805] KGDB 15.1 seems broken for PPC64"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 295805] KGDB 15.1 seems broken for PPC64"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 295805] devel/gdb: KGDB 15.1 seems broken for PPC64"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Jun 2026 03:11:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295805
Bug ID: 295805
Summary: KGDB 15.1 seems broken for PPC64
Product: Ports & Packages
Version: Latest
Hardware: powerpc
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: volkovdablo@hotmail.com
CC: powerpc@FreeBSD.org
CC: powerpc@FreeBSD.org
KGDB (GDB 15.1) built from ports seems to be broken, preventing tools like
crashinfo to operate appropiately.
Using normal GDB 15.1 (with a simple program compiled with GCC), seems to work
properly:
gdb Test
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 <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 "powerpc64-portbld-freebsd15.1".
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 Test...
(gdb) b main.c:9
Breakpoint 1 at 0x10000654: file main.c, line 9.
(gdb) r
Starting program: /tmp/Test
Breakpoint 1, main () at main.c:9
9 printf("Hello from here!\n");
(gdb) n
Hello from here!
7 for(int i = 0; i < 16; ++i)
(gdb)
Breakpoint 1, main () at main.c:9
9 printf("Hello from here!\n");
(gdb) p i
$1 = 1
However, when I call kgdb I get:
$ kgdb
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 <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 "powerpc64-portbld-freebsd15.1".
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 /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...
Fatal signal: Segmentation fault
----- Backtrace -----
0x107f9ac7 ???
0x10965097 ???
0x10965f1f ???
0x813113863 handle_signal
/usr/src/lib/libthr/thread/thr_sig.c:317
0x813112a93 thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:261
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible. GDB will now terminate.
This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.
Segmentation fault (core dumped)
When opening some crash info I get a similar output:
bm-fbsd-ppc64-javi dumped core - see /var/crash/vmcore.5
Wed Jun 3 11:48:57 JST 2026
FreeBSD bm-fbsd-ppc64-javi 15.1-RC1 FreeBSD 15.1-RC1
releng/15.1-n283533-2bf6b6559810 GENERIC powerpc
panic: instruction storage interrupt trap
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...
Fatal signal: Segmentation fault
----- Backtrace -----
0x107f9ac7 ???
0x10965097 ???
0x10965f1f ???
0x813113863 handle_signal
/usr/src/lib/libthr/thread/thr_sig.c:317
0x813112a93 thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:261
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible. GDB will now terminate.
This is a bug, please report it. For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.
Segmentation fault (core dumped)
------------------------------------------------------------------------
ps -axlww
ps: invalid corefile
------------------------------------------------------------------------
...
--
You are receiving this mail because:
You are the assignee for the bug.