Description of problem: If I open C source file, Anjuta crashed. Version-Release number of selected component: anjuta-1:3.34.0-20.fc39 Additional info: reporter: libreport-2.17.11 kernel: 6.5.6-300.fc39.x86_64 backtrace_rating: 4 runlevel: N 5 cgroup: 0::/user.slice/user-1002.slice/session-2.scope uid: 1002 package: anjuta-1:3.34.0-20.fc39 rootdir: / cmdline: anjuta comment: If I open C source file, Anjuta crashed. journald_cursor: s=26dd03afd7fa4f289ae607d39b69d43f;i=1ad3c0;b=57e9f64828a942dc853ca0a9172845e6;m=b788d955;t=6071bba563d86;x=a234428ae18489d9 type: CCpp crash_function: iassist_remove executable: /usr/bin/anjuta reason: anjuta killed by SIGSEGV Truncated backtrace: Thread no. 1 (19 frames) #0 iassist_remove at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/sourceview/sourceview.c:2362 #1 parser_cxx_assist_uninstall at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/parser-cxx/parser-cxx-assist.c:929 #2 parser_cxx_assist_finalize(GObject*) at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/parser-cxx/parser-cxx-assist.c:951 #5 uninstall_support at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/parser-cxx/plugin.c:97 #7 on_editor_language_changed(IAnjutaEditor*, gchar const*, ParserCxxPlugin*) at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/parser-cxx/plugin.c:109 #9 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3980 #10 signal_emit_valist_unlocked at ../gobject/gsignal.c:3612 #12 autodetect_language at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/sourceview/sourceview.c:2219 #13 on_open_finish at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/sourceview/sourceview.c:784 #15 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3980 #16 signal_emit_valist_unlocked at ../gobject/gsignal.c:3612 #18 on_read_finished at /usr/src/debug/anjuta-3.34.0-20.fc39.x86_64/plugins/sourceview/sourceview-io.c:507 #19 async_ready_callback_wrapper at ../gio/ginputstream.c:565 #20 g_task_return_now at ../gio/gtask.c:1371 #21 complete_in_idle_cb at ../gio/gtask.c:1385 #24 g_main_context_dispatch_unlocked at ../glib/gmain.c:4284 #25 g_main_context_iterate_unlocked.isra.0 at ../glib/gmain.c:4349 #26 g_main_context_iteration at ../glib/gmain.c:4414 #27 g_application_run at ../gio/gapplication.c:2577 Potential duplicate: bug 2180750
Created attachment 1992621 [details] File: mountinfo
Created attachment 1992622 [details] File: backtrace
Created attachment 1992623 [details] File: open_fds
Created attachment 1992624 [details] File: cpuinfo
Created attachment 1992625 [details] File: exploitable
Created attachment 1992626 [details] File: core_backtrace
Created attachment 1992627 [details] File: maps
Created attachment 1992628 [details] File: os_info
Created attachment 1992629 [details] File: dso_list
Created attachment 1992630 [details] File: environ
Created attachment 1992631 [details] File: proc_pid_status
Created attachment 1992632 [details] File: limits
Problem can be solved by: cat anjuta-sourceview.patch --- plugins/sourceview/sourceview.c.orig 2023-10-15 07:35:16.837377713 +0200 +++ plugins/sourceview/sourceview.c 2023-10-15 07:35:28.773153316 +0200 @@ -2356,7 +2356,7 @@ Sourceview* sv = ANJUTA_SOURCEVIEW(iassist); GtkSourceCompletion* completion = gtk_source_view_get_completion(GTK_SOURCE_VIEW(sv->priv->view)); GList* node; - for (node = gtk_source_completion_get_providers(completion); node != NULL; node = g_list_next(node)) + for (node = g_list_copy(gtk_source_completion_get_providers(completion)); node != NULL; node = g_list_next(node)) { SourceviewProvider* prov; if (!SOURCEVIEW_IS_PROVIDER(node->data)) The list "node" gets destroyed while being used.
You build anjuta-3.34.0-21.fc39 with this patch? (In reply to H.Janssen from comment #13) > Problem can be solved by:
Yes, indeed. The source code editor works fine after this patch. Did not try yet to free the copied list afterwards, so may be introduced a small memory leak.
Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26. Fedora Linux 39 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora Linux please feel free to reopen this bug against that version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see the version field. If you are unable to reopen this bug, please file a new report against an active release. Thank you for reporting this bug and we are sorry it could not be fixed.