Conversation
The jpackage Linux launcher pipe-transfers the serialized config with a single read; with many jars it exceeds the pipe capacity, truncates, and SIGSEGVs in jvmLauncherStartJvm. Collapse app.classpath to a directory wildcard in the packaged .cfg files.
Member
|
The fix looks good, but the current Linux release pipeline also uses packageReleaseDeb, packageReleaseRpm, and packageReleaseAppImage. Please make sure the classpath workaround is applied to those package paths too, not only createReleaseDistributable. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The jpackage Linux launcher pipe-transfers the serialized application config to the JVM with a single
read. With many jars on the classpath the serialized blob exceeds the pipe capacity, gets truncated, and the packaged launcher dies with a SIGSEGV injvmLauncherStartJvm— the packaged Linux app crashes at startup.Tracked upstream as JDK-8380085.
Solution
Collapse
app.classpathin the packaged.cfgfiles to a directory wildcard (lib/app/*), shrinking the serialized config well under the pipe limit.Testing
Packaged distributable (
createDistributable) and release AppImage build and launch correctly with the flattened classpath; playback verified end to end.