[Bug 294390] devel/gdb: kgdb dies with SIGSEGV

[email protected] Wed, 03 Jun 2026 11:03:02 +0000
Newsgroups gmane.os.freebsd.devel.ppc
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294390

Javi Hotmail <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Javi Hotmail <[email protected]> ---
Hello,

Had the same issue here (Bug 295805)

I just fixed it, by compiling GDB in ports using GCC 14 instead of Clang.

root@bm-fbsd-ppc64-javi:/usr/ports/devel/gdb # 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.htm=
l>
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...
Reading symbols from /boot/kernel/mac_ntpd.ko...
Reading symbols from /usr/lib/debug//boot/kernel/mac_ntpd.ko.debug...
Reading symbols from /boot/kernel/snp.ko...
Reading symbols from /usr/lib/debug//boot/kernel/snp.ko.debug...
0xc0000000009152f8 in sched_ule_sswitch (td=3D0xc000000001798280 <thread0_s=
t>,
flags=3D<optimized out>)
    at /usr/src/sys/kern/sched_ule.c:2409
2409                    cpu_switch(td, newtd, mtx);
(kgdb) bt
#0  0xc0000000009152f8 in sched_ule_sswitch (td=3D0xc000000001798280
<thread0_st>, flags=3D<optimized out>)
    at /usr/src/sys/kern/sched_ule.c:2409
#1  0xc0000000008dff10 in mi_switch (flags=3D259) at
/usr/src/sys/kern/kern_synch.c:526
#2  0xc0000000009576f4 in sleepq_switch (wchan=3D<optimized out>, pri=3D<op=
timized
out>) at /usr/src/sys/kern/subr_sleepqueue.c:608
#3  0xc0000000008df018 in _sleep (ident=3D0xc00800000000c9a0, lock=3D0x0,
priority=3D1024, wmesg=3D0xc0000000014d99b6 "-", sbt=3D0, pr=3D0,
    flags=3D256) at /usr/src/sys/kern/kern_synch.c:222
#4  0xc0000000008132f8 in mi_startup () at /usr/src/sys/kern/init_main.c:349
#5  0xc000000000101888 in __start () at /usr/src/sys/powerpc/aim/locore64.S=
:201
Backtrace stopped: frame did not save the PC
(kgdb)

Regards,
Javi.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=