Gdb in Nova - Error: no plugin found for fstat(3)

Alexander Tormasov a.tormasov at innopolis.ru
Tue Oct 29 18:58:37 CET 2019


I am trying to run gdb test (gdb_monitor.run) on Nova/x64
Initially it give error ┬źno memory on address┬╗vin attempt to force breakpoint set :
[init -> gdb_monitor] Warning: read: no memory at address 0x1000000

After enlarging memory quota in run script (twice each monitor and test image) it start working (too slow - like 20 sec per step typically, anyway it works).

In the logI see during boot around 1000 lines of attempt to touch all available fd which failed (see in log below).
[init -> gdb_monitor] Error: no plugin found for fstat(3)
Can I do something with it?

I run fresh qemu 4.1 from host, run script from repos without any changes.
Command line
qemu-system-x86_64 -no-kvm  -cpu core2duo -nographic -serial mon:stdio -serial chardev:uart -chardev socket,id=uart,port=5555,host=10.211.55.2,server,nowait,ipv4 -m 512 -cdrom gdb_monitor.iso -machine q35


CPU ID (genode->kernel:package:core:thread) remapping
remap (0->0:0:0:0) boot cpu
Hypervisor info page contains 13 memory descriptors:
core     image  [0000000000100000,0000000000cf1000)
binaries region [000000000035a000,0000000000cf1000) free for reuse
detected physical memory: 0x0000000000000000 - size: 0x000000000009fc00
use      physical memory: 0x0000000000000000 - size: 0x000000000009f000
detected physical memory: 0x0000000000100000 - size: 0x000000001fedf000
use      physical memory: 0x0000000000100000 - size: 0x000000001fedf000
detected res memory: 0x1f3ec000 - size: 0xbf22f0 type=-2
detected res memory: 0x9fc00 - size: 0x400 type=2
detected res memory: 0xf0000 - size: 0x10000 type=2
detected res memory: 0x1ffdf000 - size: 0x21000 type=2
detected res memory: 0xb0000000 - size: 0x10000000 type=2
detected res memory: 0xfed1c000 - size: 0x4000 type=2
detected res memory: 0xfffc0000 - size: 0x40000 type=2
detected res memory: 0xfd000000 - size: 0x2800001e00120 type=-5
detected res memory: 0x1000000 - size: 0x800000 type=-1
detected res memory: 0x1800000 - size: 0x1c00000 type=-1
detected res memory: 0x1ffe20d2 - size: 0x0 type=-3
ROM modules:
ROM: [000000001f84d000,000000001f84d48a) config
ROM: [000000000000f000,0000000000013000) core_log
ROM: [000000001faa8000,000000001fbfd620) gdb_monitor
ROM: [000000001fdb4000,000000001fdf62b8) gdbserver_platform.lib.so
ROM: [000000001ff50000,000000001ffdde80) init
ROM: [000000001fdf7000,000000001ff4fce8) ld.lib.so
ROM: [000000001f84e000,000000001faa7540) libc.lib.so
ROM: [000000001fbfe000,000000001fc0bec8) libc_pipe.lib.so
ROM: [000000001fc36000,000000001fc82868) libm.lib.so
ROM: [000000001fc86000,000000001fcbec58) pc_uart_drv
ROM: [000000000000d000,000000000000e000) platform_info
ROM: [000000001fda8000,000000001fdb38a8) posix.lib.so
ROM: [000000001f647000,000000001f84ccb8) stdcxx.lib.so
ROM: [000000001fc83000,000000001fc857c8) test-gdb_monitor
ROM: [000000001fc0c000,000000001fc35e78) timer
ROM: [000000001fcbf000,000000001fda7cc0) vfs.lib.so

36M kernel memory

Genode 19.08
462 MiB RAM and 63254 caps assigned to init

[init] parent provides
[init]   service "ROM"
[init]   service "IRQ"
[init]   service "IO_MEM"
[init]   service "IO_PORT"
[init]   service "PD"
[init]   service "RM"
[init]   service "CPU"
[init]   service "LOG"
[init] child "timer"
[init]   RAM quota:  1800K
[init]   cap quota:  68
[init]   ELF binary: timer
[init]   priority:   0
[init]   provides service Timer
[init] child "pc_uart_drv"
[init]   RAM quota:  1800K
[init]   cap quota:  68
[init]   ELF binary: pc_uart_drv
[init]   priority:   0
[init]   provides service Terminal
[init]   provides service Uart
[init] child "gdb_monitor"
[init]   RAM quota:  7944K
[init]   cap quota:  168
[init]   ELF binary: gdb_monitor
[init]   priority:   0
[init -> pc_uart_drv] --- UART driver started ---
[init] child "pc_uart_drv" announces service "Uart"
[init] child "pc_uart_drv" announces service "Terminal"
[init] child "timer" announces service "Timer"
[init -> pc_uart_drv] open IRQ 3
[init -> pc_uart_drv]
[init -> pc_uart_drv] Warning: baud_rate 0 not supported, set to default
[init -> pc_uart_drv]
[init -> gdb_monitor] using the pipe libc plugin
[init -> gdb_monitor] Error: no plugin found for fstat(3)
...
[init -> gdb_monitor] Error: no plugin found for fstat(1023)
[init -> gdb_monitor] Warning: unsupported ioctl (request=0x40047477)
[init -> gdb_monitor] Warning: unsupported ioctl (request=0x80047476)
[init -> gdb_monitor] Process target created; pid = 1
[init -> gdb_monitor] Remote debugging using /dev/terminal
[init -> gdb_monitor] Error: fcntl(): command 6 not supported - vfs


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20191029/5f032bb9/attachment.html>


More information about the users mailing list