Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at

Bug 1378147

Summary: gdb crashes on some inferior function call scripts
Product: Red Hat Developer Toolset Reporter: Mark Wielaard <mjw>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 6.0 RHEL 7CC: gbenson, jan.kratochvil, mcermak, mnewsome, mprchlik, nobody+bgollahe, ohudlick, palves, pmuldoon, sergiodj, tom
Target Milestone: beta1Keywords: Regression, Reopened
Target Release: 6.0   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: devtoolset-6-gdb-7.12-0.19.20160929.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-15 10:12:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1378143    
Description Flags
reproducer program source
GDB stdin script none

Description Mark Wielaard 2016-09-21 15:17:11 UTC
Created attachment 1203366 [details]
reproducer program source

gdb crashes on the valgrind gdb_server integration tests causing the valgrind package build to hang in %check. For now the valgrind package has the gdb_server tests disabled with this valgrind.spec snippet:

echo ===============TESTING===================
# On arm the gdb integration tests hang for unknown reasons.
# When building a scl we might pick a bad gdb.
# Only run the main tools tests.
# Recent GDB crashes on the gdb_server tests. Disable everywhere for now.
#%ifarch %{arm}
./close_fds make nonexp-regtest || :
#  %if %{is_scl}
#    ./close_fds make nonexp-regtest || :
#  %else
#    ./close_fds make regtest || :
#  %endif

The gdb crash isn't related to valgrind however. It can be triggered with the attached program and script (derived from the valgrind testcase):

$ gcc -g -O0 -o t t.c -lpthread
$ gdb ./t < gdb.input

Comment 1 Mark Wielaard 2016-09-21 15:17:53 UTC
Created attachment 1203367 [details]
GDB stdin script

Comment 2 Jan Kratochvil 2016-09-28 20:41:39 UTC
It does not crash on: gdb-7.11.1-75.fc24.x86_64
It does crash on: gdb-7.12-0.11.20160904.fc26.x86_64
That is a regression.

Comment 4 Jan Kratochvil 2016-09-29 02:56:23 UTC
It is now in upstream 7.12 branch so it does not really require 3ACK:
[pushed master+7.12] Fix PR 20345 - call_function_by_hand_dummy: Assertion `tp->thread_fsm == &sm->thread_fsm' failed

Comment 5 Jan Kratochvil 2016-09-29 02:59:26 UTC
BTW its testfile is: gdb.base/infcall-input.exp

Comment 6 Martin Cermak 2016-09-29 10:31:30 UTC
Brian, would you mind pm_acking this one, please?

Comment 8 Fedora Update System 2016-09-29 15:21:22 UTC
gdb-7.12-0.19.20160929.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See for
instructions on how to install test updates.
You can provide feedback for this update here:

Comment 10 Fedora Update System 2016-10-09 02:47:16 UTC
gdb-7.12-0.19.20160929.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 errata-xmlrpc 2016-11-15 10:12:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.