Wireshark-dev: [Wireshark-dev] Re: wireshark crashes on some windows PC when click Telephony >

Date Prev · Date Next · Thread Prev · Thread Next
From: Gisle Vanem <gvanem@xxxxxxxx>
Date: Sun, 13 Apr 2025 10:45:46 +0200
何正军 wrote:

Hope wireshark experts can tar vc runtime in the windows installer as well so that wireshark.exe will priority use itself vc runtime.

*vc runtime is the files: *

 1. * msvcp140.dll*
 2. *vcruntime140.dll*
 3. *vcruntime140_1.dll*


The last line of crash stack is something like:
*msvcp140!mtx_do_lock+0x78 *

I guess this is related to the 'std::mutex' change in
some recent MSVC C++ API. Here are some refs:
  https://github.com/actions/runner-images/issues/10020

https://developercommunity.visualstudio.com/t/std::lock_guard-throws-exception-after-v/10691804?space=21&entry=problem&sort=newest

The fix for Wireshark could be to add
'-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR' to the build
CFLAGS.

--
--gv