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/21051] nat/x86-linux-dregs.c:146: internal-error: void x86_linux_update_debug_registers(lwp_info*): Assertion `lwp_is_stopped (lwp)' failed.


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

Mateusz Lenik <mlen at mlen dot pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mlen at mlen dot pl

--- Comment #1 from Mateusz Lenik <mlen at mlen dot pl> ---
I am also able to reproduce this on both ArchLinux and Gentoo.
7.11 is the earliest version failing with this error I was able to find.

Steps to reproduce in my case:
1) Install ruby and rake
2) touch Rakefile
3) gdb --args ruby -S rake -T
GNU gdb (Gentoo 7.12.1 vanilla) 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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
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"...
Reading symbols from ruby...Reading symbols from
/usr/lib64/debug//usr/bin/ruby23.debug...done.
done.
(gdb) set follow-fork-mode child
(gdb) r
Starting program: /usr/bin/ruby -S rake -T
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff7ff6700 (LWP 26921)]
[New process 26922]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
./nat/x86-linux-dregs.c:146: internal-error: void
x86_linux_update_debug_registers(lwp_info*): Assertion `lwp_is_stopped (lwp)'
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:
<https://bugs.gentoo.org/>.

./nat/x86-linux-dregs.c:146: internal-error: void
x86_linux_update_debug_registers(lwp_info*): Assertion `lwp_is_stopped (lwp)'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) y

Backtrace from the core:

$ gdb $(which gdb) /var/cores/core.gdb.1486662173   
GNU gdb (Gentoo 7.12.1 vanilla) 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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
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"...
Reading symbols from /usr/bin/gdb...Reading symbols from
/usr/lib64/debug//usr/bin/gdb.debug...done.
done.
[New LWP 24243]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gdb --args ruby -S rake -T'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007efefa67c0e8 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
54        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0  0x00007efefa67c0e8 in __GI_raise (sig=sig@entry=6) at
../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007efefa67d53a in __GI_abort () at abort.c:89
#2  0x0000000000752646 in dump_core () at utils.c:561
#3  0x0000000000754ce9 in internal_vproblem(internal_problem *, const char *,
int, const char *, typedef __va_list_tag __va_list_tag *)
(problem=problem@entry=0x1b47220 <internal_error_problem>, file=<optimized
out>, line=<optimized out>, fmt=<optimized out>, ap=ap@entry=0x7ffe9b29cf80) at
utils.c:772
#4  0x0000000000754da9 in internal_verror (file=<optimized out>,
line=<optimized out>, fmt=<optimized out>, ap=ap@entry=0x7ffe9b29cf80) at
utils.c:798
#5  0x000000000078e527 in internal_error (file=file@entry=0xc929d8
"./nat/x86-linux-dregs.c", line=line@entry=146, fmt=<optimized out>) at
common/errors.c:55
#6  0x000000000056165e in x86_linux_update_debug_registers (lwp=0x351ee30) at
nat/x86-linux-dregs.c:146
#7  0x00000000005520a3 in detach_one_lwp (lp=lp@entry=0x351ee30,
signo_p=signo_p@entry=0x0) at linux-nat.c:1431
#8  0x000000000055239f in detach_callback (lp=0x351ee30, data=<optimized out>)
at linux-nat.c:1489
#9  0x0000000000554ab9 in iterate_over_lwps (filter=...,
callback=callback@entry=0x552360 <detach_callback(lwp_info*, void*)>,
data=data@entry=0x0) at linux-nat.c:984
#10 0x0000000000554ff6 in linux_nat_detach (ops=0x30a40c0, args=0x0,
from_tty=0) at linux-nat.c:1511
#11 0x000000000055b48f in thread_db_detach (ops=<optimized out>, args=0x0,
from_tty=0) at linux-thread-db.c:1099
#12 0x0000000000668eae in handle_vfork_child_exec_or_exit (exec=exec@entry=1)
at infrun.c:976
#13 0x000000000066e53d in handle_inferior_event_1 (ecs=0x7ffe9b29d3f0) at
infrun.c:5334
#14 handle_inferior_event (ecs=ecs@entry=0x7ffe9b29d3f0) at infrun.c:5424
#15 0x00000000006705e6 in fetch_inferior_event (client_data=<optimized out>) at
infrun.c:3972
#16 0x0000000000686865 in gdb_wait_for_event (block=block@entry=0) at
event-loop.c:859
#17 0x0000000000686987 in gdb_do_one_event () at event-loop.c:322
#18 0x0000000000686b05 in gdb_do_one_event () at event-loop.c:360
#19 start_event_loop () at event-loop.c:371
#20 0x0000000000680668 in captured_command_loop (data=data@entry=0x0) at
main.c:324
#21 0x000000000067d383 in catch_errors (func=func@entry=0x680640
<captured_command_loop(void*)>, func_args=func_args@entry=0x0,
errstring=errstring@entry=0x177a56c "", mask=mask@entry=RETURN_MASK_ALL) at
exceptions.c:236
#22 0x00000000006815a6 in captured_main (data=0x7ffe9b29d5c0) at main.c:1149
#23 gdb_main (args=args@entry=0x7ffe9b29d6e0) at main.c:1159
#24 0x0000000000411d15 in main (argc=<optimized out>, argv=<optimized out>) at
gdb.c:32

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