Skip to content

[GTK4] crashes when creating and closing many shells #2589

@jonahgraham

Description

@jonahgraham

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 - which is an Ubuntu 25.04 setup.

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

I provided the test that normally crashes as above on around 70-80 shell creations in #2587

With Ubuntu 25.10 due out within a week, I will retest on that OS when available and leave this on the back burner (but as FYI for others) until then.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions