-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8359820: Improve handshake/safepoint timeout diagnostic messages #26309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
toxaart
wants to merge
12
commits into
openjdk:master
Choose a base branch
from
toxaart:JDK-8359820-SIGILL-with-low-handshake-timeout-on-intel-sde
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c764efb
8359820: Explicitly report SIGILL fired by handshake timeout handler …
toxaart 8a794a6
8359820: Fixed newline
toxaart b90afb6
Merge remote-tracking branch 'origin/master' into JDK-8359820-SIGILL-…
toxaart 48de6d8
8359820: Improved safepoint and handshake timeout report
toxaart 65e19dc
Merge branch 'JDK-8359820-SIGILL-with-low-handshake-timeout-on-intel-…
toxaart 044355b
8359820: Removed extra line
toxaart 4e46531
8359820: Fixed test
toxaart 689e614
Merge remote-tracking branch 'origin/master' into JDK-8359820-SIGILL-…
toxaart 4064563
8359820: Addressed reviewer's comments
toxaart 27cb77d
8359820: Addressed reviewer's comments
toxaart 80a0b05
8359820: Addressed reviewer's comments
toxaart 9ccf096
8359820: Fixed spaces
toxaart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -104,6 +104,8 @@ int VMError::_lineno; | |||||||||
size_t VMError::_size; | ||||||||||
const size_t VMError::_reattempt_required_stack_headroom = 64 * K; | ||||||||||
const intptr_t VMError::segfault_address = pd_segfault_address; | ||||||||||
volatile intptr_t VMError::handshakeTimedOutThread = p2i(nullptr); | ||||||||||
volatile intptr_t VMError::safepointTimedOutThread = p2i(nullptr); | ||||||||||
Comment on lines
+107
to
+108
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
// List of environment variables that should be reported in error log file. | ||||||||||
static const char* env_list[] = { | ||||||||||
|
@@ -818,7 +820,13 @@ void VMError::report(outputStream* st, bool _verbose) { | |||||||||
st->print(" (0x%x)", _id); // signal number | ||||||||||
st->print(" at pc=" PTR_FORMAT, p2i(_pc)); | ||||||||||
if (_siginfo != nullptr && os::signal_sent_by_kill(_siginfo)) { | ||||||||||
st->print(" (sent by kill)"); | ||||||||||
if (handshakeTimedOutThread == p2i(_thread)) { | ||||||||||
st->print(" (sent by handshake timeout handler"); | ||||||||||
} else if (safepointTimedOutThread == p2i(_thread)) { | ||||||||||
st->print(" (sent by safepoint timeout handler"); | ||||||||||
} else { | ||||||||||
st->print(" (sent by kill)"); | ||||||||||
} | ||||||||||
toxaart marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
} | ||||||||||
} else { | ||||||||||
if (should_report_bug(_id)) { | ||||||||||
|
@@ -1329,6 +1337,14 @@ void VMError::report(outputStream* st, bool _verbose) { | |||||||||
# undef END | ||||||||||
} | ||||||||||
|
||||||||||
void VMError::set_handshake_timed_out_thread(intptr_t x) { | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
handshakeTimedOutThread = x; | ||||||||||
} | ||||||||||
|
||||||||||
void VMError::set_safepoint_timed_out_thread(intptr_t x) { | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
safepointTimedOutThread = x; | ||||||||||
} | ||||||||||
|
||||||||||
// Report for the vm_info_cmd. This prints out the information above omitting | ||||||||||
// crash and thread specific information. If output is added above, it should be added | ||||||||||
// here also, if it is safe to call during a running process. | ||||||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The earlier logging statement that uses
p2i(op)
relies on an even earlier logging statement (line 189/190) that reports the name and thep2i
value. But the fatal error message can't rely on using logging information to map thep2i
value back to a name, so we need the name directly.