[maverick] ERROR:capture.c:177:capture_start: assertion failed: (capture_opts->state == CAPTURE_STOPPED)

Bug #606063 reported by Dave Gilbert
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Wireshark
Fix Released
High
wireshark (Ubuntu)
Fix Released
Medium
Daniel T Chen
Declined for Maverick by Daniel T Chen

Bug Description

Binary package hint: wireshark

On Maverick, x86-64 in a root shell (from sudo -s)

run wireshark

Click on an interface (eth0, virbr0 or the meta device for everything)

it hangs for a few seconds and then asserts with:

ERROR:capture.c:177:capture_start: assertion failed: (capture_opts->state == CAPTURE_STOPPED)

backtrace:

(gdb) r
Starting program: /usr/bin/wireshark
[Thread debugging using libthread_db enabled]
**
ERROR:capture.c:177:capture_start: assertion failed: (capture_opts->state == CAPTURE_STOPPED)

Program received signal SIGABRT, Aborted.
0x00007fffefff4b85 in *__GI_raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
 in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) where
#0 0x00007fffefff4b85 in *__GI_raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007fffefff86d0 in *__GI_abort () at abort.c:92
#2 0x00007ffff1d02c34 in g_assertion_message () from /lib/libglib-2.0.so.0
#3 0x00007ffff1d031d0 in g_assertion_message_expr ()
   from /lib/libglib-2.0.so.0
#4 0x00007ffff7ecbe91 in capture_start (capture_opts=0x7ffff823c540)
    at capture.c:177
#5 0x00007ffff7f58222 in capture_start_confirmed () at capture_dlg.c:2319
#6 0x00007ffff7ef75c0 in welcome_if_press_cb (widget=<value optimised out>,
    event=<value optimised out>, data=0x7ffff90f7ec0) at main_welcome.c:553
#7 0x00007ffff413df23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#8 0x00007ffff259c5e9 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#9 0x00007ffff25b3da9 in ?? () from /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff25b536c in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff25b5d83 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff427002f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x00007ffff4134c33 in gtk_propagate_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007ffff4135e0b in gtk_main_do_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#15 0x00007ffff3d87bbc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#16 0x00007ffff1cdc522 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#17 0x00007ffff1ce0488 in ?? () from /lib/libglib-2.0.so.0
#18 0x00007ffff1ce063c in g_main_context_iteration ()
   from /lib/libglib-2.0.so.0
#19 0x00007ffff4136171 in gtk_main_iteration ()
   from /usr/lib/libgtk-x11-2.0.so.0
#20 0x00007ffff7ee49d5 in main_window_update () at gui_utils.c:570
#21 0x00007ffff7ed069f in cf_callback_invoke (event=0, data=0x7ffff822c320)
    at file.c:144
#22 0x00007ffff7ed3f0e in cf_close (cf=0x7ffff822c320) at file.c:391
#23 0x00007ffff7ecbda0 in capture_start (capture_opts=0x7ffff823c540)
    at capture.c:175
#24 0x00007ffff7f58222 in capture_start_confirmed () at capture_dlg.c:2319
#25 0x00007ffff7ef75c0 in welcome_if_press_cb (widget=<value optimised out>,
    event=<value optimised out>, data=0x7ffff90f7ec0) at main_welcome.c:553
#26 0x00007ffff413df23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00007ffff259c5e9 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#28 0x00007ffff25b3da9 in ?? () from /usr/lib/libgobject-2.0.so.0
#29 0x00007ffff25b536c in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#30 0x00007ffff25b5d83 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#31 0x00007ffff427002f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00007ffff4134c33 in gtk_propagate_event ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007ffff4135e0b in gtk_main_do_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#34 0x00007ffff3d87bbc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#35 0x00007ffff1cdc522 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#36 0x00007ffff1ce0488 in ?? () from /lib/libglib-2.0.so.0
#37 0x00007ffff1ce063c in g_main_context_iteration ()
   from /lib/libglib-2.0.so.0
#38 0x00007ffff4136171 in gtk_main_iteration ()
   from /usr/lib/libgtk-x11-2.0.so.0
#39 0x00007ffff7ee49d5 in main_window_update () at gui_utils.c:570
#40 0x00007ffff7ece4cf in sync_pipe_start (capture_opts=0x7ffff823c540)
    at capture_sync.c:558
#41 0x00007ffff7ecbe23 in capture_start (capture_opts=0x7ffff823c540)
    at capture.c:190
#42 0x00007ffff7f58222 in capture_start_confirmed () at capture_dlg.c:2319
#43 0x00007ffff7ef75c0 in welcome_if_press_cb (widget=<value optimised out>,
    event=<value optimised out>, data=0x7ffff90f7ec0) at main_welcome.c:553
#44 0x00007ffff413df23 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#45 0x00007ffff259c69e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#46 0x00007ffff25b3da9 in ?? () from /usr/lib/libgobject-2.0.so.0
#47 0x00007ffff25b536c in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#48 0x00007ffff25b5d83 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#49 0x00007ffff427002f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#50 0x00007ffff4134c33 in gtk_propagate_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#51 0x00007ffff4135e0b in gtk_main_do_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#52 0x00007ffff3d87bbc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#53 0x00007ffff1cdc522 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#54 0x00007ffff1ce0488 in ?? () from /lib/libglib-2.0.so.0
#55 0x00007ffff1ce0995 in g_main_loop_run () from /lib/libglib-2.0.so.0
#56 0x00007ffff41362c7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#57 0x00007ffff7ee9e4f in main (argc=0, argv=0x7fffffffe670) at main.c:2732
(gdb) q
A debugging session is active.

 Inferior 1 [process 11885] will be killed.

Quit anyway? (y or n) y

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: wireshark 1.2.9-1
ProcVersionSignature: Ubuntu 2.6.35-8.13daveg-generic 2.6.35-rc5
Uname: Linux 2.6.35-8-generic x86_64
Architecture: amd64
CheckboxSubmission: f2d10bd9f943a85b486a282e7840a570
CheckboxSystem: 0531969bcfd4f03af7405c98dc94a948
Date: Fri Jul 16 00:14:04 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: wireshark

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :
Revision history for this message
Gregor Beck (gb-sernet) wrote :

The eventhandler is called explicitly from several places to make the gui more responsive which may cause capture_start being called recursively.

The following patch makes it work for me.

tags: added: patch
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Hi Gregor,
  I've tried that patch and it seems to work nicely; thank you!
Looks like we should get that in, since at the moment wireshark is DOA.

Dave

Revision history for this message
Balint Reczey (rbalint) wrote :

Fix has been released in 1.4.0-1 in debian experimental and will be released in 1.2.12-1.

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

I assume given where we are in timescales that it's too late for Maverick? Will it go in as a maverick-update?

It's a shame that given that we've had a patch for over a month to a repeatable bug that leaves the package pretty broken, that it hasn't gone in.

Dave

Revision history for this message
Daniel T Chen (crimsun) wrote :
tags: added: patch-accepted-upstream
removed: patch
Changed in wireshark (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Daniel T Chen (crimsun)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wireshark - 1.2.11-1ubuntu0.1

---------------
wireshark (1.2.11-1ubuntu0.1) maverick; urgency=low

  * 22_lp606063-fix-assertion-capture_start.patch:
    Handle event handler being invoked recursively. Fix backported from
    upstream SVN r33906. Thanks, Gregor Beck!
    https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5126
    (LP: #606063)
 -- Daniel T Chen <email address hidden> Sun, 26 Sep 2010 15:56:54 -0400

Changed in wireshark (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Thanks Daniel - works great!

Dave

Changed in wireshark:
importance: Unknown → High
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.