GNOME Bugzilla – Bug 339055
GHex crash in search
Last modified: 2007-08-08 19:57:55 UTC
Steps to reproduce: 1. Ctrl+F 2. Click to right part of window (string entry) 3. Write a string 4. Move cursor to different position of string entry using mouse. Stack trace: See https://bugzilla.novell.com/show_bug.cgi?id=155494 Other information:
Created attachment 63888 [details] [review] ghex-search-crash.patch Possible fix. It seems to fix this problem. The problem could be 64-bit specific. There can be more 64-bit specific problem related to implicit declarations, but I did not experienced any crash yet: hex-document-ui.c: In function 'find_cb': hex-document-ui.c:86: warning: implicit declaration of function 'raise_and_focus_widget' preferences.c: In function 'select_display_font_cb': preferences.c:513: warning: implicit declaration of function 'display_error_dialog' main.c:74: warning: implicit declaration of function 'ghex_init_configuration' main.c:75: warning: implicit declaration of function 'ghex_load_configuration' print.c: In function 'print_verify_fonts': print.c:226: warning: implicit declaration of function 'display_error_dialog' print.c:226: warning: implicit declaration of function 'ghex_window_get_active' ghex-window.c: In function 'ghex_window_close': ghex-window.c:161: warning: implicit declaration of function 'delete_advanced_find_dialog'
(In reply to comment #1) > Created an attachment (id=63888) [edit] > ghex-search-crash.patch > > Possible fix. It seems to fix this problem. The problem could be 64-bit > specific. Confirmed on FC5. Will apply the patch to the Fedora Extras package.
Fixed in SVN. Thanks for the patch Stanislav. Looks to be 64-bit only indeed. I was not able to reproduce on 32-bit. The error in the code seems obvious though.