On Thu, Nov 4, 2010 at 1:54 PM, Rob wrote:
> Sorry, I think the problem is in gdb (including v7.2).  I have just
> encountered it using only gdb and not pyclewn.  gdb failed to return
> to the command prompt and the output from strace is:
>
> Process 6242 attached - interrupt to quit
> wait4(6244,  <unfinished ...>
> Process 6242 detached
>
> ctrl-c or other keys have no effect on either gdb or the strace
> output.  Is there anything I can do to generate a more meaningful
> debugging output for gdb?
>


Good catch.

Some googling around found this recent thread in the archer mailing
list ('archer' is where all experimental gdb projects are developped):

http://thread.gmane.org/gmane.comp.debugging.archer/2215

See below the results of Oleg Nesterov small test on my system
(debian, standard gdb 7.1). This looks very similar to the problem you
are having.

When you terminate the debuggee, is the debuggee stopped in a signal
handler ?


=== GDB session  =========================================
xavier$ gdb /usr/bin/perl
GNU gdb (GDB) 7.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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/perl...(no debugging symbols found)...done.
(gdb)
(gdb) set args -e '$SIG{HUP}=sub{}; kill HUP, $$; 1 while 1'
(gdb) r
Starting program: /usr/bin/perl -e '$SIG{HUP}=sub{}; kill HUP, $$; 1 while 1'
[Thread debugging using libthread_db enabled]

Program received signal SIGHUP, Hangup.
0x00007ffff70b01c7 in kill () from /lib/libc.so.6
(gdb) si
0x00007ffff7b06b50 in Perl_csighandler () from /usr/lib/libperl.so.5.10
(gdb) q
A debugging session is active.

        Inferior 1 [process 4604] will be killed.

Quit anyway? (y or n) y

^C^C^C^C^C^C^C

=== stracing gdb =========================================
xavier$ strace -p 4602
Process 4602 attached - interrupt to quit
wait4(4604, ^C <unfinished ...>
Process 4602 detached

==========================================================

-- 
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general

Reply via email to