public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/14382] New: gdb hangs after plotting with matplotlib
@ 2012-07-21 15:28 joeneeman at gmail dot com
  2012-07-31 15:54 ` [Bug python/14382] " tromey at redhat dot com
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: joeneeman at gmail dot com @ 2012-07-21 15:28 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=14382

             Bug #: 14382
           Summary: gdb hangs after plotting with matplotlib
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: joeneeman@gmail.com
    Classification: Unclassified


Created attachment 6542
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6542
Python command that hangs gdb.

I'm attempting to write a gdb command in python that will display some data in
a matplotlib plot. The plotting itself works fine: the plot is shown and I can
interact with it. While the plot is open, the (gdb) prompt is not shown, as
mp.show() is blocking.

After I close the plot, the problems begin. I am returned to the (gdb) prompt
and I can issue certain commands (for example, "list" works as expected).
However, if I attempt to continue running the program being debugged (eg. with
"next" or "continue"), then gdb becomes unresponsive (including to ^C).

You can reproduce the problem with the file I have attached (requires
matplotlib to be installed):

echo "int main() { return 0; }" > gdbtest.c
gcc -g -o gdbtest gdbtest.c
gdb gdbtest

(at the (gdb) prompt)
source gdbtest2.py
plot
(close the plot window)
run
(gdb hangs)

I am using gdb 7.4.1 on arch linux.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2023-09-13 14:56 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-21 15:28 [Bug python/14382] New: gdb hangs after plotting with matplotlib joeneeman at gmail dot com
2012-07-31 15:54 ` [Bug python/14382] " tromey at redhat dot com
2012-08-07  0:35 ` joeneeman at gmail dot com
2012-08-07  2:15 ` joeneeman at gmail dot com
2012-08-15 21:33 ` tromey at redhat dot com
2012-08-16 14:24 ` tromey at redhat dot com
2012-08-17  0:51 ` joeneeman at gmail dot com
2012-08-22 15:31 ` palves at redhat dot com
2012-08-22 16:58 ` tromey at redhat dot com
2013-03-07  9:16 ` m at bruenink dot de
2013-08-12 19:35 ` aegges at web dot de
2015-05-24 19:34 ` tromey at sourceware dot org
2015-05-25  8:36 ` palves at redhat dot com
2015-05-25  8:39 ` palves at redhat dot com
2015-05-25 20:52 ` tromey at sourceware dot org
2015-05-26  8:29 ` palves at redhat dot com
2015-05-26  8:56 ` palves at redhat dot com
2015-05-26  9:00 ` palves at redhat dot com
2015-05-26 10:26 ` palves at redhat dot com
2015-05-26 10:30 ` palves at redhat dot com
2015-05-26 10:32 ` palves at redhat dot com
2015-05-27  3:06 ` tromey at sourceware dot org
2015-05-27 16:36 ` xdje42 at gmail dot com
2015-05-27 18:37 ` palves at redhat dot com
2015-05-27 21:19 ` dje at google dot com
2015-05-28 11:45 ` palves at redhat dot com
2023-09-13 14:56 ` tromey at sourceware dot org

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