public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "xdje42 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug threads/17207] New: internal error on "c -a &": Assertion `lp != NULL' failed.
Date: Sun, 27 Jul 2014 20:07:00 -0000	[thread overview]
Message-ID: <bug-17207-4717@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 17207
           Summary: internal error on "c -a &": Assertion `lp != NULL'
                    failed.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: threads
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

Trying some additions to the testcase for my interrupt command fix (pr 14236) I
hit an internal error, repro'd with clean HEAD.

--snip---foo.gdb
set trace-commands on
set height 0
set width 0
dir ../../../interrupt/gdb/testsuite/gdb.threads
file /hack/build/interrupt/obj64/gdb/testsuite/gdb.threads/interrupt-command
set non-stop on
delete breakpoints
info breakpoints
break main
run
break all_threads_running
continue
info threads
set var test_thread_creation_p = 1
c &
info thread 1
c -a &
---snip---

bash$ ./gdb -D ./data-directory <foo.gdb
GNU gdb (GDB) 7.8.50.20140727-cvs
...
Type "apropos word" to search for commands related to "word".
(gdb) (gdb) (gdb) +set height 0
(gdb) +set width 0
(gdb) +dir ../../../interrupt/gdb/testsuite/gdb.threads
Warning:
/hack/build/interrupt/obj64/gdb/../../../interrupt/gdb/testsuite/gdb.threads:
No such file or directory.
Source directories searched:
/hack/build/interrupt/obj64/gdb/../../../interrupt/gdb/testsuite/gdb.threads:$cdir:$cwd
(gdb) +file
/hack/build/interrupt/obj64/gdb/testsuite/gdb.threads/interrupt-command
Reading symbols from
/hack/build/interrupt/obj64/gdb/testsuite/gdb.threads/interrupt-command...done.
(gdb) +set non-stop on
(gdb) +delete breakpoints
(gdb) +info breakpoints
No breakpoints or watchpoints.
(gdb) +break main
Breakpoint 1 at 0x4007a6: file
../../../interrupt/gdb/testsuite/gdb.threads/interrupt-command.c, line 98.
(gdb) +run
Starting program:
/hack/build/interrupt/obj64/gdb/testsuite/gdb.threads/interrupt-command
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Breakpoint 1, main (argc=1, argv=0x7fffffffe218) at
../../../interrupt/gdb/testsuite/gdb.threads/interrupt-command.c:98
98        alarm (60);
(gdb) +break all_threads_running
Breakpoint 2 at 0x400795: file
../../../interrupt/gdb/testsuite/gdb.threads/interrupt-command.c, line 91.
(gdb) +continue
Continuing.
[New Thread 0x7ffff7fcb700 (LWP 20395)]
[New Thread 0x7ffff777a700 (LWP 20396)]
[New Thread 0x7ffff6f29700 (LWP 20397)]
[New Thread 0x7ffff66d8700 (LWP 20398)]

Breakpoint 2, all_threads_running () at
../../../interrupt/gdb/testsuite/gdb.threads/interrupt-command.c:91
91      }
(gdb) +info threads
  Id   Target Id         Frame
  5    Thread 0x7ffff66d8700 (LWP 20398) "interrupt-comma" (running)
  4    Thread 0x7ffff6f29700 (LWP 20397) "interrupt-comma" (running)
  3    Thread 0x7ffff777a700 (LWP 20396) "interrupt-comma" (running)
  2    Thread 0x7ffff7fcb700 (LWP 20395) "interrupt-comma" (running)
* 1    Thread 0x7ffff7fcc740 (LWP 20391) "interrupt-comma" all_threads_running
() at ../../../interrupt/gdb/testsuite/gdb.threads/interrupt-command.c:91
(gdb) +set var test_thread_creation_p = 1
(gdb) +c &
Continuing.
(gdb) [New Thread 0x7ffff4de5700 (LWP 20400)]
[New Thread 0x7ffff5e87700 (LWP 20402)]
+info thread 1
[New Thread 0x7ffff5636700 (LWP 20401)]
[New Thread 0x7ffff4594700 (LWP 20399)]
  Id   Target Id         Frame
* 1    Thread 0x7ffff7fcc740 (LWP 20391) "interrupt-comma" (running)
(gdb) +c -a &
Continuing.
../../binutils-gdb/gdb/linux-nat.c:1751: internal-error: linux_nat_resume:
Assertion `lp != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.

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


             reply	other threads:[~2014-07-27 20:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-27 20:07 xdje42 at gmail dot com [this message]
2014-07-27 20:09 ` [Bug threads/17207] " xdje42 at gmail dot com
2014-07-28  2:12 ` xdje42 at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-17207-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).