Bug 2242593 - [abrt] anjuta: iassist_remove(): anjuta killed by SIGSEGV
Summary: [abrt] anjuta: iassist_remove(): anjuta killed by SIGSEGV
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: anjuta
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:cc9d1a873663f4d968428a5e70d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-07 08:03 UTC by rvcsaba
Modified: 2024-11-27 21:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-27 21:34:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: mountinfo (3.91 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: backtrace (81.38 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: open_fds (4.37 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: cpuinfo (3.15 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: exploitable (81 bytes, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: core_backtrace (39.91 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: maps (3.98 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: os_info (687 bytes, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: dso_list (397 bytes, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: environ (2.80 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: proc_pid_status (1.47 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details
File: limits (1.29 KB, text/plain)
2023-10-07 08:04 UTC, rvcsaba
no flags Details

Description rvcsaba 2023-10-07 08:03:58 UTC
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

Comment 1 rvcsaba 2023-10-07 08:04:03 UTC
Created attachment 1992621 [details]
File: mountinfo

Comment 2 rvcsaba 2023-10-07 08:04:04 UTC
Created attachment 1992622 [details]
File: backtrace

Comment 3 rvcsaba 2023-10-07 08:04:06 UTC
Created attachment 1992623 [details]
File: open_fds

Comment 4 rvcsaba 2023-10-07 08:04:07 UTC
Created attachment 1992624 [details]
File: cpuinfo

Comment 5 rvcsaba 2023-10-07 08:04:09 UTC
Created attachment 1992625 [details]
File: exploitable

Comment 6 rvcsaba 2023-10-07 08:04:11 UTC
Created attachment 1992626 [details]
File: core_backtrace

Comment 7 rvcsaba 2023-10-07 08:04:12 UTC
Created attachment 1992627 [details]
File: maps

Comment 8 rvcsaba 2023-10-07 08:04:14 UTC
Created attachment 1992628 [details]
File: os_info

Comment 9 rvcsaba 2023-10-07 08:04:16 UTC
Created attachment 1992629 [details]
File: dso_list

Comment 10 rvcsaba 2023-10-07 08:04:17 UTC
Created attachment 1992630 [details]
File: environ

Comment 11 rvcsaba 2023-10-07 08:04:19 UTC
Created attachment 1992631 [details]
File: proc_pid_status

Comment 12 rvcsaba 2023-10-07 08:04:20 UTC
Created attachment 1992632 [details]
File: limits

Comment 13 H.Janssen 2023-10-16 10:51:17 UTC
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.

Comment 14 rvcsaba 2023-10-20 19:59:59 UTC
You build anjuta-3.34.0-21.fc39 with this patch?

(In reply to H.Janssen from comment #13)
> Problem can be solved by:

Comment 15 H.Janssen 2023-10-22 08:35:36 UTC
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.

Comment 16 Aoife Moloney 2024-11-27 21:34:05 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.