Skip to content

SIGSEGV in swt_fixed_resize #697

@torokati44

Description

@torokati44

Describe the bug

Segmentation fault.

#0  0x00007ffadd922a22 in _gtk_css_shadows_value_get_extents (border=0x7ffaeedf9940, shadows=0x0)
    at ../../../gtk/gtkcssshadowsvalue.c:327
#1  gtk_css_gadget_allocate (gadget=0x7ffaea33ca70, allocation=0x7ffaeedf9a10, baseline=-1, out_clip=0x7ffaeedf9a20)
    at ../../../gtk/gtkcssgadget.c:792
#2  0x00007ffadda79ee0 in gtk_scrolled_window_size_allocate (widget=0x7ffaea33bb10, allocation=0x7ffaeedf9b00)
    at ../../../gtk/gtkscrolledwindow.c:3420
#3  0x00007ffaddb42830 in gtk_widget_size_allocate_with_baseline
    (widget=0x7ffaea33bb10, allocation=<optimized out>, baseline=<optimized out>) at ../../../gtk/gtkwidget.c:6179
#4  0x00007ffabbe5221d in  ()
    at <redacted>/org.eclipse.osgi/340/0/.cp/libswt-pi3-gtk-4958r2.so
#5  0x00007ffaddb42830 in gtk_widget_size_allocate_with_baseline
    (widget=0x7ffaea33b0f0, allocation=<optimized out>, baseline=<optimized out>) at ../../../gtk/gtkwidget.c:6179
#6  0x00007ffabbe527d2 in swt_fixed_resize ()
    at <redacted>/org.eclipse.osgi/340/0/.cp/libswt-pi3-gtk-4958r2.so
#7  0x00007ffabbe4e76c in Java_org_eclipse_swt_internal_gtk_OS_swt_1fixed_1resize ()
    at <redacted>/org.eclipse.osgi/340/0/.cp/libswt-pi3-gtk-4958r2.so
#8  0x00007ffae220cb48 in  ()
#9  0x00007ffadf207988 in  ()
#10 0x00007ffaed0da576 in type_node_conforms_to_U
    (support_prerequisites=0, support_interfaces=1, iface_node=<optimized out>, node=<optimized out>) at ../../../gobject/gtype.c:3618
#11 g_type_check_instance_is_a (type_instance=type_instance@entry=0x7ffadf1d76f8, iface_type=<optimized out>)
    at ../../../gobject/gtype.c:4154
#12 0x00007ffaddb458aa in gtk_widget_get_parent (widget=0x7ffadf1d76f8) at ../../../gtk/gtkwidget.c:9707
#13 0x0000000000000000 in  ()

To Reproduce

I don't have a minimal reproducer yet sadly.

Expected behavior
No crash.

Screenshots
Not really applicable.

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)

Ubuntu 23.04, GTK 3.24.37

  1. JRE/JDK version

JustJ Adoptium OpenJDK Hotspot JRE 17.0.7, Eclipse 4.27.0

Workaround (or) Additional context

Couldn't find a workaround yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions