GNOME Bugzilla – Bug 110280
On FreeBSD, gedit segfaults every time the program is closed
Last modified: 2009-08-15 18:40:50 UTC
Package: gedit Severity: critical Version: GNOME2.2.0 2.2.1 os_details: Gnome.Org Synopsis: gedit segfaults every time the program is closed Bugzilla-Product: gedit Bugzilla-Component: general BugBuddy-GnomeVersion: 2.0 (2.2.0.1) Description: Description of Problem: when exiting from within the gedit application, a message appears indicating that the process has "crashed due to a fatal error. (segmentation fault)". files are saved properly prior to exit and closing and opening multiple files causes no problems. only when attempting to close the application does this persistent error occur. Steps to reproduce the problem: 1. open gedit 2. exit gedit 3. Actual Results: when exiting from within the gedit application, a message appears indicating that the process has "crashed due to a fatal error. (segmentation fault)" Expected Results: the program should exit cleanly How often does this happen? every time the "close window" is clicked OR the "quit" option is selected from within the "file" menu OR when the <ctrl>+q button combination is pressed Additional Information: Debugging Information: Backtrace was generated from '/usr/X11R6/bin/gedit' (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...0x28f7956c in __sys_poll () from /usr/lib/libc_r.so.4
+ Trace 35728
Thread 1 (process 44782, thread 1)
#3 0x0 in ?? () No symbol table info available. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-04-08 12:43 ------- The original reporter (foster@iname.com) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, maggi@athena.polito.it.
The included stack trace does not contain useful info. Please, try to run gedit with --debug and attach to the bug report the info gedit will print on the terminal.
following are the results of 'gedit --debug' piped to a text file : gedit-prefs-manager.c:330 (gedit_prefs_manager_init) gedit-prefs-manager.c:1121 (gedit_prefs_manager_get_max_recents) gedit-prefs-manager.c:420 (gedit_prefs_manager_get_int) gedit-plugins-engine.c:75 (gedit_plugins_engine_init) gedit-plugins-engine.c:105 (gedit_plugins_engine_load_all) gedit-plugins-engine.c:151 (gedit_plugins_engine_load_dir) DIR: /home/foster/.gedit-2/plugins/ gedit-plugins-engine.c:157 (gedit_plugins_engine_load_dir) No such file or directory gedit-plugins-engine.c:151 (gedit_plugins_engine_load_dir) DIR: /usr/X11R6/lib/gedit-2/plugins/ gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/ascii.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: ASCII table (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/diff.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Compare Files (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/docinfo.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Document Statistics (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/sample.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: User name (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/cvschangelog.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: CVS ChangeLog (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/indent.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Indent lines (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/taglist.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Tag list (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/time.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Insert Date/Time (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/shell_output.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Shell command (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/spell.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Spell checker (INSTALLED) gedit-plugins-engine.c:197 (gedit_plugins_engine_load) Loading plugin: /usr/X11R6/lib/gedit-2/plugins/sort.gedit-plugin gedit-plugins-engine.c:317 (gedit_plugins_engine_load) Plugin: Sort (INSTALLED) gedit-session.c:165 (gedit_session_init) gedit-mdi.c:363 (gedit_mdi_new) bonobo-mdi.c:363 (bonobo_mdi_instance_init) bonobo-mdi.c:389 (bonobo_mdi_instance_init) END gedit-mdi.c:288 (gedit_mdi_init) START gedit-mdi.c:328 (gedit_mdi_init) END gedit-session.c:196 (gedit_session_is_restored) gedit-session.c:203 (gedit_session_is_restored) NOT RESTORED bonobo-mdi.c:1892 (bonobo_mdi_open_toplevel) bonobo-mdi.c:1085 (app_clone) bonobo-mdi.c:1293 (app_create) gedit-mdi.c:383 (gedit_mdi_app_created_handler) gedit-mdi.c:1443 (gedit_window_prefs_new) gedit-prefs-manager.c:919 (gedit_prefs_manager_get_toolbar_visible) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-prefs-manager.c:929 (gedit_prefs_manager_get_toolbar_buttons_style) gedit-prefs-manager.c:434 (gedit_prefs_manager_get_string) gedit-prefs-manager.c:996 (gedit_prefs_manager_get_statusbar_visible) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-prefs-manager.c:1001 (gedit_prefs_manager_get_statusbar_show_cursor_position) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-prefs-manager.c:1006 (gedit_prefs_manager_get_statusbar_show_overwrite_mode) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-mdi.c:1462 (gedit_window_prefs_attach_to_window) gedit-mdi.c:811 (gedit_mdi_set_app_statusbar_style) gedit-mdi.c:1479 (gedit_window_prefs_get_from_window) gedit-mdi.c:713 (gedit_mdi_set_app_toolbar_style) gedit-mdi.c:1479 (gedit_window_prefs_get_from_window) gedit-mdi.c:765 (gedit_mdi_set_app_toolbar_style) GEDIT: SYSTEM gedit-plugins-engine.c:656 (gedit_plugins_engine_update_plugins_ui) gedit-plugins-engine.c:618 (gedit_plugins_engine_reactivate_all) indent.c:244 (init) indent.c:198 (activate) indent.c:170 (update_ui) shell_output.c:956 (init) shell_output.c:922 (activate) shell_output.c:908 (update_ui) spell.c:798 (init) spell.c:746 (activate) spell.c:707 (update_ui) sort.c:493 (init) sort.c:426 (activate) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Indent lines indent.c:170 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Shell command shell_output.c:908 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Spell checker spell.c:707 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Sort sort.c:464 (update_ui) gedit-plugins-engine.c:691 (gedit_plugins_engine_update_plugins_ui) END bonobo-mdi.c:1374 (app_create) END bonobo-mdi.c:1111 (app_clone) END bonobo-mdi.c:906 (book_create) bonobo-mdi.c:948 (book_create) END bonobo-mdi.c:1903 (bonobo_mdi_open_toplevel) END1 gedit-file.c:910 (gedit_file_open_from_stdin) gedit-file.c:87 (gedit_file_new) gedit-mdi-child.c:299 (gedit_mdi_child_new) gedit-mdi-child.c:165 (gedit_mdi_child_init) START gedit-mdi-child.c:169 (gedit_mdi_child_init) END gedit-document.c:360 (gedit_document_new) gedit-document.c:279 (gedit_document_init) gedit-undo-manager.c:263 (gedit_undo_manager_new) gedit-undo-manager.c:203 (gedit_undo_manager_init) gedit-prefs-manager.c:754 (gedit_prefs_manager_get_save_encoding) gedit-prefs-manager.c:434 (gedit_prefs_manager_get_string) gedit-document.c:128 (gedit_document_get_untitled_number) gedit-document.c:552 (gedit_document_get_short_name) gedit-mdi-child.c:313 (gedit_mdi_child_new) END bonobo-mdi.c:1710 (bonobo_mdi_add_child) gedit-mdi.c:932 (gedit_mdi_add_child_handler) bonobo-mdi.c:1739 (bonobo_mdi_add_child) END2 gedit-file.c:96 (gedit_file_new) Child added. bonobo-mdi.c:1476 (bonobo_mdi_add_view) gedit-mdi-child.c:354 (gedit_mdi_child_create_view) gedit-view.c:585 (gedit_view_new) START gedit-view.c:438 (gedit_view_init) gedit-prefs-manager.c:598 (gedit_prefs_manager_get_use_default_font) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-prefs-manager.c:603 (gedit_prefs_manager_get_editor_font) gedit-prefs-manager.c:434 (gedit_prefs_manager_get_string) gedit-view.c:824 (gedit_view_set_font) gedit-prefs-manager.c:609 (gedit_prefs_manager_get_use_default_colors) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-prefs-manager.c:849 (gedit_prefs_manager_get_wrap_mode) gedit-prefs-manager.c:434 (gedit_prefs_manager_get_string) gedit-view.c:859 (gedit_view_set_wrap_mode) gedit-prefs-manager.c:914 (gedit_prefs_manager_get_display_line_numbers) gedit-prefs-manager.c:406 (gedit_prefs_manager_get_bool) gedit-document.c:475 (gedit_document_is_readonly) gedit-view.c:655 (gedit_view_new) END: 1 gedit-mdi.c:950 (gedit_mdi_add_view_handler) gedit-view.c:1264 (gedit_view_get_gtk_text_view) bonobo-mdi.c:959 (book_add_view) gedit-mdi-child.c:615 (gedit_mdi_child_set_label) gedit-document.c:534 (gedit_document_get_uri) gedit-document.c:534 (gedit_document_get_uri) gedit-document.c:475 (gedit_document_is_readonly) gedit-view.c:538 (gedit_view_realize_cb) gedit-prefs-manager.c:899 (gedit_prefs_manager_get_tabs_size) gedit-prefs-manager.c:420 (gedit_prefs_manager_get_int) gedit-view.c:922 (gedit_view_set_tab_size) Tab size: 8 gedit-view.c:881 (gedit_view_calculate_real_tab_width) gedit-view.c:908 (gedit_view_calculate_real_tab_width) Tab width: 80 gedit-view.c:745 (gedit_view_get_document) gedit-view.c:1035 (gedit_view_update_cursor_position_statusbar) bonobo-mdi.c:982 (book_switch_page) bonobo-mdi.c:1225 (app_set_view) bonobo-mdi.c:1383 (set_active_view) gedit-view.c:154 (gedit_view_grab_focus) bonobo-mdi.c:982 (book_switch_page) bonobo-mdi.c:996 (book_switch_page) END gedit-view.c:1092 (gedit_view_cursor_moved) gedit-view.c:1035 (gedit_view_update_cursor_position_statusbar) gedit-view.c:1092 (gedit_view_cursor_moved) gedit-view.c:1035 (gedit_view_update_cursor_position_statusbar) bonobo-mdi.c:1410 (set_active_view) Emit child_changed gedit-mdi.c:1162 (gedit_mdi_child_changed_handler) gedit-mdi.c:1122 (gedit_mdi_set_active_window_title) gedit-document.c:534 (gedit_document_get_uri) gedit-document.c:1390 (gedit_document_get_modified) gedit-document.c:475 (gedit_document_is_readonly) bonobo-mdi.c:1415 (set_active_view) Emit view_changed gedit-mdi.c:1174 (gedit_mdi_view_changed_handler) gedit-mdi.c:1238 (gedit_mdi_set_active_window_verbs_sensitivity) gedit-plugins-engine.c:656 (gedit_plugins_engine_update_plugins_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Indent lines indent.c:170 (update_ui) gedit-document.c:475 (gedit_document_is_readonly) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Shell command shell_output.c:908 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Spell checker spell.c:707 (update_ui) gedit-document.c:475 (gedit_document_is_readonly) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Sort sort.c:464 (update_ui) gedit-document.c:475 (gedit_document_is_readonly) gedit-plugins-engine.c:691 (gedit_plugins_engine_update_plugins_ui) END gedit-document.c:475 (gedit_document_is_readonly) gedit-document.c:1557 (gedit_document_can_undo) gedit-undo-manager.c:347 (gedit_undo_manager_can_undo) gedit-document.c:1568 (gedit_document_can_redo) gedit-undo-manager.c:358 (gedit_undo_manager_can_redo) gedit-document.c:1390 (gedit_document_get_modified) gedit-view.c:1000 (gedit_view_set_cursor_position_statusbar) gedit-view.c:1035 (gedit_view_update_cursor_position_statusbar) gedit-view.c:1015 (gedit_view_set_overwrite_mode_statusbar) gedit-view.c:1103 (gedit_view_update_overwrite_mode_statusbar) bonobo-mdi.c:1419 (set_active_view) END2 bonobo-mdi.c:1231 (app_set_view) END bonobo-mdi.c:996 (book_switch_page) END bonobo-mdi.c:973 (book_add_view) END bonobo-mdi.c:1524 (bonobo_mdi_add_view) END2 gedit-file.c:100 (gedit_file_new) View added. gedit-view.c:154 (gedit_view_grab_focus) gedit-view.c:1092 (gedit_view_cursor_moved) gedit-view.c:1035 (gedit_view_update_cursor_position_statusbar) bonobo-mdi.c:1017 (toplevel_focus) bonobo-mdi.c:1122 (app_close_book) bonobo-mdi.c:1017 (toplevel_focus) bonobo-mdi.c:1836 (bonobo_mdi_remove_all) gedit-mdi.c:978 (gedit_mdi_remove_child_handler) gedit-document.c:519 (gedit_document_get_raw_uri) gedit-document.c:1390 (gedit_document_get_modified) bonobo-mdi.c:1766 (bonobo_mdi_remove_child) bonobo-mdi.c:1620 (bonobo_mdi_remove_view) bonobo-mdi.c:1225 (app_set_view) bonobo-mdi.c:1383 (set_active_view) bonobo-mdi.c:1410 (set_active_view) Emit child_changed gedit-mdi.c:1162 (gedit_mdi_child_changed_handler) gedit-mdi.c:1122 (gedit_mdi_set_active_window_title) bonobo-mdi.c:1415 (set_active_view) Emit view_changed gedit-mdi.c:1174 (gedit_mdi_view_changed_handler) gedit-mdi.c:1238 (gedit_mdi_set_active_window_verbs_sensitivity) gedit-plugins-engine.c:656 (gedit_plugins_engine_update_plugins_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Indent lines indent.c:170 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Shell command shell_output.c:908 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Spell checker spell.c:707 (update_ui) gedit-plugins-engine.c:677 (gedit_plugins_engine_update_plugins_ui) Updating UI of Sort sort.c:464 (update_ui) gedit-plugins-engine.c:691 (gedit_plugins_engine_update_plugins_ui) END gedit-view.c:1000 (gedit_view_set_cursor_position_statusbar) gedit-view.c:1015 (gedit_view_set_overwrite_mode_statusbar) bonobo-mdi.c:1419 (set_active_view) END2 bonobo-mdi.c:1231 (app_set_view) END gedit-view.c:510 (gedit_view_finalize) 0 gedit-view.c:532 (gedit_view_finalize) END bonobo-mdi.c:1678 (bonobo_mdi_remove_view) END2 gedit-mdi-child.c:177 (gedit_mdi_child_finalize) START gedit-document.c:317 (gedit_document_finalize) gedit-document.c:157 (gedit_document_release_untitled_number) gedit-undo-manager.c:223 (gedit_undo_manager_finalize) gedit-mdi-child.c:193 (gedit_mdi_child_finalize) END bonobo-mdi.c:1810 (bonobo_mdi_remove_child) END2 bonobo-mdi.c:1871 (bonobo_mdi_remove_all) END2 bonobo-mdi.c:1237 (app_destroy) gedit-mdi.c:529 (gedit_mdi_app_destroy_handler) gedit-prefs-manager.c:1553 (gedit_prefs_manager_save_window_size_and_state) bonobo-mdi.c:1245 (app_destroy) END gedit-file.c:556 (gedit_file_exit) gedit-file.c:540 (gedit_file_close_all) bonobo-mdi.c:1836 (bonobo_mdi_remove_all) bonobo-mdi.c:1871 (bonobo_mdi_remove_all) END2 gedit-mdi.c:1238 (gedit_mdi_set_active_window_verbs_sensitivity) gedit-file.c:561 (gedit_file_exit) All files closed. bonobo-mdi.c:347 (bonobo_mdi_destroy) bonobo-mdi.c:1836 (bonobo_mdi_remove_all) bonobo-mdi.c:1871 (bonobo_mdi_remove_all) END2 gedit-file.c:565 (gedit_file_exit) Unref gedit_mdi. gedit-file.c:569 (gedit_file_exit) Unref gedit_mdi: DONE gedit-file.c:571 (gedit_file_exit) Unref gedit_app_server. gedit-file.c:575 (gedit_file_exit) Unref gedit_app_server: DONE gedit-prefs-manager.c:393 (gedit_prefs_manager_shutdown) gedit-plugins-engine.c:446 (gedit_plugins_engine_shutdown) gedit-plugins-engine.c:462 (gedit_plugins_engine_shutdown) Destroy plugin Shell command shell_output.c:895 (destroy)
I'm still not able to understand why and where this crash happens to you. Could you give me some detail about your system? You should find a list of useful info in the gedit README file.
It looks like the reporter is using FreeBSD and that this is likely a FreeBSD issue. See bug 100709 (and specifically, smkelly@zombie.org's comments in that bug) for more details. This can probably just be marked as a duplicate of that bug...
The following comment from 100709 may be relevant: "It turns out this was an accidental FreeBSD ABI change during the import of gcc-3.2.1. div(), a structure returning function, was the culprit." Foster: is this the case?
*** Bug 111715 has been marked as a duplicate of this bug. ***
The exact same thing happens to me on FreeBSD 5.0. Perhaps it is a FreeBSD issue? Additionally, I just installed 2.3.0 on the same machine, and it starts and exits properly. If any more info is needed, either email me or message me on IRC (I'm usually in #gedit as EsKi).
<FreeBSDMarcus> EsKi: It's probably a pointer issue. If you ln -s aj /etc/malloc.conf, the crash should go away. I haven't tested this here, but it's worth a try.
*** Bug 122744 has been marked as a duplicate of this bug. ***
*** Bug 123480 has been marked as a duplicate of this bug. ***
*** Bug 120750 has been marked as a duplicate of this bug. ***
*** Bug 127479 has been marked as a duplicate of this bug. ***
*** Bug 128392 has been marked as a duplicate of this bug. ***
*** Bug 129936 has been marked as a duplicate of this bug. ***
hmmm... FreeBSD guys: can I close it as NOTGNOME? Is this crash really caused by a FreeBSD problem and not by a gedit one as suggested in the similar bug #100709?
*** Bug 130531 has been marked as a duplicate of this bug. ***
FreeBSD guys ??? Please!
We were seeing a problem where gedit would crash on exit if the spell checker plug-in was loaded. This has since gone away, and I haven't heard of recent complaints. I would urge all users still having the problem to build the latest gedit-2.4.1 from ports (along with the other dependency bits), and see if the problem persists. If it does, have them add: CFLAGS= -O -g -pipe STRIP= To /etc/make.conf, and rebuild gedit. Then we should be able to run gedit within gdb, and get a usable stack trace with symbols.
Closing it. Feel free to reopen it if you still see it in gedit 2.x.y with x >= 4.
*** Bug 131669 has been marked as a duplicate of this bug. ***
*** Bug 135298 has been marked as a duplicate of this bug. ***