This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/16053] New: gdb appears to hang at "attaching to program"


https://sourceware.org/bugzilla/show_bug.cgi?id=16053

            Bug ID: 16053
           Summary: gdb appears to hang at "attaching to program"
           Product: gdb
           Version: 7.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: fuzzymo at gmail dot com

Created attachment 7235
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7235&action=edit
sleepsome.c

> uname -a
Linux xcrypto 2.6.16.60-0.103.1-ppc64 #1 SMP Thu May 16 19:52:34 UTC 2013 ppc64
ppc64 ppc64 GNU/Linux

> gdb --version
GNU gdb (GDB) SUSE (7.1-8.9.1)
Copyright (C) 2010 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 "ppc-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

> rpm -qi glibc 

Name        : glibc                        Relocations: (not relocatable)
Version     : 2.4                               Vendor: SUSE LINUX Products
GmbH, Nuernberg, Germany
Release     : 31.109.1                      Build Date: Thu May 16 22:47:21
2013
Install Date: Fri Jun  7 10:31:06 2013      Build Host: bearberry-1
Group       : System/Libraries              Source RPM:
glibc-2.4-31.109.1.src.rpm

> gcc -v
Using built-in specs.
Target: powerpc64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2
--enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=
--enable-version-specific-runtime-libs --without-system-libunwind
--with-cpu=default32 --enable-secureplt --with-long-double-128
--host=powerpc64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)

Attempting to attach to a running process seems to hang both GDB and the
running process:

> ps aux | grep sleepsome
user     26515  0.0  0.0   1800   452 pts/32   T+   11:39   0:00 ./sleepsome
root     26516  0.1  0.3  11216  6252 pts/34   S+   11:39   0:00 gdb
/home/user/.execs/sleepsome 26515
root     26518  0.0  0.1  11216  2144 pts/34   T+   11:39   0:00 gdb
/home/user/.execs/sleepsome 26515

> kill 26516
Detaching from program: /home/user/.execs/sleepsome, process 26537
Detaching from program: /home/user/.execs/sleepsome, process 26537
Quitting: ptrace: No such process.

I have recreated with a hello-world type program (attached).

compiled with:
> gcc -o sleepsome sleepsome.c

I'm quite happy to have someone tell me this is a known issue or that I'm doing
something wrong. If I can provide additional information or try something, I'm
happy to do so.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]