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 326184 - gnome-nettool 1.4.1 segfaults when called from the commandline with wrong or incomplete arguments.
gnome-nettool 1.4.1 segfaults when called from the commandline with wrong or ...
Status: RESOLVED FIXED
Product: gnome-nettool
Classification: Applications
Component: general
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: Germán Poo-Caamaño
Rodrigo Moya
Depends on:
Blocks:
 
 
Reported: 2006-01-08 10:43 UTC by Daniel Holbach
Modified: 2006-03-16 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (975 bytes, patch)
2006-03-15 19:44 UTC, Paolo Borelli
committed Details | Review

Description Daniel Holbach 2006-01-08 10:43:20 UTC
Forwarded from: http://bugzilla.ubuntu.com/show_bug.cgi?id=18097

gnome-nettool 1.4.1 segfaults when called from the commandline with wrong or
incomplete arguments. 

Works:
$ gnome-nettool -l www.aap.nl
$ gnome-nettool -p www.aap.nl
$ gnome-nettool --ping=www.aap.nl
$ gnome-nettool --ping=

The latter options pops up a window "a network address was not specified". Nice!

Segmentations fault occur with:
$ gnome-nettool -l
$ gnome-nettool -p
$ gnome-nettool --ping
$ gnome-nettool -help
$ gnome-nettool --random-string

This is not a catastrophic bug, but it's a bug.


Thread 1 (Thread 46912547468496 (LWP 31265))

  • #0 IA__gdk_keymap_get_direction
    at gdkkeys-x11.c line 612
  • #1 gtk_text_view_check_keymap_direction
    at gtktextview.c line 5788
  • #2 gtk_text_view_ensure_layout
    at gtktextview.c line 5853
  • #3 gtk_text_view_update_layout_width
    at gtktextview.c line 1819
  • #4 gtk_text_view_value_changed
    at gtktextview.c line 6639
  • #5 IA__g_closure_invoke
    at gclosure.c line 490
  • #6 signal_emit_unlocked_R
    at gsignal.c line 2476
  • #7 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #8 IA__g_signal_emit
    at gsignal.c line 2241
  • #9 IA__gtk_widget_set_scroll_adjustments
    at gtkwidget.c line 3802
  • #10 gtk_scrolled_window_add
    at gtkscrolledwindow.c line 1376
  • #11 IA__g_closure_invoke
    at gclosure.c line 490
  • #12 signal_emit_unlocked_R
    at gsignal.c line 2368
  • #13 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #14 IA__g_signal_emit
    at gsignal.c line 2241
  • #15 glade_standard_build_children
    at glade-xml.c line 1753
  • #16 glade_xml_set_common_params
    at glade-xml.c line 2072
  • #17 glade_xml_build_widget
    at glade-xml.c line 1862
  • #18 glade_standard_build_children
    at glade-xml.c line 1748
  • #19 glade_xml_set_common_params
    at glade-xml.c line 2072
  • #20 glade_xml_build_widget
    at glade-xml.c line 1862
  • #21 notebook_build_children
    at glade-gtk.c line 657
  • #22 glade_xml_set_common_params
    at glade-xml.c line 2072
  • #23 glade_xml_build_widget
    at glade-xml.c line 1862
  • #24 glade_standard_build_children
    at glade-xml.c line 1748
  • #25 glade_xml_set_common_params
    at glade-xml.c line 2072
  • #26 glade_xml_build_widget
    at glade-xml.c line 1862
  • #27 glade_standard_build_children
    at glade-xml.c line 1748
  • #28 glade_xml_set_common_params
    at glade-xml.c line 2072
  • #29 glade_xml_build_widget
    at glade-xml.c line 1862
  • #30 glade_xml_build_interface
    at glade-xml.c line 1172
  • #31 glade_xml_construct
    at glade-xml.c line 192
  • #32 glade_xml_new
    at glade-xml.c line 155
  • #33 main
    at main.c line 135

Comment 1 François Charette 2006-02-12 16:11:20 UTC
I have already filed a comment on ubuntu (https://launchpad.net/distros/ubuntu/+source/gnome-nettool/+bug/24242)
where I mentioned that I suspect the problem to relate to my WLAN driver. 
Now I thought the following gdb output might be useful:

(gdb) run
Starting program: /usr/bin/gnome-nettool
[...]
[Thread debugging using libthread_db enabled]
[New Thread -1219249568 (LWP 11742)]
[...]
*** glibc detected *** double free or corruption (!prev): 0x0829ab00 ***

Program received signal SIGABRT, Aborted.

Thread NaN (LWP 11742)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 __fsetlocking
    from /lib/tls/i686/cmov/libc.so.6
  • #4 malloc_trim
    from /lib/tls/i686/cmov/libc.so.6
  • #5 free
    from /lib/tls/i686/cmov/libc.so.6
  • #6 g_free
    from /usr/lib/libglib-2.0.so.0
  • #7 info_get_nic
  • #8 info_nic_changed
  • #9 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_stop_emission
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #13 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0
  • #14 gtk_combo_box_get_column_span_column
    from /usr/lib/libgtk-x11-2.0.so.0
  • #15 gtk_combo_box_set_active
    from /usr/lib/libgtk-x11-2.0.so.0
  • #16 info_load_iface
  • #17 load_info_widgets_from_xml
  • #18 main

Comment 2 Paolo Borelli 2006-03-15 19:44:12 UTC
Created attachment 61315 [details] [review]
patch

fix the issue by handling failure of gtk_init_with_args
Comment 3 Rodrigo Moya 2006-03-16 10:20:54 UTC
Patch committed to HEAD