Bug 1609714

Summary: (gdb) terminate called after throwing an instance of 'gdb_exception_RETURN_MASK_ERROR'
Product: [Fedora] Fedora Reporter: Severin Gehwolf <sgehwolf>
Component: gdbAssignee: Sergio Durigan Junior <sergiodj>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jan.kratochvil, keiths, kevinb, pmuldoon, sergiodj
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 17:47:15 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 Severin Gehwolf 2018-07-30 08:47:16 UTC
Description of problem:
GDB in rawhide fails with gdb_exception_RETURN_MASK_ERROR when debugging OpenJDK

Version-Release number of selected component (if applicable):
gdb-8.1.90.20180727-37.fc29.x86_64

How reproducible:
100%

Steps to Reproduce:
$ mock -r fedora-rawhide-x86_64 --init
$ mock -r fedora-rawhide-x86_64 --install java-1.8.0-openjdk gdb
(install debuginfo files for java-1.8.0-openjdk packages)
$ mock -r fedora-rawhide-x86_64 --shell
<mock-chroot> sh-4.4# cat gdb_bt.txt 
handle SIGSEGV pass nostop noprint
handle SIGILL pass nostop noprint
set breakpoint pending on
break javaCalls.cpp:58
commands 1
backtrace
quit
end
run -version
<mock-chroot> sh-4.4# gdb -x gdb_bt.txt /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.fc29.x86_64/jre/bin/java

Actual results:
GNU gdb (GDB) Fedora 8.1.90.20180727-37.fc29
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.fc29.x86_64/jre/bin/java...Reading symbols from /usr/lib/debug/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.fc29.x86_64/jre/bin/java-1.8.0.181-7.b13.fc29.x86_64.debug...done.
done.
terminate called after throwing an instance of 'gdb_exception_RETURN_MASK_ERROR'
Aborted (core dumped)

Expected results:
Showing backtrace of javaCalls call.

Additional info:
Last worked with 8.1.90.20180724-36.fc29. Originally discovered via koshei:
https://koji.fedoraproject.org/koji/taskinfo?taskID=28691471

Comment 1 Jan Kratochvil 2018-07-30 17:47:15 UTC

*** This bug has been marked as a duplicate of bug 1609504 ***