Description of problem: I opened my C project with Anjuta, and crashing it. It work on Fedora 37. Version-Release number of selected component: anjuta-1:3.34.0-18.fc38 Additional info: reporter: libreport-2.17.8 kernel: 6.2.7-300.fc38.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-18.fc38 rootdir: / cmdline: anjuta comment: I opened my C project with Anjuta, and crashing it. It work on Fedora 37. journald_cursor: s=270b1db72f19486aacc4ef24d92b681f;i=7c10c;b=e203610381df405b80359a985d4f2088;m=2042d35f;t=5f7786c3558b8;x=517dbd6269263a51 type: CCpp crash_function: iassist_remove executable: /usr/bin/anjuta reason: anjuta killed by SIGSEGV Truncated backtrace: Thread no. 1 (53 frames) #0 iassist_remove at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/sourceview/sourceview.c:2362 #1 parser_cxx_assist_uninstall at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/parser-cxx/parser-cxx-assist.c:929 #2 parser_cxx_assist_finalize(GObject*) at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/parser-cxx/parser-cxx-assist.c:951 #4 uninstall_support at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/parser-cxx/plugin.c:97 #6 on_value_removed_current_editor(AnjutaPlugin*, gchar const*, gpointer) at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/parser-cxx/plugin.c:150 #7 value_removed_cb at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/libanjuta/anjuta-plugin.c:386 #9 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3802 #12 anjuta_window_remove_value at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/src/anjuta-window.c:1107 #13 anjuta_window_add_value at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/src/anjuta-window.c:1034 #14 on_document_changed at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/document-manager/plugin.c:1183 #16 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3802 #23 gtk_notebook_switch_page at ../gtk/gtknotebook.c:6265 #24 gtk_notebook_set_current_page at ../gtk/gtknotebook.c:6848 #25 anjuta_docman_set_current_document at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/document-manager/anjuta-docman.c:1540 #27 anjuta_docman_add_document at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/document-manager/anjuta-docman.c:1386 #28 anjuta_docman_add_editor at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/document-manager/anjuta-docman.c:1354 #29 anjuta_docman_goto_file_line_mark at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/document-manager/anjuta-docman.c:1599 #31 iloader_load at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/file-loader/plugin.c:1468 #32 on_session_load at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/file-loader/plugin.c:1172 #35 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3802 #38 anjuta_shell_session_load at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/libanjuta/anjuta-shell.c:973 #39 on_profile_scoped at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/project-manager/plugin.c:1473 #41 signal_emit_unlocked_R.isra.0 at ../gobject/gsignal.c:3802 #44 anjuta_profile_load at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/libanjuta/anjuta-profile.c:1368 #46 anjuta_profile_manager_load_profiles.isra.0 at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/libanjuta/anjuta-profile-manager.c:269 #47 anjuta_profile_manager_queue_profile at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/libanjuta/anjuta-profile-manager.c:287 #48 ifile_open at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/project-manager/plugin.c:2470 #49 iloader_load at /usr/src/debug/anjuta-3.34.0-18.fc38.x86_64/plugins/file-loader/plugin.c:1468 #50 g_cclosure_marshal_VOID__OBJECTv at ../gobject/gmarshal.c:1910 #51 _g_closure_invoke_va at ../gobject/gclosure.c:895 #54 _gtk_marshal_VOID__INT_DOUBLE_DOUBLEv at gtk/gtkmarshalers.c:4804 #55 _g_closure_invoke_va at ../gobject/gclosure.c:895 #58 gtk_gesture_multi_press_begin at ../gtk/gtkgesturemultipress.c:242 #59 g_cclosure_marshal_VOID__BOXEDv at ../gobject/gmarshal.c:1686 #60 _g_closure_invoke_va at ../gobject/gclosure.c:895 #63 _gtk_gesture_set_recognized at ../gtk/gtkgesture.c:344 #65 _gtk_gesture_check_recognized at ../gtk/gtkgesture.c:390 #66 gtk_gesture_handle_event at ../gtk/gtkgesture.c:754 #67 gtk_gesture_single_handle_event at ../gtk/gtkgesturesingle.c:222 #68 gtk_event_controller_handle_event at ../gtk/gtkeventcontroller.c:230 #69 _gtk_widget_run_controllers at ../gtk/gtkwidget.c:7447 #70 _gtk_marshal_BOOLEAN__BOXEDv at gtk/gtkmarshalers.c:130 #71 _g_closure_invoke_va at ../gobject/gclosure.c:895 #74 gtk_widget_event_internal.part.0.lto_priv.0 at ../gtk/gtkwidget.c:7812 #75 propagate_event_up at ../gtk/gtkmain.c:2588 #76 propagate_event at ../gtk/gtkmain.c:2691 #77 gtk_propagate_event at ../gtk/gtkmain.c:2725 #78 gtk_main_do_event at ../gtk/gtkmain.c:1921 #80 _gdk_event_emit at ../gdk/gdkevents.c:73 #82 gdk_event_source_dispatch.lto_priv at ../gdk/x11/gdkeventsource.c:354 #85 g_main_context_iterate.isra.0 at ../glib/gmain.c:4276 #86 g_main_context_iteration at ../glib/gmain.c:4343 #87 g_application_run at ../gio/gapplication.c:2573
Created attachment 1952670 [details] File: mountinfo
Created attachment 1952671 [details] File: backtrace
Created attachment 1952672 [details] File: open_fds
Created attachment 1952673 [details] File: cpuinfo
Created attachment 1952674 [details] File: exploitable
Created attachment 1952675 [details] File: core_backtrace
Created attachment 1952676 [details] File: maps
Created attachment 1952677 [details] File: os_info
Created attachment 1952678 [details] File: dso_list
Created attachment 1952679 [details] File: environ
Created attachment 1952680 [details] File: proc_pid_status
Created attachment 1952681 [details] File: limits
1) Open a project 2) Double click main.c... and Anjuta crashing reporter: libreport-2.17.10 kernel: 6.3.3-200.fc38.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-18.fc38 rootdir: / cmdline: anjuta journald_cursor: s=49bbefa6555f49a6b4a192fe611f641a;i=d5ba8;b=9f9fd930dd85413f8778c3dc5f112309;m=21bb984a1;t=5fc622f16f654;x=bf2b8e09c6b987fc type: CCpp crash_function: iassist_remove executable: /usr/bin/anjuta reason: anjuta killed by SIGSEGV
Attempting to open a hello world C file reporter: libreport-2.17.11 type: CCpp reason: anjuta killed by SIGSEGV journald_cursor: s=2a41a82afe474108b8aa154e351b6e98;i=6f06b;b=2d0012a824a34fecb9536c1e9d3a4669;m=3ea5daa9;t=6008ecab91a6d;x=c29dd7451f77cec4 executable: /usr/bin/anjuta cmdline: /usr/bin/anjuta cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-gnome-anjuta-8000.scope rootdir: / uid: 1000 kernel: 6.3.12-200.fc38.x86_64 package: anjuta-1:3.34.0-18.fc38 runlevel: N 5 backtrace_rating: 4 crash_function: iassist_remove comment: Attempting to open a hello world C file
Confirm with F39 beta version anjuta-3.34.0-20.fc39.x86_64 Any "open" operation waits until "SEGV", unless you open by external program. Similar stack trace. Quick test shows that it works as expected with anjuta-3.34.0-16.fc37.x86_64 in a F37 VM.
Please see bug 2242593. (I drop Anjuta because this bug, I use Qt Creator.) (In reply to H.Janssen from comment #15) > Confirm with F39 beta version anjuta-3.34.0-20.fc39.x86_64 > Any "open" operation waits until "SEGV", unless you open by external program. > Similar stack trace. > > Quick test shows that it works as expected with anjuta-3.34.0-16.fc37.x86_64 > in a F37 VM.
Anjuta is fairly old. I do not know how good qtcreator is to develop GTK programs. For C++/QT it is great. The problem with anjuta is that in the Fedora version (not last Debian) a list is freed to unaccessible memory within the loop iterating over this list. By iterating over a copy of the list, it seems to work again, but I tested only with an 1-element list for the moment (.c file). See patch below. Another problem is that glade does not open, but that can easily be done externally. Also the python loader does not work, because a function in python 3.12 requires argv as w_char*, and the program offers a char*. So a conversion is needed. And libpython3.12 is not linked, so you immediately get an undefined symbol. The program needs an overhaul to be executed on current OS. diff /dev/shm/anjuta-3.34.0/plugins/sourceview/sourceview.c /home/hj/rpmbuild/BUILD/anjuta-3.34.0/plugins/sourceview/sourceview.c 2358,2359c2358,2360 < GList* node; < for (node = gtk_source_completion_get_providers(completion); node != NULL; node = g_list_next(node)) --- > GList* node=gtk_source_completion_get_providers(completion); > GList* cnode=g_list_copy(node); > for (cnode=g_list_first(cnode); cnode != NULL; cnode = g_list_next(cnode)) 2362c2363 < if (!SOURCEVIEW_IS_PROVIDER(node->data)) --- > if (!SOURCEVIEW_IS_PROVIDER(cnode->data)) 2364c2365 < prov = SOURCEVIEW_PROVIDER(node->data); --- > prov = SOURCEVIEW_PROVIDER(cnode->data); 2371c2372 < } --- > }
I usually write native C programs without a GUI. (In reply to H.Janssen from comment #17) > Anjuta is fairly old. I do not know how good qtcreator is to develop GTK > programs. For C++/QT it is great.
This message is a reminder that Fedora Linux 38 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 38 on 2024-05-21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '38'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Note that the version field may be hidden. Click the "Show advanced fields" button if you do not see it. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 38 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21. Fedora Linux 38 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.