Bug#373712: ghex: Freezes when a search reaches the end of a file

Steven Barker BlckKnght at gmail.com
Thu Jun 15 08:29:39 UTC 2006


Package: ghex
Version: 2.8.2-3
Severity: important


Steps to reproduce:

1. Start ghex
2. Open a file
3. Choose "Find" from the Edit menu
4. Enter any hex or ASCII value that does not exist in the file you
opened and click either "Find Next" or "Find Previous"
5. Freeze!  A message about memory corruption printed to stderr

>From cursory examination it looks to be some kind of issue with
gettext, but as I am totally unfamilliar with that system I've not
investigated very far.

GDB backtrace (of an unstripped copy, compiled from source package):

steve at mcmurphy:~/src/ghex-2.8.2/src$ LD_LIBRARY_PATH=/usr/lib/debug gdb .libs/lt-ghex2
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".

(gdb) run
Starting program: /home/steve/src/ghex-2.8.2/src/.libs/lt-ghex2
[Thread debugging using libthread_db enabled]
[New Thread 46912582011472 (LWP 13712)]
[New Thread 1074006368 (LWP 13715)]
[New Thread 1082399072 (LWP 13716)]
[Thread 1082399072 (LWP 13716) exited]
*** glibc detected *** malloc(): memory corruption: 0x0000000000972610 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread 46912582011472 (LWP 13712)]
0x00002aaaae3f6de0 in *__GI_raise () from /usr/lib/debug/libc.so.6
(gdb) bt
#0  0x00002aaaae3f6de0 in *__GI_raise () from /usr/lib/debug/libc.so.6
#1  0x00002aaaae3f8290 in *__GI_abort () from /usr/lib/debug/libc.so.6
#2  0x00002aaaae42d01e in __libc_message () from /usr/lib/debug/libc.so.6
#3  0x00002aaaae4338aa in _int_malloc () from /usr/lib/debug/libc.so.6
#4  0x00002aaaae434cfb in *__GI___libc_malloc () from /usr/lib/debug/libc.so.6
#5  0x00002aaaae3f3ce2 in _nl_make_l10nflist () from /usr/lib/debug/libc.so.6
#6  0x00002aaaae3f1e20 in _nl_find_domain () from /usr/lib/debug/libc.so.6
#7  0x00002aaaae3f1800 in __dcigettext () from /usr/lib/debug/libc.so.6
#8  0x000000000040e911 in find_next_cb (button=<value optimized out>, dialog=0x95b950) at findreplace.c:547
#9  0x00002aaaadccf910 in IA__g_closure_invoke (closure=0x8f0750, return_value=dwarf2_read_address: Corrupted DWARF expression.
) at gclosure.c:490
#10 0x00002aaaadcdeaf2 in signal_emit_unlocked_R (node=0x86f9f0, detail=0, instance=0x879500, emission_return=0x0,
    instance_and_params=0x7fffffe50490) at gsignal.c:2438
#11 0x00002aaaadcdffcc in IA__g_signal_emit_valist (instance=0x879500, signal_id=<value optimized out>, detail=0,
    var_args=0x7fffffe50710) at gsignal.c:2197
#12 0x00002aaaadce0383 in IA__g_signal_emit (instance=0x3590, signal_id=13712, detail=6) at gsignal.c:2241
#13 0x00002aaaac5c6c0a in gtk_button_key_release (widget=0x3590, event=<value optimized out>) at gtkbutton.c:1310
#14 0x00002aaaac67f5e0 in _gtk_marshal_BOOLEAN__BOXED (closure=0x6cc470, return_value=0x7fffffe50a00,
    n_param_values=<value optimized out>, param_values=0x7fffffe50b00, invocation_hint=<value optimized out>,
    marshal_data=0x2aaaac5c6bd0) at gtkmarshalers.c:83
#15 0x00002aaaadccf910 in IA__g_closure_invoke (closure=0x6cc470, return_value=dwarf2_read_address: Corrupted DWARF expression.
) at gclosure.c:490
#16 0x00002aaaadcdec9d in signal_emit_unlocked_R (node=0x6cc4e0, detail=0, instance=0x879500,
    emission_return=0x7fffffe50d20, instance_and_params=0x7fffffe50b00) at gsignal.c:2476
#17 0x00002aaaadcdfd0c in IA__g_signal_emit_valist (instance=0x879500, signal_id=<value optimized out>, detail=0,
    var_args=0x7fffffe50d80) at gsignal.c:2207
#18 0x00002aaaadce0383 in IA__g_signal_emit (instance=0x3590, signal_id=13712, detail=6) at gsignal.c:2241
#19 0x00002aaaac75e1c5 in gtk_widget_event_internal (widget=0x879500, event=0x8f9aa0) at gtkwidget.c:3751
#20 0x00002aaaac67dae3 in IA__gtk_propagate_event (widget=0x879500, event=0x8f9aa0) at gtkmain.c:2161
#21 0x00002aaaac67de67 in IA__gtk_main_do_event (event=0x8f9aa0) at gtkmain.c:1424
#22 0x00002aaaac9c92ac in gdk_event_dispatch (source=<value optimized out>, callback=<value optimized out>,
    user_data=<value optimized out>) at gdkevents-x11.c:2291
#23 0x00002aaaae033afd in IA__g_main_context_dispatch (context=0x577960) at gmain.c:1916
#24 0x00002aaaae036dc5 in g_main_context_iterate (context=0x577960, block=1, dispatch=1, self=<value optimized out>)
    at gmain.c:2547
#25 0x00002aaaae03708a in IA__g_main_loop_run (loop=0x7767e0) at gmain.c:2751
#26 0x00002aaaab5cd395 in bonobo_main () from /usr/lib64/libbonobo-2.so.0
#27 0x0000000000410c5d in main (argc=1, argv=0x6d8000) at main.c:127
(gdb) up 8
#8  0x000000000040e911 in find_next_cb (button=<value optimized out>, dialog=0x95b950) at findreplace.c:547
547                     ghex_window_flash(win, _("End Of File reached"));
(gdb) l
542                                                                      gh->cursor_pos+1, str, str_len, &offset))
543             {
544                     gtk_hex_set_cursor(gh, offset);
545             }
546             else {
547                     ghex_window_flash(win, _("End Of File reached"));
548                     display_info_dialog(win, _("String was not found!\n"));
549             }
550             if(NULL != str)
551                     g_free(str);

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages ghex depends on:
ii  gconf2                     2.14.0-1      GNOME configuration database syste
ii  libart-2.0-2               2.3.17-1      Library of functions for 2D graphi
ii  libatk1.0-0                1.11.4-2      The ATK accessibility toolkit
ii  libbonobo2-0               2.14.0-1      Bonobo CORBA interfaces library
ii  libbonoboui2-0             2.14.0-2      The Bonobo UI library
ii  libc6                      2.3.6-15      GNU C Library: Shared libraries
ii  libcairo2                  1.0.4-2       The Cairo 2D vector graphics libra
ii  libfontconfig1             2.3.2-7       generic font configuration library
ii  libgconf2-4                2.14.0-1      GNOME configuration database syste
ii  libglib2.0-0               2.10.3-1      The GLib library of C routines
ii  libgnome-keyring0          0.4.9-1       GNOME keyring services library
ii  libgnome2-0                2.14.1-2      The GNOME 2 library - runtime file
ii  libgnomecanvas2-0          2.14.0-2      A powerful object-oriented display
ii  libgnomeprint2.2-0         2.12.1-4      The GNOME 2.2 print architecture -
ii  libgnomeprintui2.2-0       2.12.1-3      GNOME 2.2 print architecture User 
ii  libgnomeui-0               2.14.1-1      The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0             2.14.2-1      GNOME virtual file-system (runtime
ii  libgtk2.0-0                2.8.18-1      The GTK+ graphical user interface 
ii  libgtkhex0                 2.8.2-3       GNOME Hex editor for files (shared
ii  libice6                    1:1.0.0-3     X11 Inter-Client Exchange library
ii  liborbit2                  1:2.14.0-1.1  libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0              1.12.3-1      Layout and rendering of internatio
ii  libpopt0                   1.10-2        lib for parsing cmdline parameters
ii  libsm6                     1:1.0.0-4     X11 Session Management library
ii  libx11-6                   2:1.0.0-6     X11 client-side library
ii  libxcursor1                1.1.5.2-5     X cursor management library
ii  libxext6                   1:1.0.0-4     X11 miscellaneous extension librar
ii  libxfixes3                 1:3.0.1.2-4   X11 miscellaneous 'fixes' extensio
ii  libxi6                     1:1.0.0-5     X11 Input extension library
ii  libxinerama1               1:1.0.1-4     X11 Xinerama extension library
ii  libxml2                    2.6.26.dfsg-1 GNOME XML library
ii  libxrandr2                 2:1.1.0.2-4   X11 RandR extension library
ii  libxrender1                1:0.9.0.2-4   X Rendering Extension client libra
ii  zlib1g                     1:1.2.3-11    compression library - runtime

ghex recommends no packages.

-- no debconf information





More information about the Pkg-gnome-maintainers mailing list