Date: Mon, 02 Mar 2026 15:15:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293536] kgdb: source code location lookup works for kernel but not for module Message-ID: <bug-293536-227-ePXGa7qzYr@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-293536-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293536-227-ePXGa7qzYr>
