Subject: ettercap-gtk: GUI crash on x86_64 while scanning the hosts.
Package: ettercap-gtk
Version: 1:0.7.3-2.1
Severity: important
Steps to reproduce:
1. start ettercap -G as root;
2. on menu: Sniff -> unified sniffing;
3. select the proper interface;
4. on menu: Hosts -> Scan for hosts;
5. Crashes once the progress bar window disappears.
Patch attached.
#0 0x00007ffff604af34 in gdk_window_set_geometry_hints () from
/usr/lib/libgdk-x11-2.0.so.0
#1 0x00007ffff64fc355 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#2 0x00007ffff4388e7e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#3 0x00007ffff439a6e8 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x00007ffff43a3d05 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#5 0x00007ffff43a3ed3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#6 0x00007ffff6351c60 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#7 0x00007ffff5ffa126 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#8 0x00007ffff3ec54a3 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#9 0x00007ffff3ec5c80 in ?? () from /lib/libglib-2.0.so.0
#10 0x00007ffff3ec62f2 in g_main_loop_run () from /lib/libglib-2.0.so.0
#11 0x00007ffff63ce2b7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#12 0x000000000046705a in gtkui_start () at ec_gtk.c:441
#13 0x00000000004353ad in ui_start () at ec_ui.c:79
#14 0x000000000042395d in main (argc=2, argv=0x7fffffffe388) at ec_main.c:173
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages ettercap-gtk depends on:
pn ettercap-common <none> (no description available)
ii libatk1.0-0 2.0.0-1 The ATK accessibility toolkit
ii libc6 2.11.2-13 Embedded GNU C Library: Shared lib
ii libcairo2 1.10.2-6 The Cairo 2D vector graphics libra
ii libfontconfig1 2.8.0-2.2 generic font configuration library
ii libfreetype6 2.4.4-1 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.28.6-1 The GLib library of C routines
ii libgtk2.0-0 2.24.4-3 The GTK+ graphical user interface
ii libltdl7 2.4-2 A system independent dlopen wrappe
ii libncurses5 5.9-1 shared libraries for terminal hand
ii libnet1 1.1.4-2 library for the construction and h
ii libpango1.0-0 1.28.3-6 Layout and rendering of internatio
ii libpcap0.8 1.1.1-3 system interface for user-level pa
ii libpcre3 8.12-3 Perl 5 Compatible Regular Expressi
ii libssl0.9.8 0.9.8o-7 SSL shared libraries
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages ettercap-gtk recommends:
ii gksu 2.0.2-5 graphical frontend to su
ettercap-gtk suggests no packages.
--
Lorenzo Calabro'
http://www.debian.org ~ The Universal Operating System
--- src/interfaces/gtk/ec_gtk.c.orig 2011-04-20 16:14:23.000000000 +0200
+++ src/interfaces/gtk/ec_gtk.c 2011-04-20 16:15:13.000000000 +0200
@@ -375,6 +375,9 @@
* when 100%, destroy it
*/
if (value == max) {
+#ifndef OS_MINGW
+ gdk_threads_enter();
+#endif
gtk_widget_destroy(progress_dialog);
progress_dialog = NULL;
progress_bar = NULL;