public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17247] New: gdb freezes on multi threaded app (test-case attached)
@ 2014-08-09 13:35 glibc at iamsergio dot de
  2014-08-09 20:26 ` [Bug gdb/17247] " mail at milianw dot de
                   ` (52 more replies)
  0 siblings, 53 replies; 54+ messages in thread
From: glibc at iamsergio dot de @ 2014-08-09 13:35 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17247
           Summary: gdb freezes on multi threaded app (test-case attached)
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: glibc at iamsergio dot de

Created attachment 7741
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7741&action=edit
test-case

Run the attached test-case:

g++ -std=c++11 -lpthread test.cpp -o test
gdb ./test
^C^C^C -> nothing, it's impossible to interrupt


Attaching a second gdb to the first gdb I can get a backtrace:

Thread 1 (Thread 0x7fbe58d58740 (LWP 3540)):
#0  0x00007fbe56c61157 in sigsuspend () from /usr/lib/libc.so.6
#1  0x00000000004a9270 in wait_lwp (lp=lp@entry=0x1edcee0) at linux-nat.c:2314
---Type <return> to continue, or q <return> to quit---
#2  0x00000000004a951e in wait_lwp (lp=lp@entry=0x1edcee0) at linux-nat.c:2370
#3  0x00000000004aad1c in stop_wait_callback (lp=0x1edcee0, data=<optimized
out>) at linux-nat.c:2591
#4  0x00000000004a9df9 in iterate_over_lwps (filter=...,
callback=callback@entry=0x4aacd0 <stop_wait_callback>, data=data@entry=0x0) at
linux-nat.c:1041
#5  0x00000000004ac414 in linux_nat_wait_1 (ops=<optimized out>,
target_options=1, ourstatus=0x7fffc63c4160, ptid=...) at linux-nat.c:3530
#6  linux_nat_wait (ops=<optimized out>, ptid=..., ourstatus=0x7fffc63c4160,
target_options=1) at linux-nat.c:3680
#7  0x00000000004b2676 in thread_db_wait (ops=<optimized out>, ptid=...,
ourstatus=0x7fffc63c4160, options=1) at linux-thread-db.c:1489
#8  0x00000000005e7c3d in delegate_wait (self=<optimized out>, arg1=...,
arg2=<optimized out>, arg3=<optimized out>) at target-delegates.c:116
#9  0x00000000005f5134 in target_wait (ptid=...,
status=status@entry=0x7fffc63c4160, options=options@entry=1) at target.c:2073
#10 0x00000000005b96e9 in fetch_inferior_event
(client_data=client_data@entry=0x0) at infrun.c:2881
#11 0x00000000005cf452 in inferior_event_handler (event_type=INF_REG_EVENT,
client_data=0x0) at inf-loop.c:58
#12 0x00000000005cd671 in process_event () at event-loop.c:340
#13 0x00000000005cda3a in gdb_do_one_event () at event-loop.c:392
#14 0x00000000005cdc8e in start_event_loop () at event-loop.c:429
#15 0x00000000005c7463 in captured_command_loop (data=data@entry=0x0) at
main.c:322
#16 0x00000000005c46aa in catch_errors (func=func@entry=0x5c7450
<captured_command_loop>, func_args=func_args@entry=0x0,
errstring=errstring@entry=0x7990d2 "", mask=mask@entry=RETURN_MASK_ALL) at
exceptions.c:514
#17 0x00000000005c83d6 in captured_main (data=data@entry=0x7fffc63c4450) at
main.c:1178
#18 0x00000000005c46aa in catch_errors (func=func@entry=0x5c7960
<captured_main>, func_args=func_args@entry=0x7fffc63c4450,
errstring=errstring@entry=0x7990d2 "", mask=mask@entry=RETURN_MASK_ALL)
    at exceptions.c:514
#19 0x00000000005c88ab in gdb_main (args=args@entry=0x7fffc63c4450) at
main.c:1186
#20 0x0000000000464dc5 in main (argc=<optimized out>, argv=<optimized out>) at
gdb.c:32

Tested gdb 7.7 and master, on archlinux, kernel 3.14.15, glibc 2.19, gcc 4.9.1,
also tested clang, same bug.

Using x86_64

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


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

end of thread, other threads:[~2021-10-25  9:14 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-09 13:35 [Bug gdb/17247] New: gdb freezes on multi threaded app (test-case attached) glibc at iamsergio dot de
2014-08-09 20:26 ` [Bug gdb/17247] " mail at milianw dot de
2014-08-09 20:28 ` mail at milianw dot de
2014-08-10  0:54 ` philip.rebohle@tu-dortmund.de
2014-08-11  6:18 ` xdje42 at gmail dot com
2014-08-11 10:12 ` mail at milianw dot de
2014-08-12  8:43 ` kugel at rockbox dot org
2014-08-16 21:39 ` ideasman42 at gmail dot com
2014-08-17  2:47 ` net147 at gmail dot com
2014-08-18 14:14 ` rggjan at gmail dot com
2014-08-18 22:17 ` dje at google dot com
2014-08-18 23:10 ` dje at google dot com
2014-08-21  9:34 ` nimajnebwild at gmail dot com
2014-08-23 13:26 ` bernd.amend at gmail dot com
2014-08-23 16:07 ` dje at google dot com
2014-08-23 16:19 ` bernd.amend at gmail dot com
2014-08-23 21:11 ` kugel at rockbox dot org
2014-08-23 21:28 ` philip.rebohle@tu-dortmund.de
2014-08-23 21:37 ` xdje42 at gmail dot com
2014-08-23 21:39 ` xdje42 at gmail dot com
2014-08-23 21:42 ` kugel at rockbox dot org
2014-08-23 21:59 ` xdje42 at gmail dot com
2014-08-23 22:13 ` xdje42 at gmail dot com
2014-08-23 22:22 ` xdje42 at gmail dot com
2014-08-23 22:51 ` philip.rebohle@tu-dortmund.de
2014-08-23 22:56 ` philip.rebohle@tu-dortmund.de
2014-08-23 23:07 ` xdje42 at gmail dot com
2014-08-24  3:41 ` bernd.amend at gmail dot com
2014-08-24 11:40 ` mail at milianw dot de
2014-08-25 13:02 ` chenmulong at gmail dot com
2014-08-25 17:30 ` evgeny.grablyk at gmail dot com
2014-08-25 17:34 ` evgeny.grablyk at gmail dot com
2014-08-26  7:57 ` xdje42 at gmail dot com
2014-08-28  5:50 ` xdje42 at gmail dot com
2014-08-28  5:51 ` xdje42 at gmail dot com
2014-08-28  5:52 ` xdje42 at gmail dot com
2014-08-28  5:53 ` xdje42 at gmail dot com
2014-08-28  8:28 ` palves at redhat dot com
2014-08-28 10:53 ` corinna at vinschen dot de
2014-08-28 11:52 ` jaap at jcz dot nl
2014-08-29 20:43 ` evgeny.grablyk at gmail dot com
2014-08-31  0:41 ` xdje42 at gmail dot com
2014-08-31 17:27 ` xdje42 at gmail dot com
2014-08-31 18:58 ` rosslagerwall at gmail dot com
2014-09-01 13:44 ` corinna at vinschen dot de
2014-09-09  5:50 ` cvs-commit at gcc dot gnu.org
2014-09-10  4:47 ` cvs-commit at gcc dot gnu.org
2014-09-11 15:59 ` xdje42 at gmail dot com
2014-09-11 18:29 ` kbrown at cornell dot edu
2014-10-29 19:48 ` cvs-commit at gcc dot gnu.org
2021-09-28  2:45 ` dianeBerlusconi at gmail dot com
2021-10-21  6:54 ` bap.fayol at gmail dot com
2021-10-25  8:57 ` jameszen29 at gmail dot com
2021-10-25  9:14 ` nimajnebwild at gmail dot com

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