Bug 1427487

Summary: devtoolset gdb python testsuite fails
Product: Red Hat Developer Toolset Reporter: Michal Kolar <mkolar>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED ERRATA QA Contact: Michal Kolar <mkolar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 6.1 RHEL 7CC: bgollahe, jan.kratochvil, mcermak, mkolar, mnewsome, palves
Target Milestone: alpha   
Target Release: 7.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-7-gdb-8.0-17.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-24 09:46:56 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:
Embargoed:
Attachments:
Description Flags
test log none

Description Michal Kolar 2017-02-28 11:05:53 UTC
Created attachment 1258334 [details]
test log

Description of problem:
Devtoolset gdb python testsuite fails.



Version-Release number of selected component (if applicable):
devtoolset-6-gdb-7.12.1-46.el7.x86_64



How reproducible:
Run gdb python testcase 'gdb.python/py-gil-mthread.exp'



Steps to Reproduce:

SETUP:

package='devtoolset-6-gdb'
wget "http://download.eng.brq.redhat.com/brewroot/packages/\
$(rpm -q --qf "%{name}/%{version}/%{release}" $package)\
/src/\
$(rpm -q --qf "%{name}-%{version}-%{release}" $package)\
.src.rpm"
rm -rf ~/rpmbuild/
rpm -Uvh *.src.rpm
yum-builddep -y *.src.rpm
cd ~/rpmbuild/SPECS/
rpmbuild -bs --with testsuite *.spec
yum-builddep -y ../SRPMS/*.src.rpm
rpmbuild -bc *.spec
cd ../BUILD/*/build-`arch`-redhat-linux-gnu/

CHECK:

make check RUNTESTFLAGS=gdb.python/py-gil-mthread.exp



Actual results:

...

                === gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /root/rpmbuild/BUILD/gdb-7.12.1/build-x86_64-redhat-linux-gnu/gdb/testsuite/../../../gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running /root/rpmbuild/BUILD/gdb-7.12.1/build-x86_64-redhat-linux-gnu/gdb/testsuite/../../../gdb/testsuite/gdb.python/py-gil-mthread.exp ...
FAIL: gdb.python/py-gil-mthread.exp: response (timeout)

                === gdb Summary ===

# of expected passes            1
# of unexpected failures        1
/root/rpmbuild/BUILD/gdb-7.12.1/build-x86_64-redhat-linux-gnu/gdb/testsuite/../../gdb/gdb version  7.12.1-46.el7 -nw -nx -data-directory /root/rpmbuild/BUILD/gdb-7.12.1/build-x86_64-redhat-linux-gnu/gdb/testsuite/../data-directory 

...



Expected results:
No failures in log. Return value of zero.


Additional info:
test log in attachment 'gdb.log'

Comment 1 Jan Kratochvil 2017-02-28 15:37:10 UTC
It is fortunately only a testcase problem, not GDB problem.
It is due to Python 2 being on RHELs<=7.

https://src.fedoraproject.org/cgit/rpms/gdb.git/commit/?id=f9739f5031b81bc14f00a9e3ef5fb313fa87584f

Comment 3 Michal Kolar 2017-07-25 12:53:44 UTC
Reproduced against devtoolset-6-gdb-7.12.1-46.el7 and verified against devtoolset-7-gdb-8.0-17.el7.

Comment 5 errata-xmlrpc 2017-10-24 09:46:56 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.

https://access.redhat.com/errata/RHEA-2017:3015