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] gdb appears to hang at "attaching to program"


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

--- Comment #7 from Eric Rossman <fuzzymo at gmail dot com> ---
(In reply to Sergio Durigan Junior from comment #5)
> Oh, and BTW, you are using a very old kernel (2.6.16 was released in 2006),
> so it might be worth checking for bugs related to ptrace in this kernel... 
> Just FTR.

I'm in the process of getting a new machine running with a more current kernel,
but in the meantime I was trying to keep things working for the existing
machine.

I did read some about ptrace on 2.6.16 for user-mode kernel tracing, but
nothing quite like this.

> And one last thing I forgot to ask: I assume that starting the program
> inside GDB works OK.  Right?

No, it doesn't work then either.

> gdb .execs/sleepsome 
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 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 "powerpc64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/user/.execs/sleepsome...done.
(gdb) break main
Breakpoint 1 at 0x10000510
(gdb) r
Starting program: /home/user/.execs/sleepsome 

and then nothing. Only a SIGKILL gets it out of whatever state it is in.

I have a suspicion that the kernel is to blame, but for the next week or so, I
cannot update the machine.

-- 
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]