Bug 1262589
Summary: | gstack in DTS defaults to "/usr/bin/gdb" | ||
---|---|---|---|
Product: | Red Hat Developer Toolset | Reporter: | Frank Hirtz <fhirtz> |
Component: | gdb | Assignee: | Jan Kratochvil <jan.kratochvil> |
Status: | CLOSED ERRATA | QA Contact: | Miroslav Franc <mfranc> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | DTS 3.0 RHEL 6 | CC: | bgollahe, jan.kratochvil, mcermak, mfranc, ohudlick, palves |
Target Milestone: | alpha | ||
Target Release: | 4.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | devtoolset-4-gdb-7.10-17.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-16 15:11:17 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: |
Description
Frank Hirtz
2015-09-13 03:17:19 UTC
I find it is just enough to put there: GDB=${GDB:-gdb} /usr/bin/gdb-add-index is using: GDB=${GDB:=gdb} /usr/bin/gcore has a large block starting with: # Attempt to fetch the absolute path to the gcore script that was # called. binary_path=`dirname "$0"` That probably tries to mimick so-called 'relocatable' file access by GDB which is turned off in Fedora/RHEL releases: perl -i.relocatable -pe 's/^(D\[".*_RELOCATABLE"\]=" )1(")$/${1}0$2/' gdb/config.status ! grep '_RELOCATABLE.*1' gdb/config.h I have put the GDB=${GDB:-gdb} fix into Rawhide: http://pkgs.fedoraproject.org/cgit/gdb.git/commit/?id=44ca5e4d1ecf75b72eb123787c5cf2f5085f1188 The same bug affects also gcore: + . /opt/rh/devtoolset-4/root/usr/bin/gcore 30632 ++ '[' 1 -eq 0 ']' ++ name=core ++ '[' 30632 = -o ']' +++ dirname bash ++ binary_path=. ++ test x. = x. +++ basename bash ++ binary_basename=bash ++ test -f bash +++ alias +++ /usr/bin/which --tty-only --read-alias --show-dot --show-tilde bash ++ binary_path_from_env=/usr/bin/bash +++ dirname /usr/bin/bash ++ binary_path=/usr/bin ++ '[' '!' -f /usr/bin/gdb ']' ++ rc=0 ++ for pid in '$*' ++ /usr/bin/gdb --nx --batch -ex 'set pagination off' -ex 'set height 0' -ex 'set width 0' -ex 'attach 30632' -ex 'gcore core.30632' -ex detach -ex quit Comment 4 was a wrong test, gcore is OK: + '[' 1 -eq 0 ']' + name=core + '[' 31011 = -o ']' ++ dirname /opt/rh/devtoolset-4/root/usr/bin/gcore + binary_path=/opt/rh/devtoolset-4/root/usr/bin + test x/opt/rh/devtoolset-4/root/usr/bin = x. + '[' '!' -f /opt/rh/devtoolset-4/root/usr/bin/gdb ']' + rc=0 + for pid in '$*' + /opt/rh/devtoolset-4/root/usr/bin/gdb --nx --batch -ex 'set pagination off' -ex 'set height 0' -ex 'set width 0' -ex 'attach 31011' -ex 'gcore core.31011' -ex detach -ex quit 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://rhn.redhat.com/errata/RHEA-2015-2039.html |