Please note that the VM crashes
after I type in
continue command in gdb.
Terminal One:
# cd /usr/obj/usr/src/FreeBSD/amd64.amd64/sys/GENERIC/
# cat .gdbinit
set sysroot .
# gdb kernel.full
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 "x86_64-portbld-freebsd14.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 kernel.full...
warning: File "/usr/obj/usr/src/FreeBSD/amd64.amd64/sys/GENERIC/.gdbinit" auto-loading has been declined by your `au
to-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
add-auto-load-safe-path /usr/obj/usr/src/FreeBSD/amd64.amd64/sys/GENERIC/.gdbinit
line to your configuration file "/root/.config/gdb/gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb) target remote :1234
could not connect: Operation timed out.
(gdb) target remote :1234
Remote debugging using :1234
0xffffffff80389000 in cam_compat_handle_0x17 (dev=0xffffffffffffffff, cmd=18446744073709551615, addr=0x0, flag=-1,
td=0xffffffffffffffff, cbfnp=0xffffffffffffffff) at /usr/src/FreeBSD/sys/cam/cam_compat.c:180
180 bcopy(&cts17->xport_specific, &cts->xport_specific,
(gdb) continue
Continuing.
Remote connection closed
(gdb) quit
# ^D
Terminal Two:
______ ____ _____ _____
| ____| | _ \ / ____| __ \
| |___ _ __ ___ ___ | |_) | (___ | | | |
| ___| '__/ _ \/ _ \| _ < \___ \| | | |
| | | | | __/ __/| |_) |____) | |__| |
| | | | | | || | | |
|_| |_| \___|\___||____/|_____/|_____/ ``` `
s` `.....---.......--.``` -/
+---------- Welcome to FreeBSD -----------+ +o .--` /y:` +.
| | yo`:.

`+-
| 1. Boot Multi user [Enter] | y/ -/` -o/
| 2. Boot Single user | .- ::/sy+:.
| 3. Escape to loader prompt | / `-- /
| 4. Reboot | `: :`
| 5. Cons: Serial | `: :`
| | / /
| Options: | .- -.
| 6. Kernel: default/kernel (1 of 1) | -- -.
| 7. Boot Options | `:` `:`
| | .-- `--.
| Loader needs to be updated | .---.....----.
| |
+-----------------------------------------+
Autoboot in 7 seconds. [Space] to pause
Loading kernel...
/boot/kernel/kernel text=0x187fc8 text=0xdc6928 text=0x487f64 data=0x180+0xe80 data=0x1ada00+0x452600 0x8+0x1a3e08+0
x8+0x1cfea9\
Loading configured modules...
/boot/entropy size=0x1000
/etc/hostid size=0x25
vm exit[1]
reason VMX
rip 0x0000000000000000
inst_length 0
status 0
exit_reason 33 (VM-entry failure due to invalid guest state)
qualification 0x0000000000000000
inst_type 0
inst_error 0
Abort trap
artem@hevorhian:~ $ ^D