[Bug 293536] kgdb: source code location lookup works for kernel but not for module
Date: Mon, 02 Mar 2026 15:15:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293536
--- Comment #1 from Martin Cracauer <cracauer@cons.org> ---
Truss on kgdb shows that it is not satisfied with finding
mac_bsdextended.ko.debug as specified in /var/tmp. It probes OS default places
in addition. In my setup it find wrong versions eventually and seems to throw
away the .ko.debug that I specified.
I don't think it should do that.
__realpathat(AT_FDCWD,"/var/tmp/mac_bsdextended.ko.debug","/var/tmp/mac_bsdextended.ko.debug",1024,0)
= 0 (0x0)
open("/var/tmp/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666) ERR#2
'No such file or directory'
open("/usr/lib/debug/var/tmp/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/local/lib/debug/var/tmp/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/xcarb3/usr/local/share/gdb/auto-load/var/tmp/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/var/tmp/mac_bsdextended.ko.debug","/var/tmp/mac_bsdextended.ko.debug",1024,0)
= 0 (0x0)
open("/var/tmp/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666) ERR#2
'No such file or directory'
open("/usr/lib/debug/var/tmp/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/local/lib/debug/var/tmp/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/xcarb3/usr/local/share/gdb/auto-load/var/tmp/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug","/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug",1024,0)
= 0 (0x0)
open("/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/lib/debug/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/local/lib/debug/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/xcarb3/usr/local/share/gdb/auto-load/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug","/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug",1024,0)
= 0 (0x0)
open("/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/lib/debug/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/local/lib/debug/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/xcarb3/usr/local/share/gdb/auto-load/usr/lib/debug/boot/kernel/mac_bsdextended.ko.debug-gdb.py",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/boot/kernel/mac_bsdextended.ko","/boot/kernel/mac_bsdextended.ko",1024,0)
= 0 (0x0)
open("/boot/kernel/mac_bsdextended.ko-gdb.gdb",O_RDONLY|O_CLOEXEC,0666) ERR#2
'No such file or directory'
open("/usr/lib/debug/boot/kernel/mac_bsdextended.ko-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/usr/local/lib/debug/boot/kernel/mac_bsdextended.ko-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
open("/xcarb3/usr/local/share/gdb/auto-load/boot/kernel/mac_bsdextended.ko-gdb.gdb",O_RDONLY|O_CLOEXEC,0666)
ERR#2 'No such file or directory'
__realpathat(AT_FDCWD,"/boot/kernel/mac_bsdextended.ko","/boot/kernel/mac_bsdextended.ko",1024,0)
= 0 (0x0)
open("/boot/kernel/mac_bsdextended.ko-gdb.py",O_RDONLY|O_CLOEXEC,0666) ERR#2
'No such file or directory'
--
You are receiving this mail because:
You are the assignee for the bug.