Wireshark-bugs: [Wireshark-bugs] [Bug 11553] Duplicated Interfaces instances while refreshing
Date: Sat, 19 Mar 2016 08:53:19 +0000
Mikael Kanstrup changed bug 11553
What | Removed | Added |
---|---|---|
CC | [email protected] |
Comment # 2
on bug 11553
from Mikael Kanstrup
I reproduced this on master while investigating bug 12263. The problem is that update_cb of scan_local_interfaces recursively callbacks via UI events into itself. Backtrace below: (gdb) b ui/iface_lists.c:85 Breakpoint 1 at 0x50e5e0: file iface_lists.c, line 85. (gdb) s The program is not being run. (gdb) run Starting program: /home/CORPUSERS/23047419/myrepos/wireshark/.libs/wireshark-gtk [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffde621700 (LWP 26130)] Breakpoint 1, scan_local_interfaces (update_cb=0x43f960 <main_window_update>) at iface_lists.c:85 85 char* a = g_strdup_printf("DUMMY LINE HERE FOR GDB\n"); (gdb) bt #0 scan_local_interfaces (update_cb=0x43f960 <main_window_update>) at iface_lists.c:85 #1 0x00000000004c6e10 in refresh_local_interface_lists () at capture_dlg.c:6135 #2 0x00007ffff0f5855f in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #3 0x00007ffff0f71088 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #4 0x00007ffff0f71ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #5 0x00007ffff1e9d7e8 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #6 0x00007ffff0f58332 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #7 0x00007ffff0f69557 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #8 0x00007ffff0f71a29 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #9 0x00007ffff0f71ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #10 0x00007ffff1e9c6a1 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #11 0x00007ffff1f67d3e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #12 0x00007ffff0f5855f in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #13 0x00007ffff0f71088 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #14 0x00007ffff0f71ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #15 0x00007ffff2090974 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #16 0x00007ffff1f6608c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #17 0x00007ffff1f6791a in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #18 0x00007ffff1b6bc22 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #19 0x00007ffff0c88e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #20 0x00007ffff0c89048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #21 0x00007ffff0c890ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #22 0x00007ffff1f66ec5 in gtk_main_iteration () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #23 0x000000000043f975 in main_window_update () at gui_utils.c:560 #24 0x000000000050637d in sync_pipe_open_command (argv=argv@entry=0x1e5b0a0, data_read_fd=data_read_fd@entry=0x7fffffffc060, message_read_fd=message_read_fd@entry=0x7fffffffc064, fork_child=fork_child@entry=0x7fffffffc068, msg=msg@entry=0x7fffffffc070, update_cb=update_cb@entry=0x43f960 <main_window_update>) at capture_sync.c:972 #25 0x0000000000506d2f in sync_pipe_run_command_actual (argv=argv@entry=0x1e5b0a0, data="" primary_msg=primary_msg@entry=0x7fffffffd5b0, secondary_msg=secondary_msg@entry=0x7fffffffd5b8, update_cb=update_cb@entry=0x43f960 <main_window_update>) at capture_sync.c:1034 #26 0x0000000000507022 in sync_pipe_run_command (argv=0x1e5b0a0, data="" primary_msg=primary_msg@entry=0x7fffffffd5b0, secondary_msg=secondary_msg@entry=0x7fffffffd5b8, update_cb=update_cb@entry=0x43f960 <main_window_update>) at capture_sync.c:1212 #27 0x0000000000507d6a in sync_if_capabilities_open (ifname=ifname@entry=0x1be0d40 "eth0", ---Type <return> to continue, or q <return> to quit--- monitor_mode=monitor_mode@entry=0, auth=auth@entry=0x0, data="" primary_msg=primary_msg@entry=0x7fffffffd5b0, secondary_msg=secondary_msg@entry=0x7fffffffd5b8, update_cb=update_cb@entry=0x43f960 <main_window_update>) at capture_sync.c:1361 #28 0x0000000000505fc0 in capture_get_if_capabilities (ifname=0x1be0d40 "eth0", monitor_mode=monitor_mode@entry=0, auth_string=auth_string@entry=0x0, err_str=err_str@entry=0x0, update_cb=update_cb@entry=0x43f960 <main_window_update>) at capture_ifinfo.c:250 #29 0x000000000050e157 in scan_local_interfaces (update_cb=0x43f960 <main_window_update>) at iface_lists.c:193 #30 0x00000000004c6e10 in refresh_local_interface_lists () at capture_dlg.c:6135 #31 0x00007ffff0f585e7 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #32 0x00007ffff0f71088 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #33 0x00007ffff0f71ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #34 0x00007ffff1e9d7e8 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #35 0x00007ffff0f583b8 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #36 0x00007ffff0f69557 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #37 0x00007ffff0f71a29 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #38 0x00007ffff0f71ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #39 0x00007ffff1e9c6a1 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #40 0x00007ffff1f67d3e in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #41 0x00007ffff0f585e7 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #42 0x00007ffff0f71088 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #43 0x00007ffff0f71ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 #44 0x00007ffff2090974 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #45 0x00007ffff1f6608c in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #46 0x00007ffff1f6791a in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #47 0x00007ffff1b6bc22 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 #48 0x00007ffff0c88e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #49 0x00007ffff0c89048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #50 0x00007ffff0c8930a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #51 0x00007ffff1f66e25 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 #52 0x0000000000425105 in main (argc=0, argv=0x7fffffffe640) at main.c:332
You are receiving this mail because:
- You are watching all bug changes.
- Prev by Date: [Wireshark-bugs] [Bug 12263] Crash on fast local interface changes
- Next by Date: [Wireshark-bugs] [Bug 9988] Unencrypted heartbeat requests are marked as encrypted
- Previous by thread: [Wireshark-bugs] [Bug 11843] [SIGSEGV] RTP Player crashes when attempted to play a stream
- Next by thread: [Wireshark-bugs] [Bug 9988] Unencrypted heartbeat requests are marked as encrypted
- Index(es):