https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=14395

            Bug ID: 14395
           Summary: Wireshark -c with no argument sometimes hangs,
                    sometimes crashes
           Product: Wireshark
           Version: 2.5.x (Experimental)
          Hardware: x86
                OS: OS X 10.11
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Low
         Component: Qt UI
          Assignee: bugzilla-ad...@wireshark.org
          Reporter: jyo...@gsu.edu
  Target Milestone: ---

Build Information:
Wireshark 2.5.0-2609-gdf088de1 (v2.5.0rc0-2609-gdf088de1)

Copyright 1998-2018 Gerald Combs <ger...@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with Qt 5.3.2, with libpcap, without POSIX capabilities, with
GLib 2.36.0, with zlib 1.2.5, with SMI 0.4.8, with c-ares 1.12.0, with Lua
5.2.4, with GnuTLS 3.4.17, with Gcrypt 1.7.7, with MIT Kerberos, with GeoIP,
with nghttp2 1.14.0, with LZ4, with Snappy, with libxml2 2.9.4, with
QtMultimedia, with SBC, without SpanDSP, without bcg729.

Running on Mac OS X 10.11.6, build 15G19009 (Darwin 15.6.0), with Intel(R)
Core(TM) i7-4980HQ CPU @ 2.80GHz (with SSE4.2), with 16384 MB of physical
memory, with locale en_US.UTF-8, with libpcap version 1.5.3 - Apple version 54,
with GnuTLS 3.4.17, with Gcrypt 1.7.7, with zlib 1.2.5, binary plugins
supported
(0 loaded).

Built using llvm-gcc 4.2.1 (Based on Apple Inc. build 5658) (LLVM build
2336.9.00).

--
Starting Wireshark from shell with the -c option and no argument will sometimes
hang and sometimes crash and yet at other times exit with the expected usage
message displayed in the shell ("Wireshark: option requires an argument -- c").

When "wireshark -c" hangs, the GUI displays the message "Loading module
preferences" on the horizontal ribbon bar and the message "Please wait while
Wireshark is initializing..." in the bottom left status bar.

This issue was discovered accidentally when I meant to start Wireshark from
shell with the command "wireshark -v" but instead carelessly entered "wireshark
-c".

This stall and crash behavior has been easy to replicate on my VmWare Fusion
based OS X and MacOS VMs but its been much harder (but not impossible) to the
replicate on the host OS.  The crash report below was from the Fusion host
system using recent automated buildbot image.

On a vagrant based Ubuntu VM using a locally built image as "./run/wireshark
-c" Wireshark GUI consistently stalls but has not crashed.

I could not replicate the stall or crash on a Windows system.

Workaround:  Do not start enter "wireshark -c"

Here's the crash report from the OS X 10.11.6 system:

> Process:               Wireshark [5016]
> Path:                  /Applications/Wireshark.app/Contents/MacOS/Wireshark
> Identifier:            org.wireshark.Wireshark
> Version:               2.5.0-2609-gdf088de1 (2.5.0-2609-gdf088de1)
> Code Type:             X86-64 (Native)
> Parent Process:        bash [687]
> Responsible:           Terminal [375]
> User ID:               501
> 
> Date/Time:             2018-02-04 18:16:12.362 -0500
> OS Version:            Mac OS X 10.11.6 (15G19009)
> Report Version:        11
> Anonymous UUID:        A350FC94-1E0D-D9CF-BAAB-41F52DE1633C
> 
> 
> Time Awake Since Boot: 160000 seconds
> 
> System Integrity Protection: enabled
> 
> Crashed Thread:        0  Dispatch queue: com.apple.main-thread
> 
> Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
> Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000020
> 
> VM Regions Near 0x20:
> --> 
>     __TEXT                 0000000104002000-00000001047e5000 [ 8076K] r-x/rwx 
> SM=COW  /Applications/Wireshark.app/Contents/MacOS/Wireshark
> 
> Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
> 0   QtCore                            0x000000010979becf 0x109770000 + 179919
> 1   QtCore                            0x000000010979b6be 
> QBasicMutex::lockInternal(int) + 94
> 2   QtCore                            0x000000010979b604 QMutex::lock() + 52
> 3   QtCore                            0x00000001097a542b 
> QWaitCondition::wait(QMutex*, unsigned long) + 379
> 4   QtCore                            0x00000001097a412e 
> QThread::wait(unsigned long) + 190
> 5   QtCore                            0x00000001097a02d1 
> QThreadPoolPrivate::reset() + 321
> 6   QtCore                            0x00000001097a0ba1 
> QThreadPool::~QThreadPool() + 145
> 7   QtCore                            0x00000001097a1226 0x109770000 + 201254
> 8   libsystem_c.dylib                 0x00007fff918dd463 
> __cxa_finalize_ranges + 345
> 9   libsystem_c.dylib                 0x00007fff918dd767 exit + 55
> 10  org.wireshark.Wireshark           0x000000010440e91e 
> commandline_other_options + 1102
> 11  org.wireshark.Wireshark           0x000000010400cb00 main + 1440
> 12  org.wireshark.Wireshark           0x000000010400c544 start + 52
> 
> Thread 1:: Dispatch queue: com.apple.libdispatch-manager
> 0   libsystem_kernel.dylib            0x00007fff9069cefa kevent_qos + 10
> 1   libdispatch.dylib                 0x00007fff9bf6e165 _dispatch_mgr_invoke 
> + 216
> 2   libdispatch.dylib                 0x00007fff9bf6ddcd _dispatch_mgr_thread 
> + 52
> 
> Thread 2:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 3:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 4:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 5:: Thread (pooled)
> 0   libsystem_kernel.dylib            0x00007fff9069bdb6 __psynch_cvwait + 10
> 1   libsystem_pthread.dylib           0x00007fff93815728 _pthread_cond_wait + 
> 767
> 2   QtCore                            0x00000001097a5b51 0x109770000 + 219985
> 3   QtCore                            0x00000001097a573b 0x109770000 + 218939
> 4   QtCore                            0x00000001097a5421 
> QWaitCondition::wait(QMutex*, unsigned long) + 369
> 5   QtCore                            0x000000010979f97e 0x109770000 + 194942
> 6   QtCore                            0x00000001097a33f2 0x109770000 + 209906
> 7   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 8   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 9   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 6:: Thread (pooled)
> 0   libsystem_kernel.dylib            0x00007fff9069bdb6 __psynch_cvwait + 10
> 1   libsystem_pthread.dylib           0x00007fff93815728 _pthread_cond_wait + 
> 767
> 2   QtCore                            0x00000001097a5b51 0x109770000 + 219985
> 3   QtCore                            0x00000001097a573b 0x109770000 + 218939
> 4   QtCore                            0x00000001097a5421 
> QWaitCondition::wait(QMutex*, unsigned long) + 369
> 5   QtCore                            0x000000010979f97e 0x109770000 + 194942
> 6   QtCore                            0x00000001097a33f2 0x109770000 + 209906
> 7   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 8   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 9   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 7:: QThread
> 0   libsystem_kernel.dylib            0x00007fff9069bdb6 __psynch_cvwait + 10
> 1   libsystem_pthread.dylib           0x00007fff93815728 _pthread_cond_wait + 
> 767
> 2   QtCore                            0x00000001097a571b 0x109770000 + 218907
> 3   QtCore                            0x00000001097a5421 
> QWaitCondition::wait(QMutex*, unsigned long) + 369
> 4   org.wireshark.Wireshark           0x000000010406ece6 
> CaptureFilterSyntaxWorker::start() + 182
> 5   org.wireshark.Wireshark           0x00000001043ecc4c 
> CaptureFilterSyntaxWorker::qt_static_metacall(QObject*, QMetaObject::Call, 
> int, void**) + 304
> 6   QtCore                            0x00000001099deb6f 
> QMetaObject::activate(QObject*, int, int, void**) + 1871
> 7   QtCore                            0x00000001097a33d5 0x109770000 + 209877
> 8   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 9   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 10  libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 8:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 9:: Dispatch queue: NSCGSDisableUpdates
> 0   libobjc.A.dylib                   0x00007fff9d002536 
> _object_remove_assocations + 20
> 1   libobjc.A.dylib                   0x00007fff9cffcd4d 
> objc_destructInstance + 109
> 2   libsystem_blocks.dylib            0x00007fff931ab6ba _Block_release + 137
> 3   libdispatch.dylib                 0x00007fff9bf6840b 
> _dispatch_client_callout + 8
> 4   libdispatch.dylib                 0x00007fff9bf6d03b 
> _dispatch_queue_drain + 754
> 5   libdispatch.dylib                 0x00007fff9bf73707 
> _dispatch_queue_invoke + 549
> 6   libdispatch.dylib                 0x00007fff9bf6840b 
> _dispatch_client_callout + 8
> 7   libdispatch.dylib                 0x00007fff9bf6c29b 
> _dispatch_root_queue_drain + 1890
> 8   libdispatch.dylib                 0x00007fff9bf6bb00 
> _dispatch_worker_thread3 + 91
> 9   libsystem_pthread.dylib           0x00007fff938144de _pthread_wqthread + 
> 1129
> 10  libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 10:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 11:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 12:
> 0   libsystem_kernel.dylib            0x00007fff9069c5e2 __workq_kernreturn + 
> 10
> 1   libsystem_pthread.dylib           0x00007fff93814578 _pthread_wqthread + 
> 1283
> 2   libsystem_pthread.dylib           0x00007fff93812341 start_wqthread + 13
> 
> Thread 13:: com.apple.NSEventThread
> 0   libsystem_kernel.dylib            0x00007fff90695f72 mach_msg_trap + 10
> 1   libsystem_kernel.dylib            0x00007fff906953b3 mach_msg + 55
> 2   com.apple.CoreFoundation          0x00007fff8aa96114 
> __CFRunLoopServiceMachPort + 212
> 3   com.apple.CoreFoundation          0x00007fff8aa955dc __CFRunLoopRun + 1356
> 4   com.apple.CoreFoundation          0x00007fff8aa94e28 CFRunLoopRunSpecific 
> + 296
> 5   com.apple.AppKit                  0x00007fff9e26bd95 _NSEventThread + 149
> 6   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 7   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 8   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 14:: Thread (pooled)
> 0   libsystem_kernel.dylib            0x00007fff9069bdb6 __psynch_cvwait + 10
> 1   libsystem_pthread.dylib           0x00007fff93815728 _pthread_cond_wait + 
> 767
> 2   QtCore                            0x00000001097a5b51 0x109770000 + 219985
> 3   QtCore                            0x00000001097a573b 0x109770000 + 218939
> 4   QtCore                            0x00000001097a5421 
> QWaitCondition::wait(QMutex*, unsigned long) + 369
> 5   QtCore                            0x000000010979f97e 0x109770000 + 194942
> 6   QtCore                            0x00000001097a33f2 0x109770000 + 209906
> 7   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 8   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 9   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 15:: Thread (pooled)
> 0   libsystem_kernel.dylib            0x00007fff9069bdb6 __psynch_cvwait + 10
> 1   libsystem_pthread.dylib           0x00007fff93815728 _pthread_cond_wait + 
> 767
> 2   QtCore                            0x00000001097a5b51 0x109770000 + 219985
> 3   QtCore                            0x00000001097a573b 0x109770000 + 218939
> 4   QtCore                            0x00000001097a5421 
> QWaitCondition::wait(QMutex*, unsigned long) + 369
> 5   QtCore                            0x000000010979f97e 0x109770000 + 194942
> 6   QtCore                            0x00000001097a33f2 0x109770000 + 209906
> 7   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 8   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 9   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 16:: Thread (pooled)
> 0   libsystem_kernel.dylib            0x00007fff9069bdb6 __psynch_cvwait + 10
> 1   libsystem_pthread.dylib           0x00007fff93815728 _pthread_cond_wait + 
> 767
> 2   QtCore                            0x00000001097a5b51 0x109770000 + 219985
> 3   QtCore                            0x00000001097a573b 0x109770000 + 218939
> 4   QtCore                            0x00000001097a5421 
> QWaitCondition::wait(QMutex*, unsigned long) + 369
> 5   QtCore                            0x000000010979f97e 0x109770000 + 194942
> 6   QtCore                            0x00000001097a33f2 0x109770000 + 209906
> 7   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 8   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 9   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 17:
> 0   libsystem_kernel.dylib            0x00007fff9069c07a __select + 10
> 1   libglib-2.0.0.dylib               0x00000001052d9a63 g_poll + 275
> 2   libglib-2.0.0.dylib               0x00000001052cd065 0x10529b000 + 204901
> 3   libglib-2.0.0.dylib               0x00000001052cd152 
> g_main_context_iteration + 98
> 4   libglib-2.0.0.dylib               0x00000001052cbf45 0x10529b000 + 200517
> 5   libglib-2.0.0.dylib               0x00000001052f02da g_thread_proxy + 90
> 6   libsystem_pthread.dylib           0x00007fff9381499d _pthread_body + 131
> 7   libsystem_pthread.dylib           0x00007fff9381491a _pthread_start + 168
> 8   libsystem_pthread.dylib           0x00007fff93812351 thread_start + 13
> 
> Thread 0 crashed with X86 Thread State (64-bit):
>   rax: 0x0000000000000001  rbx: 0x0000000000000001  rcx: 0x0000000000000001  
> rdx: 0x00007fd6b8f32700
>   rdi: 0x00007fd6b8f328e0  rsi: 0x00000000ffffffff  rbp: 0x00007fff5bbfd460  
> rsp: 0x00007fff5bbfd3a0
>    r8: 0x00000000fffffffc   r9: 0x00007fd6b8f326f8  r10: 0x00000000ffffffff  
> r11: 0x0000000000000206
>   r12: 0x00007fd6b8f32800  r13: 0x0000000109acfd00  r14: 0x00000000ffffffff  
> r15: 0x0000000000000000
>   rip: 0x000000010979becf  rfl: 0x0000000000010297  cr2: 0x0000000000000020
>   
> Logical CPU:     2
> Error Code:      0x00000004
> Trap Number:     14

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to