Hi,
I recently upgraded to VirtualBox Version 7.0.4 r154605 on MacOS Ventura 13.0.1 (22A400) to find that GDB doesn't work on the guest (Rocky Linux 9.1) :
[root@localhost ~]# gdb /bin/ls
GNU gdb (GDB) Red Hat Enterprise Linux 10.2-10.el9
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later #
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-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
#.
Find the GDB manual and other documentation resources online at:
#.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /bin/ls...
Reading symbols from .gnu_debugdata for /usr/bin/ls...
(No debugging symbols found in .gnu_debugdata for /usr/bin/ls)
Missing separate debuginfos, use: dnf debuginfo-install coreutils-8.32-32.el9.x86_64
(gdb) r
Starting program: /usr/bin/ls
Program received signal SIGSEGV, Segmentation fault.
0x0000aaaa9aa62649 in ?? ()
(gdb) bt
#0 0x0000aaaa9aa62649 in ?? ()
#1 0x00007ffff7fead98 in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, auxv=<optimized out>)
at rtld.c:1883
#2 0x00007ffff7fe70b3 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffffffe430,
dl_main=dl_main@entry=0x7ffff7fe8f30 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:140
#3 0x00007ffff7fe8a08 in _dl_start_final (arg=0x7fffffffe430) at rtld.c:502
#4 _dl_start (arg=0x7fffffffe430) at rtld.c:587
#5 0x00007ffff7fe7ad8 in _start () from /lib64/ld-linux-x86-64.so.2
#6 0x0000000000000001 in ?? ()
#7 0x00007fffffffe6bf in ?? ()
#8 0x0000000000000000 in ?? ()
(gdb)
The computer is an iMac Retina 4K, 21.5-inch, 2019 (3 GHz 6-Core Intel Core i5). GDB used to work fine on the previous VirtualBox.
I also have a MacMini running BigSur and the same Rocky Linux 9.1 running GDB works fine.
If you need further info let me know.
Thanks in advance
Drew
GDB on Rocky9
Re: GDB on Rocky9
The same problem on centos 8/9 x64_86 under virtualbox 7.x, mac os Ventura 13.0.1, intel based macbook pro
if i try to start any application under gdb:
Program received signal SIGSEGV, Segmentation fault.
0x0000aaaa9aa62009 in ?? ()
(gdb) bt
#0 0x0000aaaa9aa62009 in ?? ()
#1 0x00007ffff7feae68 in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, auxv=<optimized out>) at rtld.c:1883
#2 0x00007ffff7fe7183 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffffffe120, dl_main=dl_main@entry=0x7ffff7fe9000 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:140
#3 0x00007ffff7fe8ad8 in _dl_start_final (arg=0x7fffffffe120) at rtld.c:502
#4 _dl_start (arg=0x7fffffffe120) at rtld.c:587
#5 0x00007ffff7fe7ba8 in _start () from /lib64/ld-linux-x86-64.so.2
#6 0x0000000000000003 in ?? ()
#7 0x00007fffffffe3dd in ?? ()
#8 0x00007fffffffe3ef in ?? ()
#9 0x00007fffffffe46d in ?? ()
#10 0x0000000000000000 in ?? ()
if i try to start any application under gdb:
Program received signal SIGSEGV, Segmentation fault.
0x0000aaaa9aa62009 in ?? ()
(gdb) bt
#0 0x0000aaaa9aa62009 in ?? ()
#1 0x00007ffff7feae68 in dl_main (phdr=<optimized out>, phnum=<optimized out>, user_entry=<optimized out>, auxv=<optimized out>) at rtld.c:1883
#2 0x00007ffff7fe7183 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffffffe120, dl_main=dl_main@entry=0x7ffff7fe9000 <dl_main>) at ../sysdeps/unix/sysv/linux/dl-sysdep.c:140
#3 0x00007ffff7fe8ad8 in _dl_start_final (arg=0x7fffffffe120) at rtld.c:502
#4 _dl_start (arg=0x7fffffffe120) at rtld.c:587
#5 0x00007ffff7fe7ba8 in _start () from /lib64/ld-linux-x86-64.so.2
#6 0x0000000000000003 in ?? ()
#7 0x00007fffffffe3dd in ?? ()
#8 0x00007fffffffe3ef in ?? ()
#9 0x00007fffffffe46d in ?? ()
#10 0x0000000000000000 in ?? ()
Re: GDB on Rocky9
still no solution ? this is very annoying problem i had to use lldb instead of gdb.
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: GDB on Rocky9
I suggest you try a GDB forum.
Re: GDB on Rocky9
why ? this is problem with virtualbox
gdb is worked in version 6.x (in the same guest) also in list of changes for 7.x i can see a line
Debugging: Added experimental support for guest debugging through GDB and highly experimental support for guest debugging through KD/WinDbg
gdb is worked in version 6.x (in the same guest) also in list of changes for 7.x i can see a line
Debugging: Added experimental support for guest debugging through GDB and highly experimental support for guest debugging through KD/WinDbg
-
- Volunteer
- Posts: 5677
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: GDB on Rocky9
AFAIK, this is about running GDB on the host to debug the guest, similar to remote debugging.Shaeto wrote:Added experimental support for guest debugging through GDB
Re: GDB on Rocky9
understand but the word was said anyway if i switch VM back to 6.x gdb is starting to work, so ...
-
- Volunteer
- Posts: 5677
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: GDB on Rocky9
This issue could be related to VirtualBox 7.0.4 using the Apple Hypervisor, whereas VirtualBox 6.1.40 uses VT-x directly.
Please create a ticket in the Bugtracker.
Edit:
Link to the created ticket: 21413
Please create a ticket in the Bugtracker.
Edit:
Link to the created ticket: 21413
-
- Volunteer
- Posts: 5677
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: GDB on Rocky9
This issue should be fixed in the VirtualBox test builds 7.0.11r158813 and newer.