After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685250 - make <test>.gdb deadlocks
make <test>.gdb deadlocks
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: general
0.7.x
Other Linux
: Normal normal
: Unset
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2012-10-01 21:16 UTC by Travis Reitter
Modified: 2012-10-21 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Travis Reitter 2012-10-01 21:16:48 UTC
We've got check.mk to support running any test as:

make -C tests/<dir> <test name>.gdb

It's supposed to set all sorts of environment pieces that are a pain to do by hand, run gdb through libtool, etc., so you can just run the test through as if it were a normally-installed program.

I just tried this with git master the other day, and it just deadlocks. I have to kill gdb to get the terminal back (and ^C at the terminal does nothing).

It looks like it might be related to our lcov support redirecting output (and maybe input?), because I do get a flash of the gdb output when I kill the gdb process.
Comment 1 Philip Withnall 2012-10-03 22:08:25 UTC
(In reply to comment #0)
> It looks like it might be related to our lcov support redirecting output (and
> maybe input?), because I do get a flash of the gdb output when I kill the gdb
> process.

Probably more likely tests/tools/execute-test.sh.
Comment 2 Philip Withnall 2012-10-03 22:13:31 UTC
In fact it’s almost certainly because the output from gdb is being redirected by execute-test.sh, and so you’re never seeing the gdb prompt, and thus never typing the ‘run’ command in gdb.
Comment 3 Philip Withnall 2012-10-21 11:26:21 UTC
commit 4b7db8692d58d8627805f4c45a1c2e885b46653c
Author: Philip Withnall <philip@tecnocode.co.uk>
Date:   Sun Oct 21 12:24:10 2012 +0100

    Bug 685250 — make <test>.gdb deadlocks
    
    Always set CHECK_VERBOSE when running tests under gdb so that output (from
    gdb) isn’t redirected to a log file. Apparently, headless gdb is hard to
    use.
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=685250

 NEWS                        | 1 +
 check.mk                    | 1 +
 tests/tools/execute-test.sh | 4 +++-
 3 files changed, 5 insertions(+), 1 deletion(-)