Skip to content

Conversation

@jonahgraham
Copy link
Contributor

Add the @Tag("gtk3-wayland-todo") to all the ByteArrayTransfer tests because it looks like they crash the JVM.

Part of #2714

Add the `@Tag("gtk3-wayland-todo")` to all the ByteArrayTransfer
tests because it looks like they crash the JVM.

Part of eclipse-platform#2714
@jonahgraham
Copy link
Contributor Author

With this test enabled the JVM crashes when running #2768. See attached log for full crash, but summary is:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0a14e8dcd1, pid=9106, tid=9107
#
# JRE version: OpenJDK Runtime Environment Temurin-21.0.9+10 (21.0.9+10) (build 21.0.9+10-LTS)
# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.9+10 (21.0.9+10-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libgdk-3.so.0+0x7bcd1]  gdk_wayland_selection_add_targets_libgtk_only+0x1f1
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t 9223372036854775808 %h %d" (or dumping to /home/runner/work/eclipse.platform.swt/eclipse.platform.swt/tests/org.eclipse.swt.tests/core.9106)
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -Dorg.eclipse.swt.internal.gtk.disablePrinting /home/runner/work/eclipse.platform.swt/eclipse.platform.swt/tests/org.eclipse.swt.tests/target/surefire/surefirebooter-20251112022722021_3.jar /home/runner/work/eclipse.platform.swt/eclipse.platform.swt/tests/org.eclipse.swt.tests/target/surefire 2025-11-12T02-27-21_950-jvmRun1 surefire-20251112022722021_1tmp surefire_0-20251112022722021_2tmp

Host: AMD EPYC 7763 64-Core Processor, 4 cores, 15G, Ubuntu 24.04.3 LTS
Time: Wed Nov 12 02:27:48 2025 UTC elapsed time: 26.190276 seconds (0d 0h 0m 26s)

---------------  T H R E A D  ---------------

Current thread (0x00007f0a4002af80):  JavaThread "main"             [_thread_in_native, id=9107, stack(0x00007f0a45c17000,0x00007f0a45d17000) (1024K)]

Stack: [0x00007f0a45c17000,0x00007f0a45d17000],  sp=0x00007f0a45d11740,  free space=1001k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libgdk-3.so.0+0x7bcd1]  gdk_wayland_selection_add_targets_libgtk_only+0x1f1
C  [libgtk-3.so.0+0x296638]  gtk_selection_add_targets+0x128
C  [libgtk-3.so.0+0x399cc4]
C  [libgtk-3.so.0+0x396856]  gtk_clipboard_set_with_owner+0x76
C  [libswt-pi3-gtk-4971r15.so+0x5cd16]  Java_org_eclipse_swt_internal_gtk3_GTK3_gtk_1clipboard_1set_1with_1owner+0x23
j  org.eclipse.swt.dnd.ClipboardProxy.setData(Lorg/eclipse/swt/dnd/Clipboard;[Ljava/lang/Object;[Lorg/eclipse/swt/dnd/Transfer;I)Z+263
j  org.eclipse.swt.dnd.Clipboard.setContents([Ljava/lang/Object;[Lorg/eclipse/swt/dnd/Transfer;I)V+127
j  org.eclipse.swt.dnd.Clipboard.setContents([Ljava/lang/Object;[Lorg/eclipse/swt/dnd/Transfer;)V+4
j  org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_ByteArrayTransfer.setContents(Ljava/lang/Object;Lorg/eclipse/swt/dnd/Transfer;)V+20
j  org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_ByteArrayTransfer.setContents(Ljava/lang/Object;)V+6
j  org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_ByteArrayTransfer.test_isSupportedType()V+10

hs_err_pid9106.log

@github-actions
Copy link
Contributor

Test Results

  118 files  ±0    118 suites  ±0   16m 18s ⏱️ +35s
4 652 tests ±0  4 634 ✅  - 1  18 💤 +1  0 ❌ ±0 
  338 runs  ±0    334 ✅ ±0   4 💤 ±0  0 ❌ ±0 

Results for commit ce61a2e. ± Comparison against base commit 65ec239.

This pull request skips 1 test.
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser_IE ‑ test_setUrl_remote_with_post

@jonahgraham jonahgraham merged commit 84f2644 into eclipse-platform:master Nov 12, 2025
17 checks passed
@jonahgraham jonahgraham deleted the byte-array-transfer-gtk3 branch November 12, 2025 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant