-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
JDK-8325862: set -XX:+ErrorFileToStderr when executing java in containers for some container related jtreg tests #17874
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
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.
This seems OK.
Note that container tests are pretty verbose when it comes to test output. Usually stderr/stdout get capped by jtreg and sent to a file instead. IIUC the use case would be to get hs_err.log files to stderr in case of crashes. However, if the stderr value gets truncated, then you'd be back at square one.
Still quite useful, since the most interesting information are at the top. That said, the verbatim /proc/pid/maps dumping into hs-err has been bugging me for years. This can cause hs-err files in the GB range if address space is very fragmented. But the Oracle folks really like this feature, so... |
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.
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 20 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
I wouldn't think so. |
I saw this when testing the change, however 1) the most part of the stack/backtrace was still visible in stderr so this was good 2) test rest of the truncated hserr was in a separate file but on the host, which was good for me. |
Good, thanks. |
Hi Thomas and Severin, thanks for the reviews ! /integrate |
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.
LGTM
Going to push as commit 9f4ec21.
Your commit was automatically rebased without conflicts. |
To get easier access to the hserr file content, -XX:+ErrorFileToStderr should be set when executing test parts in a container.
Examples are the docker/container tests starting (docker) containers with java processes inside the container and not on the host.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17874/head:pull/17874
$ git checkout pull/17874
Update a local copy of the PR:
$ git checkout pull/17874
$ git pull https://git.openjdk.org/jdk.git pull/17874/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 17874
View PR using the GUI difftool:
$ git pr show -t 17874
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17874.diff
Webrev
Link to Webrev Comment