public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178
@ 2014-09-14 20:33 philipp.classen at gmx dot net
  2014-09-14 20:37 ` [Bug gdb/17391] " philipp.classen at gmx dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: philipp.classen at gmx dot net @ 2014-09-14 20:33 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17391
           Summary: gdb internal error: assertion fails in regcache.c:178
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: philipp.classen at gmx dot net

Created attachment 7785
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7785&action=edit
the compressed core dump

regcache.c:178: internal-error: register_size: Assertion `regnum >= 0 && regnum
< (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.

In the previous line, there is the following warning:

warning: Unmapped DWARF Register #-1 encountered

---

OS: I'm using Arch Linux (64-bit).

The crash occurs frequently. It seems to make no difference if the binary is
compiled with gcc 4.9.1 or clang 3.5.

Here is an example run:

phil@terra-arch:~/ghost (ghost3)$ gdb ./ghost
GNU gdb (GDB) 7.8
Copyright (C) 2014 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".
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"...
Reading symbols from ./ghost...done.
(gdb) run
Starting program: /home/phil/ghost/ghost 
Got object file from memory but can't read symbols: File truncated.
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
White 1> analyze
[New Thread 0x7ffff47d7700 (LWP 9130)]
[New Thread 0x7ffff3fd6700 (LWP 9131)]
Depth: 1. Na3 (21)
Depth: 1. Nc3 (47)
Depth: 1. Nf3 (59)
Depth: 1. d3 (60)
Depth: 1. e3 (71)
Depth: 1. e4 (72)
Depth: 2.[New Thread 0x7ffff35c4700 (LWP 9132)]
[New Thread 0x7ffff31c3700 (LWP 9133)]
[New Thread 0x7ffff2dc2700 (LWP 9134)]
[New Thread 0x7ffff29c1700 (LWP 9135)]
[New Thread 0x7ffff25c0700 (LWP 9136)]
[New Thread 0x7ffff21bf700 (LWP 9137)]
[New Thread 0x7ffff1dbe700 (LWP 9138)]
Depth: 2. e4 e5 (6)
Depth: 3.^C
Program received signal SIGINT, Interrupt.
0x00007ffff7bc9b2f in pthread_cond_wait@@GLIBC_2.3.2 () from
/usr/lib/libpthread.so.0
(gdb) bt
#0  0x00007ffff7bc9b2f in pthread_cond_wait@@GLIBC_2.3.2 () from
/usr/lib/libpthread.so.0
#1  0x00007ffff7506d6c in
std::condition_variable::wait(std::unique_lock<std::mutex>&) ()
   from /usr/lib/libstdc++.so.6
#2  0x000000000061a87b in wait<(lambda at ./parallel/sync_buffer.h:109:28)>
(this=0xbab608, 
    __lock=..., __p=...)
    at
/usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/condition_variable:98
#3  GhostUtils::LockedSyncBuffer<GhostSearch::TaggedMessage>::Dequeue
(this=0xbab5e0, target=...)
    at ./parallel/sync_buffer.h:109
#4  0x000000000061807e in Receive (warning: Unmapped DWARF Register #-1
encountered.

regcache.c:178: internal-error: register_size: Assertion `regnum >= 0 && regnum
< (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-10-26 23:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-14 20:33 [Bug gdb/17391] New: gdb internal error: assertion fails in regcache.c:178 philipp.classen at gmx dot net
2014-09-14 20:37 ` [Bug gdb/17391] " philipp.classen at gmx dot net
2014-09-14 20:40 ` philipp.classen at gmx dot net
2014-09-14 20:45 ` philipp.classen at gmx dot net
2015-06-26 14:32 ` dje at google dot com
2015-06-26 14:34 ` dje at google dot com
2015-08-11  0:46 ` [Bug symtab/17391] " dje at google dot com
2015-10-26 23:07 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).