Skip to content

Conversation

jonahgraham
Copy link
Contributor

While trying to test the clipboard (#2126) on a loop I found GTK4 crashed quite consistently, so I extracted the minimum test that fails to see if this problem is my machine only.

This is what happens when I run it from my Eclipse dev:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000732c1d859313, pid=466736, tid=466743
#
# JRE version: OpenJDK Runtime Environment Temurin-21.0.5+11 (21.0.5+11) (build 21.0.5+11-LTS)
# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libgtk-4.so.1+0x659313]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (or dumping to /scratch/eclipse/oomph/swt-master/git/eclipse.platform.swt/tests/org.eclipse.swt.tests/core.466736)
#
# An error report file with more information is saved as:
# /scratch/eclipse/oomph/swt-master/git/eclipse.platform.swt/tests/org.eclipse.swt.tests/hs_err_pid466736.log
[5.351s][warning][os] Loading hsdis library failed
#
# 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.

hs_err_pid466736.log

@jonahgraham jonahgraham added gtk4 GTK4 issues and removed gtk4 GTK4 issues labels Oct 3, 2025
Copy link
Contributor

github-actions bot commented Oct 3, 2025

Test Results

   88 files   -  30     88 suites   - 30   9m 7s ⏱️ - 1m 41s
5 546 tests +963  5 512 ✅ +965  34 💤  - 2  0 ❌ ±0 
  261 runs   -  69    239 ✅  -  68  22 💤  - 1  0 ❌ ±0 

Results for commit 92a674d. ± Comparison against base commit 12ac449.

This pull request removes 37 and adds 1000 tests. Note that renamed tests count towards both.
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_dollarSign
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_emptyString
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_letterA
AllGTKTests Test_GtkConverter ‑ test_HeuristicASCII_letters
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16LE_null
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_AsciiLetters
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_Asciiletter
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_LotsOfLetters
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_letter
AllGTKTests Test_GtkConverter ‑ test_HeuristicUTF16_letters
…
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[1000]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[100]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[101]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[102]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[103]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[104]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[105]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[106]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[107]
org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest ‑ test_OpenShell()[108]
…

♻️ This comment has been updated with latest results.

@jonahgraham
Copy link
Contributor Author

Well - it worked on the build machine - so that is good. But it does mean I have exposed a possible GTK bug, or perhaps an out of date library on my machine.

[INFO] Tests run: 1000, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 62.95 s -- in org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest

@akurtakov
Copy link
Member

It could even be newer libs on your machine .

@jonahgraham jonahgraham closed this Oct 3, 2025
@laeubi
Copy link
Contributor

laeubi commented Oct 3, 2025

Well - it worked on the build machine - so that is good. But it does mean I have exposed a possible GTK bug, or perhaps an out of date library on my machine.

[INFO] Tests run: 1000, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 62.95 s -- in org.eclipse.swt.tests.junit.OpenShellManyManyTimesTest

It could be that its a multithreading issue, the Buildnodes usually only have 2 cores so not much parallelism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gtk4 GTK4 issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants