Crash when reloading a file after Git operations
I got a crash today with Builder master flatpak.
What I did:
- I opened a project managed with Git.
- Opened a few files.
- Opened a terminal and did
git rebase
and committed a few changes. - Went back to Builder noticing a few files needed to be reloaded as they were changes externally.
- Clicked the reload button and experienced immediatly the crash.
I'm not sure that these operations are related though.
Here is the backtrace:
(gdb) thread apply all bt
Thread 112 (Thread 0x7fffe911e700 (LWP 1192)):
#0 0x00007ffff303d0ad in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007ffff7b06446 in g_cond_wait_until (cond=cond@entry=0x55555645fc48, mutex=mutex@entry=0x55555645fc40, end_time=end_time@entry=5242146567) at ../glib/gthread-posix.c:1588
#2 0x00007ffff7a89551 in g_async_queue_pop_intern_unlocked (queue=0x55555645fc40, wait=wait@entry=1, end_time=5242146567) at ../glib/gasyncqueue.c:422
#3 0x00007ffff7a89bf1 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000) at ../glib/gasyncqueue.c:574
#4 0x00007ffff7ae31fa in g_thread_pool_wait_for_new_task (pool=<optimized out>) at ../glib/gthreadpool.c:278
#5 0x00007ffff7ae31fa in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:343
#6 0x00007ffff7ae2801 in g_thread_proxy (data=0x555559ef79e0) at ../glib/gthread.c:807
#7 0x00007ffff3116532 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8 0x00007ffff30425b3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 3 (Thread 0x7fffec6e7700 (LWP 14)):
#0 0x00007ffff7b061d9 in g_mutex_lock (mutex=mutex@entry=0x7ffff7d12af0 <on_signal_received>) at ../glib/gthread-posix.c:1481
#1 0x00007ffff7ab73e2 in g_source_attach (source=source@entry=0x55555c9525a0, context=0x7ffff7d12af0 <on_signal_received>) at ../glib/gmain.c:1269
#2 0x00007ffff7d010f9 in schedule_callbacks (connection=connection@entry=0x555557320000 [GDBusConnection], message=message@entry=0x55555a679db0 [GDBusMessage], sender=sender@entry=0x0, signal_data_array=<optimized out>, signal_data_array=<optimized out>) at ../gio/gdbusconnection.c:3932
#3 0x00007ffff7d02fb5 in distribute_signals (message=0x55555a679db0 [GDBusMessage], connection=0x555557320000 [GDBusConnection]) at ../gio/gdbusconnection.c:3974
#4 0x00007ffff7d02fb5 in on_worker_message_received (worker=<optimized out>, user_data=<optimized out>, message=0x55555a679db0 [GDBusMessage]) at ../gio/gdbusconnection.c:2312
#5 0x00007ffff7d02fb5 in on_worker_message_received (worker=<optimized out>, message=<optimized out>, user_data=<optimized out>) at ../gio/gdbusconnection.c:2232
#6 0x00007ffff7d18124 in _g_dbus_worker_emit_message_received (message=0x55555a679db0 [GDBusMessage], worker=0x555556d08460) at ../gio/gdbusprivate.c:487
#7 0x00007ffff7d18124 in _g_dbus_worker_emit_message_received (message=0x55555a679db0 [GDBusMessage], worker=0x555556d08460) at ../gio/gdbusprivate.c:483
#8 0x00007ffff7d18124 in _g_dbus_worker_queue_or_deliver_received_message (message=0x55555a679db0 [GDBusMessage], worker=0x555556d08460) at ../gio/gdbusprivate.c:515
#9 0x00007ffff7d18124 in _g_dbus_worker_do_read_cb (input_stream=<optimized out>, res=<optimized out>, user_data=0x555556d08460) at ../gio/gdbusprivate.c:800
#10 0x00007ffff7c76d2b in async_ready_callback_wrapper (source_object=0x555556d04d90 [GUnixInputStream], res=0x55555c8e8780, user_data=0x555556d08460) at ../gio/ginputstream.c:532
#11 0x00007ffff7cabed9 in g_task_return_now (task=0x55555c8e8780 [GTask]) at ../gio/gtask.c:1214
#12 0x00007ffff7cabf1d in complete_in_idle_cb (task=0x55555c8e8780) at ../gio/gtask.c:1228
#13 0x00007ffff7ab8cce in g_main_dispatch (context=0x5555564bc370) at ../glib/gmain.c:3309
#14 0x00007ffff7ab8cce in g_main_context_dispatch (context=context@entry=0x5555564bc370) at ../glib/gmain.c:3974
#15 0x00007ffff7ab9080 in g_main_context_iterate (context=0x5555564bc370, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4047
#16 0x00007ffff7ab9373 in g_main_loop_run (loop=0x55555645bcf0) at ../glib/gmain.c:4241
#17 0x00007ffff7d15bca in gdbus_shared_thread_func (user_data=0x5555564e22c0) at ../gio/gdbusprivate.c:279
#18 0x00007ffff7ae2801 in g_thread_proxy (data=0x5555564cd7a0) at ../glib/gthread.c:807
#19 0x00007ffff3116532 in start_thread (arg=<optimized out>) at pthread_create.c:477
#20 0x00007ffff30425b3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 2 (Thread 0x7fffecf0b700 (LWP 13)):
#0 0x00007ffff3037a4f in __GI___poll (fds=0x555556483bb0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007ffff7ab8fee in g_main_context_poll (priority=<optimized out>, n_fds=2, fds=0x555556483bb0, timeout=<optimized out>, context=0x5555564bc0b0) at ../glib/gmain.c:4346
#2 0x00007ffff7ab8fee in g_main_context_iterate (context=context@entry=0x5555564bc0b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4042
#3 0x00007ffff7ab9123 in g_main_context_iteration (context=0x5555564bc0b0, may_block=may_block@entry=1) at ../glib/gmain.c:4108
#4 0x00007ffff7ab9171 in glib_worker_main (data=<optimized out>) at ../glib/gmain.c:5996
#5 0x00007ffff7ae2801 in g_thread_proxy (data=0x55555643bc20) at ../glib/gthread.c:807
#6 0x00007ffff3116532 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7 0x00007ffff30425b3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 1 (Thread 0x7fffed224200 (LWP 9)):
#0 0x00007ffff303d0ad in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007ffff7b0575c in g_mutex_lock_slowpath (mutex=mutex@entry=0x555557320018) at ../glib/gthread-posix.c:1458
#2 0x00007ffff7b061e6 in g_mutex_lock (mutex=mutex@entry=0x555557320018) at ../glib/gthread-posix.c:1482
#3 0x00007ffff7d08bc0 in g_dbus_connection_signal_unsubscribe (connection=0x555557320000 [GDBusConnection], subscription_id=167) at ../gio/gdbusconnection.c:3716
#4 0x00007ffff7d13abd in g_dbus_proxy_finalize (object=0x55555c0e71b0 [IpcGitChangeMonitorProxy]) at ../gio/gdbusproxy.c:193
#5 0x00007ffff7babd0e in g_object_unref (_object=<optimized out>) at ../gobject/gobject.c:3501
#6 0x00007ffff7babd0e in g_object_unref (_object=0x55555c0e71b0) at ../gobject/gobject.c:3393
#7 0x00007ffff7cac1c6 in g_task_finalize (object=0x55555a52be00 [GTask]) at ../gio/gtask.c:651
#8 0x00007ffff7babd0e in g_object_unref (_object=<optimized out>) at ../gobject/gobject.c:3501
#9 0x00007ffff7babd0e in g_object_unref (_object=0x55555a52be00) at ../gobject/gobject.c:3393
#10 0x00007ffff7d11fe5 in reply_cb (connection=<optimized out>, res=<optimized out>, user_data=user_data@entry=0x55555a52be00) at ../gio/gdbusproxy.c:2558
#11 0x00007ffff7cabed9 in g_task_return_now (task=0x55555ac69e00 [GTask]) at ../gio/gtask.c:1214
#12 0x00007ffff7cacacd in g_task_return (task=0x55555ac69e00 [GTask], type=<optimized out>) at ../gio/gtask.c:1283
#13 0x00007ffff7cad10c in g_task_return (type=G_TASK_RETURN_SUCCESS, task=<optimized out>) at ../gio/gtask.c:1686
#14 0x00007ffff7cad10c in g_task_return_pointer (task=<optimized out>, result=<optimized out>, result_destroy=<optimized out>) at ../gio/gtask.c:1691
#15 0x00007ffff7d0705f in g_dbus_connection_call_done (source=<optimized out>, result=0x55555a9f7980, user_data=user_data@entry=0x55555ac69e00) at ../gio/gdbusconnection.c:5765
#16 0x00007ffff7cabed9 in g_task_return_now (task=0x55555a9f7980 [GTask]) at ../gio/gtask.c:1214
#17 0x00007ffff7cabf1d in complete_in_idle_cb (task=0x55555a9f7980) at ../gio/gtask.c:1228
#18 0x00007ffff7ab8cce in g_main_dispatch (context=0x5555564bc160) at ../glib/gmain.c:3309
#19 0x00007ffff7ab8cce in g_main_context_dispatch (context=context@entry=0x5555564bc160) at ../glib/gmain.c:3974
#20 0x00007ffff7ab9080 in g_main_context_iterate (context=context@entry=0x5555564bc160, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4047
#21 0x00007ffff7ab9123 in g_main_context_iteration (context=context@entry=0x5555564bc160, may_block=may_block@entry=1) at ../glib/gmain.c:4108
#22 0x00007ffff7cd9cd5 in g_application_run (application=0x555556496120 [IdeApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffdd28) at ../gio/gapplication.c:2559
#23 0x0000555555625648 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:286
Edited by Corentin Noël