This is the mail archive of the gdb@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]

Reg : gdb crash is seen while attaching a process to gdb.


Hi ,

I am experiencing a gdb crash when i am trying to attach and dettach a
process(this process is a multi threaded application) to gdb on my
mips64 based linux environment.

ps -L -p 7889 | wc -l
15


# gdb -p 7889
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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 "mips64-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".
Attaching to process 7889
[New LWP 7895]
[New LWP 7896]
Couldn't write debug register: No such process.
(gdb) quit
A debugging session is active.

    Inferior 1 [process 7889] will be detached.

Quit anyway? (y or n) y
gdb-7.12.1/gdb/thread.c:1010: internal-error: int
is_executing(ptid_t): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.

gdb-7.12.1/gdb/thread.c:1010: internal-error: int
is_executing(ptid_t): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y
Aborted (core dumped)


I notice this problem only for some processes, there are few more
multi-threaded processes which are not showing this problem. Could you
please share some pointers on what could be causing this gdb crash.



Thanks,
Rajesh Dasari.


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