Open kirelagin opened 3 years ago
OMG all the time exactly this
Actually I think this has been rewritten slightly that https://github.com/NixOS/nixpkgs/issues/101527 should be different. I haven't had any time to recheck though
Still reproduces on NixOS 22.11. Same backtrace, but it might also be misleading, as another thread is also simultaneously active. While the Zeitgeist thread is hitting the error, the other one might be causing the corruption.
realloc(): invalid next size
#6 0x00007f64de133553 realloc (libc.so.6 + 0x99553)
#7 0x00007f64defa4bf8 g_realloc (libglib-2.0.so.0 + 0x5ebf8)
#8 0x00007f64def8a20c realloc_arrays (libglib-2.0.so.0 + 0x4420c)
#9 0x00007f64def8a546 g_hash_table_resize (libglib-2.0.so.0 + 0x44546)
#10 0x00007f64def8ad1c g_hash_table_insert_node (libglib-2.0.so.0 + 0x44d1c)
#11 0x00007f64def8bb10 g_hash_table_add (libglib-2.0.so.0 + 0x45b10)
#12 0x00007f64defc3aa2 g_string_chunk_insert_const (libglib-2.0.so.0 + 0x7daa2)
#13 0x00007f64c92a15ca zeitgeist_subject_set_mimetype (libzeitgeist-2.0.so.0 + 0x2e5ca)
#14 0x00007f64c92ac838 zeitgeist_db_reader_get_subject_from_row (libzeitgeist-2.0.so.0 + 0x39838)
#15 0x00007f64c92acad9 zeitgeist_db_reader_get_events (libzeitgeist-2.0.so.0 + 0x39ad9)
#16 0x00007f64c92afd18 zeitgeist_db_reader_find_events (libzeitgeist-2.0.so.0 + 0x3cd18)
#17 0x00007f64c928e746 ____lambda11__gthread_func (libzeitgeist-2.0.so.0 + 0x1b746)
#18 0x00007f64c928d473 ____lambda10__gfunc (libzeitgeist-2.0.so.0 + 0x1a473)
#19 0x00007f64defca1b4 g_thread_pool_thread_proxy (libglib-2.0.so.0 + 0x841b4)
#20 0x00007f64defc98cd g_thread_proxy (libglib-2.0.so.0 + 0x838cd)
#21 0x00007f64de122e86 start_thread (libc.so.6 + 0x88e86)
#22 0x00007f64de1a9d70 __clone3 (libc.so.6 + 0x10fd70)
Other Thread:
#1 0x00007f64de13390c realloc (libc.so.6 + 0x9990c)
#2 0x00007f64de1179f3 __vasprintf_internal (libc.so.6 + 0x7d9f3)
#3 0x00007f64defeeeef g_vasprintf (libglib-2.0.so.0 + 0xa8eef)
#4 0x00007f64defbf7ad g_strdup_vprintf (libglib-2.0.so.0 + 0x797ad)
#5 0x00007f64def86c80 g_error_new_valist (libglib-2.0.so.0 + 0x40c80)
#6 0x00007f64def8731b g_set_error (libglib-2.0.so.0 + 0x4131b)
#7 0x00007f64def961be g_key_file_get_value (libglib-2.0.so.0 + 0x501be)
#8 0x00007f64def963c8 g_key_file_get_string (libglib-2.0.so.0 + 0x503c8)
#9 0x00007f64def96bc6 g_key_file_get_locale_string (libglib-2.0.so.0 + 0x50bc6)
#10 0x00007f64dee2e6c0 g_desktop_app_info_load_from_keyfile (libgio-2.0.so.0 + 0xcf6c0)
#11 0x00007f64dee317d3 g_desktop_app_info_new_from_filename_unlocked (libgio-2.0.so.0 + 0xd27d3)
#12 0x00007f64dee32c0d g_app_info_get_all (libgio-2.0.so.0 + 0xd3c0d)
#13 0x00007f64c9328664 synapse_desktop_file_service_load_all_desktop_files (libslingshot.so + 0x4b664)
#14 0x00007f64c9328a3c synapse_desktop_file_service_initialize_co.isra.0 (libslingshot.so + 0x4ba3c)
#15 0x00007f64dee15ff3 g_task_return_now (libgio-2.0.so.0 + 0xb6ff3)
#16 0x00007f64dee16029 complete_in_idle_cb (libgio-2.0.so.0 + 0xb7029)
#17 0x00007f64def9e8e4 g_main_context_dispatch (libglib-2.0.so.0 + 0x588e4)
#18 0x00007f64def9ec88 g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0x58c88)
#19 0x00007f64def9ed3f g_main_context_iteration (libglib-2.0.so.0 + 0x58d3f)
#20 0x00007f64dee4419d g_application_run (libgio-2.0.so.0 + 0xe519d)
#21 0x0000000000409011 main (.io.elementary.wingpanel-wrapped + 0x9011)
#22 0x00007f64de0c324e __libc_start_call_main (libc.so.6 + 0x2924e)
#23 0x00007f64de0c3309 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29309)
#24 0x0000000000409055 _start (.io.elementary.wingpanel-wrapped + 0x9055)
What Happened
Due to nixos/nixpkgs#101527 I occasionally have to
kill
wingpanel to have it pick up newly installed apps. It restarted fine, but when I tried to actually open the applications list, it crashed.There is
realloc(): invalid next size
in the journal and when I tried to start it manually in the terminal right after that, I gotfree(): invalid next size (fast)
, so there is some sort of memory corruption going on.And
gnome-session
does not attempt to restart it any longer.Expected Behavior
There are two problems here:
gnome-session
gives up trying to restart it.wingpanel
does not crash immediately when it starts, it only crashes when I try to actually open the application list, so the fact thatgnome-session
only tries once may be some sort of misconfiguration in the desktop file.Steps to Reproduce
After it crashed like this for the first time
gnome-session
gave up trying to restart it immediately, so I launched it form the terminal myself an it crashed again. Then I tried again, and it worked fine, so this is not particularly deterministic.Logs
Journal:
Backtrace from the coredump:
Platform Information
8e78c2cfbae
)cc @worldofpeace (in case this is somehow NixOS-specific and you saw something like this)