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/20176] New: thread.c:1100: internal-error: void finish_thread_state(ptid_t): Assertion `tp' failed. With GDB-7.11


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

            Bug ID: 20176
           Summary: thread.c:1100: internal-error: void
                    finish_thread_state(ptid_t): Assertion `tp' failed.
                    With GDB-7.11
           Product: gdb
           Version: 7.11
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vinay.g at kpit dot com
  Target Milestone: ---

Getting below error with GDB-7.11 (Released source), while cross debugging 
program with "follow fork / follow exec" enabled.

Error with GDB on host machine:
=================================================
thread.c:1100: internal-error: void finish_thread_state(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)


Error with GDBSERVER at target remote using QEMU:
=================================================
../gdb/gdbserver/linux-low.c:1922: A problem internal to GDBserver has been
detected. 
unsuspend LWP 842, suspended=-1 

STEPS TO REPRODUCE:
1. GDB is configured using  "--host=x86_64-linux" and  "--target=x86_64-linux"
        ./configure --host=x86_64-linux --target=x86_64-linux

2. Start QEMU for target x86_64-linux and execute below commands
        wget http://www.gzip.org/gz124src.zip 
        unzip gz124src.zip 
        cd gz124
        ./configure 
        time make -j 4 
        make clean 
        gdbserver :1234 time make -j 4 

3. At host side start gdb, and execute below commands.
        $./gdb
        GNU gdb (GDB) 7.11
        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 "--host=x86_64-linux --target=x86_64-linux".
        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".
        (gdb)set non-stop on 
        (gdb)target remote 128.224.199.101:1234 
        (gdb)set pagination off 
        (gdb)set follow-fork-mode parent 
        (gdb)set detach-on-fork off 
        (gdb)b time.c:654 
        (gdb)continue

We have also verified the above error with latest GDB trunk sources.

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