Wireshark-bugs: [Wireshark-bugs] [Bug 7318] assertion failed when I quit wireshark without stopp
Date: Fri, 28 Sep 2012 03:50:36 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7318

Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #29 from Jakub Zawadzki <darkjames-ws@xxxxxxxxxxxx> 2012-09-28 03:50:36 PDT ---
With debug patch:

*** [...] ****
Removing pipe from main loop
Reading from sync pipe: fd=8
Got indicator 'P' from sync pipe
*** nothing more ***

Problem is that we removed pipe from main loop, and not added it back (so we
don't receive 'D' from pipe)


We haven't add it back, cause sync_pipe_input_cb not returned (yet):
#37 0x000000000043f5ed in sync_pipe_input_cb (source=8, user_data=0x8b0b80) at
capture_sync.c:1695

cause of processing UI events:
#34 0x00007fbd67144d81 in gtk_main_iteration () from
/usr/lib64/libgtk-x11-2.0.so.0

which happens to be closing wireshark:
#7  0x000000000047148f in file_quit_cmd_cb ()

which waits for cf->state change, and cf->state is not changed cause we won't
read 'D' from pipe (pipe removed from main loop).
#4  0x000000000055f6a6 in do_capture_stop ()

Full backtrace:
#0  0x00007fbd637cd263 in poll () from /lib64/libc.so.6
#1  0x00007fbd643acc6d in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fbd643ad0e4 in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#3  0x00007fbd67144d81 in gtk_main_iteration () from
/usr/lib64/libgtk-x11-2.0.so.0
#4  0x000000000055f6a6 in do_capture_stop ()
#5  0x000000000055cef6 in test_file_close ()
#6  0x000000000055d863 in do_file_close ()
#7  0x000000000047148f in file_quit_cmd_cb ()
#8  0x00007fbd64ebc2aa in g_closure_invoke () from
/usr/lib64/libgobject-2.0.so.0
#9  0x00007fbd64ed3370 in ?? () from /usr/lib64/libgobject-2.0.so.0
#10 0x00007fbd64ed4868 in g_signal_emit_valist () from
/usr/lib64/libgobject-2.0.so.0
#11 0x00007fbd64ed4df3 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#12 0x00007fbd670832c3 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#13 0x00007fbd67085999 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#14 0x00007fbd64ebc2aa in g_closure_invoke () from
/usr/lib64/libgobject-2.0.so.0
#15 0x00007fbd64ed3370 in ?? () from /usr/lib64/libgobject-2.0.so.0
#16 0x00007fbd64ed467c in g_signal_emit_valist () from
/usr/lib64/libgobject-2.0.so.0
#17 0x00007fbd64ed4df3 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#18 0x00007fbd6707f4a4 in gtk_accel_group_activate () from
/usr/lib64/libgtk-x11-2.0.so.0
#19 0x00007fbd6707f5ad in gtk_accel_groups_activate () from
/usr/lib64/libgtk-x11-2.0.so.0
#20 0x00007fbd67275cd3 in gtk_window_activate_key () from
/usr/lib64/libgtk-x11-2.0.so.0
#21 0x00007fbd67275d59 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#22 0x00007fbd6714b518 in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#23 0x00007fbd64ebc2aa in g_closure_invoke () from
/usr/lib64/libgobject-2.0.so.0
#24 0x00007fbd64ed2fb3 in ?? () from /usr/lib64/libgobject-2.0.so.0
#25 0x00007fbd64ed467c in g_signal_emit_valist () from
/usr/lib64/libgobject-2.0.so.0
#26 0x00007fbd64ed4df3 in g_signal_emit () from /usr/lib64/libgobject-2.0.so.0
#27 0x00007fbd67261bff in ?? () from /usr/lib64/libgtk-x11-2.0.so.0
#28 0x00007fbd67143a54 in gtk_propagate_event () from
/usr/lib64/libgtk-x11-2.0.so.0
#29 0x00007fbd67144a3b in gtk_main_do_event () from
/usr/lib64/libgtk-x11-2.0.so.0
#30 0x00007fbd66db7b4c in ?? () from /usr/lib64/libgdk-x11-2.0.so.0
#31 0x00007fbd643ac5c9 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#32 0x00007fbd643acf18 in ?? () from /usr/lib64/libglib-2.0.so.0
#33 0x00007fbd643ad0e4 in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#34 0x00007fbd67144d81 in gtk_main_iteration () from
/usr/lib64/libgtk-x11-2.0.so.0
#35 0x000000000046d0f2 in main_window_update () at gui_utils.c:647
#36 0x00000000004425ca in capture_input_new_packets ()
#37 0x000000000043f5ed in sync_pipe_input_cb (source=8, user_data=0x8b0b80) at
capture_sync.c:1695
#38 0x000000000046d27f in pipe_input_cb (source=0x2736200, condition=G_IO_IN,
data=0x897480) at gui_utils.c:778
#39 0x00007fbd643ac5c9 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#40 0x00007fbd643acf18 in ?? () from /usr/lib64/libglib-2.0.so.0
#41 0x00007fbd643ad445 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#42 0x00007fbd67144ed7 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#43 0x0000000000473610 in main ()

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.