VirtualBox

Opened 15 years ago

Closed 15 years ago

#3245 closed defect (fixed)

gdb doesn't work in Linux guest -> fixed in SVN/2.1.4

Reported by: Dummy000001 Owned by:
Component: other Version: VirtualBox 2.1.0
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Environment. Host: WinXP/32 SP2 on AMD Athlon64 x2 (old CPU, no fancy VM bits supported). Guest: Debian (Sid) 32 bit.

Starting from VBox 2.1.0, "gdb" under Linux guest can't set breakpoints. That means essentially one can't start program under debugger.

I have strace'd gdb and attaching output.

This is apparently the call where gdb fails:

ptrace(PTRACE_SETREGS, 2390, 0, 0xbfa5aaf8) = -1 EIO (Input/output error)

gdb works fine with 2.0.6.

Attachments (1)

strace-gdb-out.txt (47.5 KB ) - added by Dummy000001 15 years ago.
strace output of gdb problem under vbox 2.1.x

Download all attachments as: .zip

Change History (5)

by Dummy000001, 15 years ago

Attachment: strace-gdb-out.txt added

strace output of gdb problem under vbox 2.1.x

comment:1 by Dummy000001, 15 years ago

Guest info:

$ uname -a
Linux siduxbox 2.6.27-5.slh.1-sidux-686 #1 SMP PREEMPT Fri Nov 7 19:43:12 UTC 2008 i686 GNU/Linux

Modules:

$ dpkg -l 'virtual*' | grep 2.6.27-5
ii virtualbox-ose-guest-modules-2.6.27-5.slh.1-sidux-686 2.6.27.rev22+1.6.6-dfsg-1 PC virtualization solution modules for Linux
ii virtualbox-ose-modules-2.6.27-5.slh.1-sidux-686 2.6.27.rev22+1.6.6-dfsg-1 PC virtualization solution modules for Linux $

Error in attached file is on line 680.

comment:2 by Sander van Leeuwen, 15 years ago

Marked #2977 as a duplicate as this one contains more technical info.

comment:3 by Sander van Leeuwen, 15 years ago

Summary: gdb doesn't work in Linux guestgdb doesn't work in Linux guest -> fixed in SVN/2.1.4

comment:4 by Sander van Leeuwen, 15 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use