public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27005] New: ../../gdb/gdb/gdbtypes.c:5443: internal-error: Unexpected type field location kind: 4
@ 2020-12-02 23:34 schwab@linux-m68k.org
  2021-03-27 10:10 ` [Bug gdb/27005] " domen.stangar at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2020-12-02 23:34 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27005
           Summary: ../../gdb/gdb/gdbtypes.c:5443: internal-error:
                    Unexpected type field location kind: 4
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: schwab@linux-m68k.org
  Target Milestone: ---

$ cat thread1.cc
#include <thread>  

void threadfunc();  

struct StaticThread {
    std::thread t;  
    StaticThread() : t(threadfunc) {}
    ~StaticThread() { t.join(); }
};  

static StaticThread thread1, thread2;
$ cat thread2.cc
#include <iostream>  

void threadfunc() {
    std::cout << "Printing\n";
}  

int main() {}
$ g++ -g thread[12].cc -pthread
$ gdb a.out
GNU gdb (GDB) 11.0.50.20201202-git
Copyright (C) 2020 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-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 a.out...
(gdb) start
Temporary breakpoint 1 at 0x401499: file thread2.cc, line 7.
Starting program: /daten/src/test/a.out 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff6ed1700 (LWP 20157)]
[New Thread 0x7ffff66d0700 (LWP 20158)]

Thread 2 "a.out" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff6ed1700 (LWP 20157)]
0x00007ffff7b2d5da in std::ostream::sentry::sentry (this=0x7ffff6ed0d80,
__os=...) at
/usr/src/debug/gcc10-10.2.1+git583-lp152.2.2.x86_64/obj-x86_64-suse-linux/x86_64-suse-linux/libstdc++-v3/include/bits/ostream.tcc:51
51            if (__os.tie() && __os.good())
(gdb) watch std::ios_base::Init::_S_refcount
Hardware watchpoint 2: std::ios_base::Init::_S_refcount
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
../../gdb/gdb/gdbtypes.c:5443: internal-error: Unexpected type field location
kind: 4
A problem internal to GDB has been detected,

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

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

end of thread, other threads:[~2022-03-06 16:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02 23:34 [Bug gdb/27005] New: ../../gdb/gdb/gdbtypes.c:5443: internal-error: Unexpected type field location kind: 4 schwab@linux-m68k.org
2021-03-27 10:10 ` [Bug gdb/27005] " domen.stangar at gmail dot com
2021-03-28  2:08 ` simark at simark dot ca
2021-08-14 19:45 ` tromey at sourceware dot org
2022-03-06 16:37 ` tromey at sourceware dot org
2022-03-06 16:41 ` tromey at sourceware dot org
2022-03-06 16:45 ` simark at simark dot ca

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).