This might be this GDB bug (patch available there too):
https://sourceware.org/bugzilla/show_bug.cgi?id=23210#c6

** Bug watch added: Sourceware.org Bugzilla #23210
   https://sourceware.org/bugzilla/show_bug.cgi?id=23210

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1845494

Title:
  gdb 8.1-0ubuntu3.1 freezes before call main function while debugging
  32bit application

Status in gdb package in Ubuntu:
  Confirmed

Bug description:
  gdb 8.1ubuntu3.1 run binary 64bit without problem.
  If compile for 32bit target (g++ -m32 ..) then it can't load libraries
  before call main(), i mean it gets frozen.
  gdb 8.1-0ubuntu3 works with 32 and 64 bit binaries without problem.

  Here is log:
  g++ -m32 -o test test.cpp
  gdb ./test

  GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
  Copyright (C) 2018 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-linux-gnu".
  Type "show configuration" for configuration details.
  For bug reporting instructions, please see:
  <http://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 ./test...(no debugging symbols found)...done.
  (gdb) run
  Starting program: /tmp/test
  warning: Breakpoint address adjusted from 0xf7fd9be0 to 0xfffffffff7fd9be0.
  warning: Breakpoint address adjusted from 0xf7fda195 to 0xfffffffff7fda195.
  warning: Breakpoint address adjusted from 0xf7fdbd1c to 0xfffffffff7fdbd1c.
  warning: Breakpoint address adjusted from 0xf7fdb924 to 0xfffffffff7fdb924.
  warning: Breakpoint address adjusted from 0xf7fe99b3 to 0xfffffffff7fe99b3.
  warning: Breakpoint address adjusted from 0xf7fea401 to 0xfffffffff7fea401.
  warning: Breakpoint address adjusted from 0xf7fea706 to 0xfffffffff7fea706.
  exit()
  ^C
  Program received signal SIGINT, Interrupt.
  0xf7fd9be0 in ?? () from /lib/ld-linux.so.2

  lsb_release -a
  Distributor ID:       Ubuntu
  Description:  Ubuntu 18.04.3 LTS
  Release:      18.04
  Codename:     bionic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1845494/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to