NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/48743 (gdb: quitting after attaching to process doesn't work)



Synopsis: gdb: quitting after attaching to process doesn't work

State-Changed-From-To: open->closed
State-Changed-By: kamil%NetBSD.org@localhost
State-Changed-When: Fri, 06 Oct 2017 23:42:35 +0200
State-Changed-Why:

It works now:

$ gdb -p 17907 
GNU gdb (GDB) 7.12
Copyright (C) 2016 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--netbsd".
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".
Attaching to process 17907
Reading symbols from /usr/pkg/bin/python2.7...done.
Reading symbols from /usr/pkg/lib/libpython2.7.so.1.0...done.
Reading symbols from /usr/lib/libutil.so.7...Reading symbols from /usr/libdata/debug//usr/lib/libutil.so.7.24.debug...done.
done.
Reading symbols from /usr/lib/libm.so.0...Reading symbols from /usr/libdata/debug//usr/lib/libm.so.0.12.debug...done.
done.
Reading symbols from /usr/lib/libpthread.so.1...Reading symbols from /usr/libdata/debug//usr/lib/libpthread.so.1.3.debug...done.
done.
Reading symbols from /usr/lib/libc.so.12...Reading symbols from /usr/libdata/debug//usr/lib/libc.so.12.207.debug...done.
done.
Reading symbols from /usr/pkg/lib/python2.7/lib-dynload/_locale.so...done.
Reading symbols from /usr/lib/libintl.so.1...Reading symbols from /usr/libdata/debug//usr/lib/libintl.so.1.1.debug...done.
done.
Reading symbols from /usr/lib/i18n/libUTF8.so.5.0...Reading symbols from /usr/libdata/debug//usr/lib/i18n/libUTF8.so.5.0.debug...done.
done.
Reading symbols from /usr/pkg/lib/python2.7/lib-dynload/readline.so...done.
Reading symbols from /usr/pkg/lib/libreadline.so.7...done.
Reading symbols from /usr/lib/libterminfo.so.1...Reading symbols from /usr/libdata/debug//usr/lib/libterminfo.so.1.0.debug...done.
done.
Reading symbols from /libexec/ld.elf_so...Reading symbols from /usr/libdata/debug//libexec/ld.elf_so.debug...done.
done.
[Switching to LWP 1]
0x0000794de223b30a in _sys___select50 () from /usr/lib/libc.so.12
(gdb) bt
#0  0x0000794de223b30a in _sys___select50 () from /usr/lib/libc.so.12
#1  0x0000794de260736f in __select50 (nfds=<optimized out>, readfds=<optimized out>, writefds=<optimized out>, 
    exceptfds=<optimized out>, timeout=<optimized out>) at /usr/src/lib/libpthread/pthread_cancelstub.c:514
#2  0x0000794de12037a2 in readline_until_enter_or_signal (prompt=<optimized out>, signal=0x7f7fff1c4984) at Modules/readline.c:1045
#3  0x0000794de1202b67 in call_readline (sys_stdin=0x794de255aec0 <__sF>, sys_stdout=0x794de255af58 <__sF+152>, 
    prompt=0x794de2ce97d4 ">>> ") at Modules/readline.c:1142
#4  0x0000794de3242ca9 in PyOS_Readline (sys_stdin=0x794de255aec0 <__sF>, sys_stdout=0x794de255af58 <__sF+152>, 
    prompt=0x794de2ce97d4 ">>> ") at Parser/myreadline.c:207
#5  0x0000794de324474a in tok_nextc (tok=0x794de2956c00) at Parser/tokenizer.c:884
#6  0x0000794de324340f in tok_get (tok=0x794de2956c00, p_start=0x7f7fff1c4b48, p_end=0x7f7fff1c4b30) at Parser/tokenizer.c:1232
#7  0x0000794de324333e in PyTokenizer_Get (tok=0x794de2956c00, p_start=0x7f7fff1c4910, p_end=0x0) at Parser/tokenizer.c:1681
#8  0x0000794de32408dd in parsetok (tok=0x794de2956c00, g=<optimized out>, start=<optimized out>, err_ret=0x7f7fff1c4ba8, 
    flags=0x7f7fff1c4bd4) at Parser/parsetok.c:159
#9  0x0000794de32e53ca in PyParser_ASTFromFile (fp=0x1, filename=0x794de332ac1a "<stdin>", start=-500976886, 
    ps1=0x1a1 <error: Cannot access memory at address 0x1a1>, ps2=0x0, flags=0x7f7fff1c4d98, errcode=0x7f7fff1c4bd4, 
    arena=0x794de223b30a <_sys___select50+10>) at Python/pythonrun.c:1499
---Type <return> to continue, or q <return> to quit---
#10 0x0000794de32e5231 in PyRun_InteractiveOneFlags (fp=0x794de255aec0 <__sF>, filename=0x794de332ac1a "<stdin>", 
    flags=0x7f7fff1c4d98) at Python/pythonrun.c:837
#11 0x0000794de32e4e2e in PyRun_InteractiveLoopFlags (fp=0x794de255aec0 <__sF>, filename=0x794de332ac1a "<stdin>", 
    flags=0x7f7fff1c4d98) at Python/pythonrun.c:777
#12 0x0000794de32e4d2c in PyRun_AnyFileExFlags (fp=0x794de255aec0 <__sF>, filename=0x794de332ac1a "<stdin>", closeit=0, 
    flags=0x7f7fff1c4d98) at Python/pythonrun.c:746
#13 0x0000794de32f4b96 in Py_Main (argc=<optimized out>, argv=0x7f7fff1c4e08) at Modules/main.c:640
#14 0x000000000040086b in ___start ()
#15 0x0000794de3630000 in ?? ()
#16 0x0000000000000001 in ?? ()
#17 0x00007f7fff1c53d8 in ?? ()
#18 0x0000000000000000 in ?? ()
(gdb) q
A debugging session is active.

	Inferior 1 [LWP 0] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/pkg/bin/python2.7, process 17907

$ uname -a
NetBSD rugged 8.99.1 NetBSD 8.99.1 (GENERIC) #7: Mon Jul  3 15:56:30 CEST 2017  root@chieftec:/public/netbsd-root/sys/arch/amd64/compile/GENERIC amd64

Closing as is, it has been fixed since the origination.





Home | Main Index | Thread Index | Old Index