Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8247229

jpackage tests failed due to "semop(1): encountered an error: Invalid argument"

    Details

    • Subcomponent:
    • Resolved In Build:
      b32
    • CPU:
      x86_64
    • OS:
      linux

      Backports

        Description

        The following test failed in the JDK15 CI:

        tools/jpackage/share/jdk/jpackage/tests/BasicTest.java

        Here's a snippet from the failing log:

        Generating DEB for installer to: /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/output/tempbasictest_1.0-1_amd64.deb.
        Running [fakeroot, dpkg-deb, --verbose, -b, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/temp-root/tempbasictest_1.0-1_amd64.deb/images, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/output/tempbasictest_1.0-1_amd64.deb]
        dpkg-deb: building package 'tempbasictest' in '/opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/output/tempbasictest_1.0-1_amd64.deb'.
        semop(1): encountered an error: Invalid argument
        /usr/bin/fakeroot: 1: kill: No such process

        java.io.IOException: Command [fakeroot, dpkg-deb, --verbose, -b, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/temp-root/tempbasictest_1.0-1_amd64.deb/images, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/output/tempbasictest_1.0-1_amd64.deb] exited with 1 code
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:75)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxDebBundler.buildDeb(LinuxDebBundler.java:459)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxDebBundler.buildPackageBundle(LinuxDebBundler.java:179)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:149)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:646)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:515)
        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)
        Kept working directory for debug: /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/temp-root/tempbasictest_1.0-1_amd64.deb
        jdk.incubator.jpackage.internal.PackagerException: java.io.IOException: Command [fakeroot, dpkg-deb, --verbose, -b, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/temp-root/tempbasictest_1.0-1_amd64.deb/images, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/output/tempbasictest_1.0-1_amd64.deb] exited with 1 code
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:162)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:646)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:515)
        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)
        Caused by: java.io.IOException: Command [fakeroot, dpkg-deb, --verbose, -b, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/temp-root/tempbasictest_1.0-1_amd64.deb/images, /opt/mach5/mesos/work_dir/slaves/63712a43-4eaa-429c-95b4-483ac8241123-S434/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/172ada6a-643c-4f68-bd84-52f51f6dc1cb/runs/ce0b876a-0078-4730-8646-650844ee6325/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/3/./testTemp/output/tempbasictest_1.0-1_amd64.deb] exited with 1 code
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:75)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxDebBundler.buildDeb(LinuxDebBundler.java:459)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxDebBundler.buildPackageBundle(LinuxDebBundler.java:179)
        at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.LinuxPackageBundler.execute(LinuxPackageBundler.java:149)
        ... 4 more
        TRACE: exec: Done. Exit code: 1
        ERROR: Expected [0]. Actual [1]: Check command [/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+27-1333/linux-x64.jdk/jdk-15/bin/jpackage --input ./testTemp/input --dest ./testTemp/output --name TempBasicTest --type deb --main-jar hello.jar --main-class Hello --temp ./testTemp/temp-root/tempbasictest_1.0-1_amd64.deb --verbose](16) exited with 0 code
        [ FAILED ] BasicTest.testTemp; checks=4


        Since this is a Tier2 failure, I would normally start this bug
        off at P3, but the failure hasn't reproduced in subsequent
        Tier2 test runs.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asemenyuk Alexey Semenyuk
                  Reporter:
                  dcubed Daniel Daugherty
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: