VirtualBox

Ticket #3245 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Reported by: Dummy000001 Owned by:
Priority: major 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

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

Change History

Changed 5 years ago by Dummy000001

strace output of gdb problem under vbox 2.1.x

comment:1 Changed 5 years ago by Dummy000001

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 Changed 5 years ago by sandervl73

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

comment:3 Changed 5 years ago by sandervl73

  • Summary changed from gdb doesn't work in Linux guest to gdb doesn't work in Linux guest -> fixed in SVN/2.1.4

comment:4 Changed 5 years ago by sandervl73

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use