After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339055 - GHex crash in search
GHex crash in search
Status: RESOLVED FIXED
Product: ghex
Classification: Applications
Component: general
2.8.x
Other All
: Normal critical
: ---
Assigned To: Jaka Mocnik
Jaka Mocnik
Depends on:
Blocks:
 
 
Reported: 2006-04-19 17:33 UTC by Stanislav Brabec
Modified: 2007-08-08 19:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ghex-search-crash.patch (333 bytes, patch)
2006-04-19 17:44 UTC, Stanislav Brabec
committed Details | Review

Description Stanislav Brabec 2006-04-19 17:33:40 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:
Comment 1 Stanislav Brabec 2006-04-19 17:44:26 UTC
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'
Comment 2 Thorsten Leemhuis 2006-08-09 06:08:36 UTC
(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.
Comment 3 Rodney Dawes 2007-08-08 19:57:55 UTC
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.