public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/17305] New: Hang when joining thread with gdb 7.8
@ 2014-08-24 21:49 rosslagerwall at gmail dot com
  2014-08-25  9:04 ` [Bug threads/17305] " rosslagerwall at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rosslagerwall at gmail dot com @ 2014-08-24 21:49 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17305
           Summary: Hang when joining thread with gdb 7.8
           Product: gdb
           Version: 7.8
            Status: NEW
          Severity: normal
          Priority: P2
         Component: threads
          Assignee: unassigned at sourceware dot org
          Reporter: rosslagerwall at gmail dot com

Created attachment 7756
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7756&action=edit
program to reproduce the problem

When using gdb 7.8 (or compiled from git), if a process does a pthread_join,
gdb and the process hang and gdb stops responding to any input (Ctrl-C, Ctrl-\,
Ctrl-z, etc). The only way to get out is to kill the process with SIGKILL, at
which point gdb begins responding again. This did not happen with gdb 7.7.1.

$ gcc -Wall -o test -g test.c -pthread
$ gdb test
Exception caught while booting Guile.
Error in function "open-file":
No such file or directory: "/usr/share/gdb/guile/gdb/boot.scm"

warning: Could not complete Guile gdb module initialization from:
/usr/share/gdb/guile/gdb/boot.scm.
Limited Guile support is available.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.8.50.20140824-cvs
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 /tmp/test...done.
(gdb) r
Starting program: /tmp/test 
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".
[New Thread 0x7ffff780f700 (LWP 1277)]
test
test
test
test
test
test
test
test
test
test

At this point the process has hung (which it doesn't when not connected to gdb)
and gdb doesn't respond to any keyboard input.

$ ps aux | grep test
ross      1268  0.0  0.3 108580 26096 pts/0    Sl   22:45   0:00 gdb/gdb
/tmp/test
ross      1273  0.0  0.0  14588   740 pts/0    tl+  22:45   0:00 /tmp/test

For what it's worth, I'm running Arch Linux with Linux 3.16.1. Thanks!

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


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

* [Bug threads/17305] Hang when joining thread with gdb 7.8
  2014-08-24 21:49 [Bug threads/17305] New: Hang when joining thread with gdb 7.8 rosslagerwall at gmail dot com
@ 2014-08-25  9:04 ` rosslagerwall at gmail dot com
  2014-08-26  6:41 ` xdje42 at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rosslagerwall at gmail dot com @ 2014-08-25  9:04 UTC (permalink / raw)
  To: gdb-prs

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

Ross Lagerwall <rosslagerwall at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Ross Lagerwall <rosslagerwall at gmail dot com> ---
Marking as duplicate...

*** This bug has been marked as a duplicate of bug 17185 ***

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


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

* [Bug threads/17305] Hang when joining thread with gdb 7.8
  2014-08-24 21:49 [Bug threads/17305] New: Hang when joining thread with gdb 7.8 rosslagerwall at gmail dot com
  2014-08-25  9:04 ` [Bug threads/17305] " rosslagerwall at gmail dot com
@ 2014-08-26  6:41 ` xdje42 at gmail dot com
  2014-08-27  7:04 ` dje at google dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: xdje42 at gmail dot com @ 2014-08-26  6:41 UTC (permalink / raw)
  To: gdb-prs

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

Doug Evans <xdje42 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xdje42 at gmail dot com

--- Comment #2 from Doug Evans <xdje42 at gmail dot com> ---
For reference sake, there is also pr 17247 which is still open.

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


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

* [Bug threads/17305] Hang when joining thread with gdb 7.8
  2014-08-24 21:49 [Bug threads/17305] New: Hang when joining thread with gdb 7.8 rosslagerwall at gmail dot com
  2014-08-25  9:04 ` [Bug threads/17305] " rosslagerwall at gmail dot com
  2014-08-26  6:41 ` xdje42 at gmail dot com
@ 2014-08-27  7:04 ` dje at google dot com
  2014-08-27 16:48 ` rosslagerwall at gmail dot com
  2014-08-27 17:10 ` dje at google dot com
  4 siblings, 0 replies; 6+ messages in thread
From: dje at google dot com @ 2014-08-27  7:04 UTC (permalink / raw)
  To: gdb-prs

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

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com

--- Comment #3 from dje at google dot com ---
btw, I'm curious why you're getting the following:

Exception caught while booting Guile.
Error in function "open-file":
No such file or directory: "/usr/share/gdb/guile/gdb/boot.scm"

Can you tell me how you configured, built, and installed gdb?

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


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

* [Bug threads/17305] Hang when joining thread with gdb 7.8
  2014-08-24 21:49 [Bug threads/17305] New: Hang when joining thread with gdb 7.8 rosslagerwall at gmail dot com
                   ` (2 preceding siblings ...)
  2014-08-27  7:04 ` dje at google dot com
@ 2014-08-27 16:48 ` rosslagerwall at gmail dot com
  2014-08-27 17:10 ` dje at google dot com
  4 siblings, 0 replies; 6+ messages in thread
From: rosslagerwall at gmail dot com @ 2014-08-27 16:48 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Ross Lagerwall <rosslagerwall at gmail dot com> ---
(In reply to dje from comment #3)
> btw, I'm curious why you're getting the following:
> 
> Exception caught while booting Guile.
> Error in function "open-file":
> No such file or directory: "/usr/share/gdb/guile/gdb/boot.scm"
> 
> Can you tell me how you configured, built, and installed gdb?

Well I just cloned the git repo, ran:
$ ./configure --prefix=/usr --disable-nls \
    --with-system-readline \
    --with-python=/usr/bin/python2 \
    --with-system-gdbinit=/etc/gdb/gdbinit
$ make -j4
$ gdb/gdb ...

It probably got that error because I hadn't installed it.

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


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

* [Bug threads/17305] Hang when joining thread with gdb 7.8
  2014-08-24 21:49 [Bug threads/17305] New: Hang when joining thread with gdb 7.8 rosslagerwall at gmail dot com
                   ` (3 preceding siblings ...)
  2014-08-27 16:48 ` rosslagerwall at gmail dot com
@ 2014-08-27 17:10 ` dje at google dot com
  4 siblings, 0 replies; 6+ messages in thread
From: dje at google dot com @ 2014-08-27 17:10 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from dje at google dot com ---
(In reply to Ross Lagerwall from comment #4)
> (In reply to dje from comment #3)
> > btw, I'm curious why you're getting the following:
> > 
> > Exception caught while booting Guile.
> > Error in function "open-file":
> > No such file or directory: "/usr/share/gdb/guile/gdb/boot.scm"
> > 
> > Can you tell me how you configured, built, and installed gdb?
> 
> Well I just cloned the git repo, ran:
> $ ./configure --prefix=/usr --disable-nls \
>     --with-system-readline \
>     --with-python=/usr/bin/python2 \
>     --with-system-gdbinit=/etc/gdb/gdbinit
> $ make -j4
> $ gdb/gdb ...
> 
> It probably got that error because I hadn't installed it.

Ok, thanks!

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


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

end of thread, other threads:[~2014-08-27 17:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-24 21:49 [Bug threads/17305] New: Hang when joining thread with gdb 7.8 rosslagerwall at gmail dot com
2014-08-25  9:04 ` [Bug threads/17305] " rosslagerwall at gmail dot com
2014-08-26  6:41 ` xdje42 at gmail dot com
2014-08-27  7:04 ` dje at google dot com
2014-08-27 16:48 ` rosslagerwall at gmail dot com
2014-08-27 17:10 ` dje at google 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).