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

Crash on Ubuntu22.04 running test java/awt/FileDialog/ExceptionAfterSetDirectory.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 21
    • client-libs
    • None


      Submitting this just to have a record of it.
      I'm running JDK 21 right around the time of the RDP1 when mainline forks to JDK 22

      I have only seen this crash once and it is on the unsupported Wayland desktop running on Ubuntu 22.04, although it is unclear if it is related to Wayland, and could be something outside JDK that is responsible.

      The test log looks like

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fd550588837, pid=39376, tid=39401
      #
      # JRE version: Java(TM) SE Runtime Environment (22.0) (build 22-internal-2023-06-09-2004127.philip.race.jdkwayland.git)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (22-internal-2023-06-09-2004127.philip.race.jdkwayland.git, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # C [libgtk-3.so.0+0x188837]
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S11705/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0804e8da-bf08-43e2-8027-4658872e26cb/runs/85448795-8a61-4724-bcfb-2451fe5ced0a/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop_part2/java/awt/FileDialog/ExceptionAfterSetDirectory/core.39376)
      #
      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/cd627e65-f015-4fb1-a1d2-b6c9b8127f98-S11705/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0804e8da-bf08-43e2-8027-4658872e26cb/runs/85448795-8a61-4724-bcfb-2451fe5ced0a/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop_part2/java/awt/FileDialog/ExceptionAfterSetDirectory/hs_err_pid39376.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #
      System.err
      (java:39376): GVFS-WARNING **: 10:59:34.749: The peer-to-peer connection failed: Error when getting information for file ?/tmp/sparky-temp-home-2262208568849902214/user_home/.cache/gvfsd?: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

      ....GVFS-WARNING repeated ~ 24 times ..

      (java:39376): GVFS-WARNING **: 10:59:37.186: The peer-to-peer connection failed: Error when getting information for file ?/tmp/sparky-temp-home-2262208568849902214/user_home/.cache/gvfsd?: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

      (java:39376): Gtk-WARNING **: 10:59:37.264: Child name 'browse' not found in GtkStack

      and the hs_err.log has
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007fd550588837, pid=39376, tid=39401
      #
      # JRE version: Java(TM) SE Runtime Environment (22.0) (build 22-internal-2023-06-09-2004127.philip.race.jdkwayland.git)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (22-internal-2023-06-09-2004127.philip.race.jdkwayland.git, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # C [libgtk-3.so.0+0x188837]

      ....

      Stack: [0x00007fd550ddd000,0x00007fd550edd000], sp=0x00007fd550ed5f00, free space=995k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libgtk-3.so.0+0x188837]
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.awt.X11.GtkFileDialogPeer.quit()V+0 java.desktop@22-internal
      j sun.awt.X11.GtkFileDialogPeer.setVisible(Z)V+47 java.desktop@22-internal
      j java.awt.Component.hide()V+70 java.desktop@22-internal
      j java.awt.Window.hide()V+92 java.desktop@22-internal
      j java.awt.Dialog.hide()V+5 java.desktop@22-internal
      j java.awt.Component.show(Z)V+12 java.desktop@22-internal
      j java.awt.Component.setVisible(Z)V+2 java.desktop@22-internal
      j java.awt.Window.setVisible(Z)V+2 java.desktop@22-internal
      j java.awt.Dialog.setVisible(Z)V+2 java.desktop@22-internal
      j ExceptionAfterSetDirectory.lambda$test$2()V+5
      ....

            azvegint Alexander Zvegintsev
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: