JDK-8250803 : pkgbuild failed with exit code 134
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2020-07-30
  • Updated: 2024-11-20
  • Resolved: 2020-08-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b12Fixed
Related Reports
Duplicate :  
Description
[01:10:03.903] java.io.IOException: Command [pkgbuild, --root, /var/folders/fr/m36n2yss1y31czvg7cmtv2g40000gp/T/jdk.incubator.jpackage3532267906826634809/images/image-14547781857713196326, --install-location, /Applications, --component-plist, /var/folders/fr/m36n2yss1y31czvg7cmtv2g40000gp/T/jdk.incubator.jpackage3532267906826634809/config/cpl.plist, --scripts, /var/folders/fr/m36n2yss1y31czvg7cmtv2g40000gp/T/jdk.incubator.jpackage3532267906826634809/config/scripts, --identifier, Hello, /var/folders/fr/m36n2yss1y31czvg7cmtv2g40000gp/T/jdk.incubator.jpackage3532267906826634809/packages/EmptyFolderPackageTest-app.pkg] exited with 134 code
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:86)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:190)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.IOUtils.exec(IOUtils.java:151)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacPkgBundler.createPKG(MacPkgBundler.java:451)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacPkgBundler.bundle(MacPkgBundler.java:151)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.MacPkgBundler.execute(MacPkgBundler.java:588)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:664)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:538)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.execute(Main.java:98)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.main(Main.java:52)
[01:10:03.991] jdk.incubator.jpackage.internal.PackagerException: Error: Bundler "Mac PKG Package" (pkg) failed to produce a package
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:667)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:538)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.execute(Main.java:98)
	at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.main(Main.java:52)

Exit code 134 is a SEGV crash but no crash reports are available.

The test timed out but we can't tell which action really happened first.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/90f1ee76cf56 User: almatvee Date: 2020-08-17 20:41:48 +0000
17-08-2020

http://cr.openjdk.java.net/~almatvee/8250803/webrev.00/ - Looks like issue was just in not enough time for test to execute. Increasing timeout by 1 min fixed issues. In fix it is increased by 50% just in case. Without timeout increase it was reproducible 100% on one of test machine. With increased timeout I cannot reproduce it after multiple runs.
13-08-2020