Crashes upon trampoline into PyGObject
I just programmed a vala project and then builder crashed twice (I just wrote text, nothing else). The third time time it crashed, I was able to get a backtrace:
#0 tcmalloc::SLL_TryPop(void**, void**) (rv=<synthetic pointer>, list=0x555555cef0c0) at src/linked_list.h:69
#1 tcmalloc::ThreadCache::FreeList::TryPop(void**) (rv=<synthetic pointer>, this=0x555555cef0c0) at src/thread_cache.h:220
#2 tcmalloc::ThreadCache::Allocate(unsigned long, unsigned int, void* (*)(unsigned long)) (oom_handler=0x7ffff7df4200 <tcmalloc::malloc_oom(unsigned long)>, cl=4, size=48, this=0x555555cef040) at src/thread_cache.h:379
#3 malloc_fast_path<tcmalloc::malloc_oom> (size=45) at src/tcmalloc.cc:1898
#4 tc_malloc(size_t) (size=size@entry=45) at src/tcmalloc.cc:1923
#5 0x00007ffff7a9f401 in g_malloc (n_bytes=n_bytes@entry=45) at ../glib/gmem.c:125
#6 0x00007ffff7aba8e5 in g_strdup (str=0x7fffffffe614 "GUESTFISH_PS1=\\[\\e[1;32m\\]><fs>\\[\\e[0;31m\\] ") at ../glib/gstrfuncs.c:361
#7 0x00007ffff7abc4ad in g_strdupv (str_array=0x7fffffffda00) at ../glib/gstrfuncs.c:2600
#8 0x00007ffff7a80003 in g_get_environ () at ../glib/genviron.c:445
#9 0x00007ffff7ca0a75 in g_subprocess_launcher_init (self=0x555558b70870 [GSubprocessLauncher]) at ../gio/gsubprocesslauncher.c:161
#10 0x00007ffff7bb72b9 in g_type_create_instance (type=<optimized out>) at ../gobject/gtype.c:1929
#11 0x00007ffff7b9a41c in g_object_new_internal (class=class@entry=0x5555565d02d0, params=params@entry=0x7fffffffd090, n_params=n_params@entry=1) at ../gobject/gobject.c:2011
#12 0x00007ffff7b9bf7a in g_object_new_valist (object_type=0x5555565c5320 [GSubprocessLauncher], first_property_name=first_property_name@entry=0x7ffff7d7fcdd "flags", var_args=var_args@entry=0x7fffffffd360) at ../gobject/gobject.c:2355
#13 0x00007ffff7b9c51f in g_object_new (object_type=<optimized out>, first_property_name=first_property_name@entry=0x7ffff7d7fcdd "flags") at ../gobject/gobject.c:1824
#14 0x00007ffff7ca0f5a in g_subprocess_launcher_new (flags=<optimized out>) at ../gio/gsubprocesslauncher.c:204
#15 0x00005555557c8c28 in ide_subprocess_launcher_spawn_worker (task_data=0x0, cancellable=0x0, source_object=<optimized out>, task=0x555558c1c300 [GTask]) at ../src/libide/threading/ide-subprocess-launcher.c:302
#16 ide_subprocess_launcher_real_spawn (self=<optimized out>, cancellable=0x0, error=0x7fffffffd4e0) at ../src/libide/threading/ide-subprocess-launcher.c:427
#17 0x00005555558cf26e in ide_gettext_diagnostic_provider_diagnose_async
(provider=<optimized out>, file=<optimized out>, contents=0x5555584c6480, lang_id=<optimized out>, cancellable=0x0, callback=0x555555656050 <ide_diagnostics_group_diagnose_cb>, user_data=0x555558238840)
at ../src/plugins/gettext/ide-gettext-diagnostic-provider.c:209
#18 0x0000555555656c83 in ide_diagnostics_group_diagnose_foreach (adapter=<optimized out>, plugin_info=0x5555565bcbb0, exten=0x5555584081e0 [IdeGettextDiagnosticProvider], user_data=0x555558238840)
at ../src/libide/code/ide-diagnostics-manager.c:449
#19 0x000055555576c2f3 in ide_extension_set_adapter_foreach (self=0x555558390ab0 [IdeExtensionSetAdapter], foreach_func=foreach_func@entry=0x555555656a90 <ide_diagnostics_group_diagnose_foreach>, user_data=user_data@entry=0x555558238840)
at ../src/libide/plugins/ide-extension-set-adapter.c:661
#20 0x0000555555655ca0 in ide_diagnostics_group_diagnose (self=0x555558238840 [IdeDiagnosticsManager], group=0x555557802920) at ../src/libide/code/ide-diagnostics-manager.c:477
#21 ide_diagnostics_manager_begin_diagnose (data=0x555558238840, data@entry=<error reading variable: value has been optimized out>) at ../src/libide/code/ide-diagnostics-manager.c:509
#22 0x00007ffff7a99a19 in g_timeout_dispatch (source=source@entry=0x555558891e30, callback=<optimized out>, user_data=<optimized out>) at ../glib/gmain.c:4971
#23 0x00007ffff7a98ceb in g_main_dispatch (context=0x55555653e160) at ../glib/gmain.c:3417
#24 g_main_context_dispatch (context=0x55555653e160) at ../glib/gmain.c:4135
#25 0x00007ffff7a991f8 in g_main_context_iterate (context=context@entry=0x55555653e160, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4211
#26 0x00007ffff7a992c4 in g_main_context_iteration (context=context@entry=0x55555653e160, may_block=may_block@entry=1) at ../glib/gmain.c:4276
#27 0x00007ffff7cd70cd in g_application_run (application=0x5555565404a0 [IdeApplication], argc=argc@entry=1, argv=argv@entry=0x7fffffffd9e8) at ../gio/gapplication.c:2569
#28 0x000055555563b275 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:297
I ran with G_MESSAGES_DEBUG=all gdb --args /app/bin/gnome-builder -vvvvvvvvvvv
, the folder of the project is not a symlink.
Version: 43.alpha0 (42.0-35-g992a45bf) flatpak-nightly, GNOME 42, Fedora 36
Last few lines before the crash: log.txt
Valgrind logs: valgrindlogs.tar.xz
Edited by Christian Hergert