• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 11-pool
    • 11.0.10
    • client-libs
    • Fedora 34 (and possibly others)

    • generic
    • linux

      This issue was originally reported here:
      https://github.com/adoptium/adoptium-support/issues/335


      The attached FileDialog-based reproducer crashes the JVM with:

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x00007f71c81cd0cc, pid=87550, tid=87576
      #
      # JRE version: OpenJDK Runtime Environment 18.9 (11.0.10+9) (build 11.0.10+9)
      # Java VM: OpenJDK 64-Bit Server VM 18.9 (11.0.10+9, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
      # Problematic frame:
      # C 0x00007f71c81cd0cc

      [...]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.awt.X11.GtkFileDialogPeer.run(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/io/FilenameFilter;ZII)V+0 java.desktop@11.0.10
      j sun.awt.X11.GtkFileDialogPeer.showNativeDialog()V+156 java.desktop@11.0.10
      j sun.awt.X11.GtkFileDialogPeer.lambda$setVisible$0()V+1 java.desktop@11.0.10
      j sun.awt.X11.GtkFileDialogPeer$$Lambda$16.run()V+4 java.desktop@11.0.10
      j java.lang.Thread.run()V+11 java.base@11.0.10
      v ~StubRoutines::call_stub

      To reproduce:
      $ javac DialogX11.java
      $ java DialogX11

      Expected:
      A file dialog is shown and no crash happens.

      Actual:
      JVM crashes. Example hs_err is attached.


      It is assumed that this has to do with the build environment and runtime environments of the JDK. For example using the latest upstream OpenJDK 11.0.12+7 build from [1], crashes on F34. Using the same version from the system package, java-11-openjdk, doesn't crash. Builds from [1] are built on a RHEL 6 build machine. Also, when running on an older system, like RHEL 7 or RHEL 6, the reproducer works fine (using the same build).

      [1] https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases/tag/jdk-11.0.12%2B7

        1. DialogX11.java
          0.3 kB
          Severin Gehwolf
        2. hs_err_pid87316.log
          136 kB
          Severin Gehwolf

            sgehwolf Severin Gehwolf
            sgehwolf Severin Gehwolf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: