[MacPorts] #64484: gtk3 3.24.31 +quartz: ARM only: all gtk apps crash at launch
MacPorts
noreply at macports.org
Fri Jan 21 14:22:10 UTC 2022
#64484: gtk3 3.24.31 +quartz: ARM only: all gtk apps crash at launch
---------------------+--------------------
Reporter: dqh-au | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: gtk3 |
---------------------+--------------------
Description changed by dqh-au:
Old description:
> On both macOS 11 and 12 on an M1 Mac mini, gtk3 +quartz is crashing.
> Intel is fine for me. Homebrew gtk3 is working.
>
> I have attached a minimal test program and I have tested this after
> completely uninstalling all ports and all homebrew.
>
> {{{
> % sudo port install gtk3 +quartz && sudo port install pkgconfig
> % gcc $(pkg-config --libs --cflags gtk+-3.0) -o gtk-test gtk-test.c
> % ./gtk-test
> zsh: trace trap ./gtg-test
> }}}
>
> lldb strack trace:
>
> {{{
> Process 21281 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason =
> EXC_BREAKPOINT (code=1, subcode=0x183c18b6c)
> frame #0: 0x0000000183c18b6c libsystem_c.dylib`__chk_fail_overflow +
> 24
> libsystem_c.dylib`__chk_fail_overflow:
> -> 0x183c18b6c <+24>: brk #0x1
>
> libsystem_c.dylib`__chk_fail_overlap:
> 0x183c18b70 <+0>: pacibsp
> 0x183c18b74 <+4>: stp x29, x30, [sp, #-0x10]!
> 0x183c18b78 <+8>: mov x29, sp
> Target 0: (gtk-test) stopped.
> (lldb) bt
> * thread #1, queue = 'com.apple.main-thread', stop reason =
> EXC_BREAKPOINT (code=1, subcode=0x183c18b6c)
> * frame #0: 0x0000000183c18b6c libsystem_c.dylib`__chk_fail_overflow +
> 24
> frame #1: 0x0000000183ba7b30 libsystem_c.dylib`__memmove_chk + 40
> frame #2: 0x0000000100c516b0
> libgtk-3.0.dylib`_gtk_marshal_VOID__OBJECT_OBJECTv + 52
> frame #3: 0x0000000100450ec0
> libgobject-2.0.0.dylib`_g_closure_invoke_va + 224
> frame #4: 0x0000000100466158
> libgobject-2.0.0.dylib`g_signal_emit_valist + 852
> frame #5: 0x00000001004669a4 libgobject-2.0.0.dylib`g_signal_emit +
> 28
> frame #6: 0x0000000100a36a88 libgtk-3.0.dylib`gtk_css_node_reposition
> + 348
> frame #7: 0x0000000100b7bc0c
> libgtk-3.0.dylib`gtk_style_context_save_named + 92
> frame #8: 0x0000000100992e90
> libgtk-3.0.dylib`gtk_style_update_from_context + 100
> frame #9: 0x0000000100991574 libgtk-3.0.dylib`gtk_style_constructed +
> 40
> frame #10: 0x0000000100456b38
> libgobject-2.0.0.dylib`g_object_new_internal + 256
> frame #11: 0x00000001004567dc
> libgobject-2.0.0.dylib`g_object_new_valist + 588
> frame #12: 0x0000000100456388 libgobject-2.0.0.dylib`g_object_new +
> 32
> frame #13: 0x000000010098d62c
> libgtk-3.0.dylib`_gtk_style_new_for_path + 84
> frame #14: 0x000000010098d680 libgtk-3.0.dylib`gtk_style_new + 48
> frame #15: 0x0000000100990024
> libgtk-3.0.dylib`gtk_widget_get_default_style + 60
> frame #16: 0x0000000100c069b4 libgtk-3.0.dylib`gtk_widget_init + 284
> frame #17: 0x0000000100467fc8
> libgobject-2.0.0.dylib`g_type_create_instance + 328
> frame #18: 0x0000000100456a80
> libgobject-2.0.0.dylib`g_object_new_internal + 72
> frame #19: 0x00000001004567dc
> libgobject-2.0.0.dylib`g_object_new_valist + 588
> frame #20: 0x0000000100456388 libgobject-2.0.0.dylib`g_object_new +
> 32
> frame #21: 0x0000000100c1ad98 libgtk-3.0.dylib`gtk_window_new + 48
> frame #22: 0x0000000100003ee0 gtk-test`main + 60
> frame #23: 0x00000001000110f4 dyld`start + 520
> (lldb)
> }}}
New description:
On both macOS 11 and 12 on an M1 Mac mini, gtk3 +quartz is crashing. Intel
is fine for me. Homebrew gtk3 is working.
I have attached a minimal test program and I have tested this after
completely uninstalling all ports and all homebrew.
{{{
% sudo port install gtk3 +quartz && sudo port install pkgconfig
% gcc $(pkg-config --libs --cflags gtk+-3.0) -o gtk-test gtk-test.c
% ./gtk-test
zsh: trace trap ./gtk-test
}}}
lldb strack trace:
{{{
Process 21281 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT
(code=1, subcode=0x183c18b6c)
frame #0: 0x0000000183c18b6c libsystem_c.dylib`__chk_fail_overflow +
24
libsystem_c.dylib`__chk_fail_overflow:
-> 0x183c18b6c <+24>: brk #0x1
libsystem_c.dylib`__chk_fail_overlap:
0x183c18b70 <+0>: pacibsp
0x183c18b74 <+4>: stp x29, x30, [sp, #-0x10]!
0x183c18b78 <+8>: mov x29, sp
Target 0: (gtk-test) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT
(code=1, subcode=0x183c18b6c)
* frame #0: 0x0000000183c18b6c libsystem_c.dylib`__chk_fail_overflow +
24
frame #1: 0x0000000183ba7b30 libsystem_c.dylib`__memmove_chk + 40
frame #2: 0x0000000100c516b0
libgtk-3.0.dylib`_gtk_marshal_VOID__OBJECT_OBJECTv + 52
frame #3: 0x0000000100450ec0
libgobject-2.0.0.dylib`_g_closure_invoke_va + 224
frame #4: 0x0000000100466158
libgobject-2.0.0.dylib`g_signal_emit_valist + 852
frame #5: 0x00000001004669a4 libgobject-2.0.0.dylib`g_signal_emit + 28
frame #6: 0x0000000100a36a88 libgtk-3.0.dylib`gtk_css_node_reposition
+ 348
frame #7: 0x0000000100b7bc0c
libgtk-3.0.dylib`gtk_style_context_save_named + 92
frame #8: 0x0000000100992e90
libgtk-3.0.dylib`gtk_style_update_from_context + 100
frame #9: 0x0000000100991574 libgtk-3.0.dylib`gtk_style_constructed +
40
frame #10: 0x0000000100456b38
libgobject-2.0.0.dylib`g_object_new_internal + 256
frame #11: 0x00000001004567dc
libgobject-2.0.0.dylib`g_object_new_valist + 588
frame #12: 0x0000000100456388 libgobject-2.0.0.dylib`g_object_new + 32
frame #13: 0x000000010098d62c libgtk-3.0.dylib`_gtk_style_new_for_path
+ 84
frame #14: 0x000000010098d680 libgtk-3.0.dylib`gtk_style_new + 48
frame #15: 0x0000000100990024
libgtk-3.0.dylib`gtk_widget_get_default_style + 60
frame #16: 0x0000000100c069b4 libgtk-3.0.dylib`gtk_widget_init + 284
frame #17: 0x0000000100467fc8
libgobject-2.0.0.dylib`g_type_create_instance + 328
frame #18: 0x0000000100456a80
libgobject-2.0.0.dylib`g_object_new_internal + 72
frame #19: 0x00000001004567dc
libgobject-2.0.0.dylib`g_object_new_valist + 588
frame #20: 0x0000000100456388 libgobject-2.0.0.dylib`g_object_new + 32
frame #21: 0x0000000100c1ad98 libgtk-3.0.dylib`gtk_window_new + 48
frame #22: 0x0000000100003ee0 gtk-test`main + 60
frame #23: 0x00000001000110f4 dyld`start + 520
(lldb)
}}}
--
--
Ticket URL: <https://trac.macports.org/ticket/64484#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list