segfault on application startup if gnome-latex compiled with latest valac
Another regression in gnome-latex when compiled with a more recent valac.
$ gnome-latex
Segmentation fault (core dumped)
Here is the backtrace:
(gdb) bt
#0 0x00007ffff6a2d562 in gtk_activatable_update (activatable=0x862400, action=0x8244f0, property_name=0x7ffff4ec55ff "action-group")
at deprecated/gtkactivatable.c:330
#1 0x00007ffff6a2d8d5 in gtk_activatable_action_notify (action=0x8244f0, pspec=0xacf220, activatable=0x862400)
at deprecated/gtkactivatable.c:400
#2 0x00007ffff4af856e in g_cclosure_marshal_VOID__PARAM (closure=0xa8eb80, return_value=0x0, n_param_values=2,
param_values=0x7fffffffc350, invocation_hint=0x7fffffffc290, marshal_data=0x0) at gmarshal.c:1832
#3 0x00007ffff4af3bd8 in g_closure_invoke (closure=0xa8eb80, return_value=0x0, n_param_values=2, param_values=0x7fffffffc350,
invocation_hint=0x7fffffffc290) at gclosure.c:806
#4 0x00007ffff4b1174d in signal_emit_unlocked_R (node=0x812c00, detail=81, instance=0x8244f0, emission_return=0x0,
instance_and_params=0x7fffffffc350) at gsignal.c:3635
#5 0x00007ffff4b10a5a in g_signal_emit_valist (instance=0x8244f0, signal_id=1, detail=81, var_args=0x7fffffffc618) at gsignal.c:3391
#6 0x00007ffff4b10fdd in g_signal_emit (instance=0x8244f0, signal_id=1, detail=81) at gsignal.c:3447
#7 0x00007ffff4afb16d in g_object_dispatch_properties_changed (object=0x8244f0, n_pspecs=1, pspecs=0x7fffffffc750) at gobject.c:1088
#8 0x00007ffff4af9bef in g_object_notify_queue_thaw (object=0x8244f0, nqueue=0x97b550) at gobject.c:296
#9 0x00007ffff4afdd23 in g_object_set_valist (object=0x8244f0, first_property_name=0x7ffff4ec55ff "action-group", var_args=0x7fffffffc8f0)
at gobject.c:2314
#10 0x00007ffff4afe59c in g_object_set (_object=0x8244f0, first_property_name=0x7ffff4ec55ff "action-group") at gobject.c:2473
#11 0x00007ffff6a33124 in gtk_action_group_add_action (action_group=0x9eb750, action=0x8244f0) at deprecated/gtkactiongroup.c:948
#12 0x0000000000454eec in latex_menu_construct (object_type=11758144, main_window=0xb04340) at latex_menu.c:143
#13 0x000000000045628a in latex_menu_new (main_window=0xb04340) at latex_menu.c:344
#14 0x0000000000465d9d in main_window_initialize_ui_manager (self=0xb04340) at main_window.c:1332
#15 0x00000000004649cc in main_window_construct (object_type=10029712, app=0x81e0f0) at main_window.c:1012
#16 0x0000000000465651 in main_window_new (app=0x81e0f0) at main_window.c:1161
#17 0x000000000044b980 in factory_real_create_main_window_vala (base=0x812a60, gtk_app=0x81e0f0) at factory.c:171
#18 0x00007ffff7b891f9 in tepl_abstract_factory_vala_create_main_window_vala (factory_vala=0x812a60, app=0x81e0f0)
at tepl-abstract-factory-vala.c:127
#19 0x00007ffff7b88e1c in tepl_abstract_factory_vala_create_main_window (factory=0x812a60, app=0x81e0f0) at tepl-abstract-factory-vala.c:59
#20 0x00007ffff7b88866 in tepl_abstract_factory_create_main_window (factory=0x812a60, app=0x81e0f0) at tepl-abstract-factory.c:195
#21 0x00007ffff7b8a9aa in activate_cb (g_app=0x81e0f0, tepl_app=0x818120) at tepl-application.c:471
#22 0x00007ffff4af6ee7 in g_cclosure_marshal_VOID__VOID (closure=0x826ba0, return_value=0x0, n_param_values=1,
param_values=0x7fffffffd250, invocation_hint=0x7fffffffd190, marshal_data=0x0) at gmarshal.c:875
#23 0x00007ffff4af3bd8 in g_closure_invoke (closure=0x826ba0, return_value=0x0, n_param_values=1, param_values=0x7fffffffd250,
invocation_hint=0x7fffffffd190) at gclosure.c:806
#24 0x00007ffff4b1174d in signal_emit_unlocked_R (node=0x819eb0, detail=0, instance=0x81e0f0, emission_return=0x0,
instance_and_params=0x7fffffffd250) at gsignal.c:3635
#25 0x00007ffff4b10a5a in g_signal_emit_valist (instance=0x81e0f0, signal_id=8, detail=0, var_args=0x7fffffffd508) at gsignal.c:3391
#26 0x00007ffff4b10fdd in g_signal_emit (instance=0x81e0f0, signal_id=8, detail=0) at gsignal.c:3447
#27 0x00007ffff4e04598 in g_application_activate (application=0x81e0f0) at gapplication.c:2236
#28 0x00007ffff4e02544 in g_application_real_local_command_line (application=0x81e0f0, arguments=0x7fffffffd6f8,
exit_status=0x7fffffffd6f4) at gapplication.c:1119
#29 0x00007ffff6ab7e93 in gtk_application_local_command_line (application=0x81e0f0, arguments=0x7fffffffd6f8, exit_status=0x7fffffffd6f4)
at gtkapplication.c:332
#30 0x00007ffff4e04928 in g_application_run (application=0x81e0f0, argc=1, argv=0x7fffffffd898) at gapplication.c:2439
#31 0x0000000000456571 in _vala_main (argv=0x7fffffffd898, argv_length1=1) at main.c:97
#32 0x00000000004565da in main (argc=1, argv=0x7fffffffd898) at main.c:110
I've done a git bisect in vala, the result is:
6f1d0947bed9260436e7d2da18977b3925cdb0bd is the first bad commit
commit 6f1d0947bed9260436e7d2da18977b3925cdb0bd
Author: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Sun Apr 15 13:08:23 2018 +0200
codegen: Don't apply ref_sink_function if target_type is floating_reference