wwiv icon indicating copy to clipboard operation
wwiv copied to clipboard

wwivd.exe crashes on launch beginning with v5.9.03742 Win11 x86

Open BloodStoneBBS opened this issue 1 year ago • 2 comments

Since v5.9.03742, any upgrades from v5.9.0371 breaks wwivd.

Launch fails at Set signal handlers

Rolling wwivd back to 5.9.0371 fixes issue.

Have tried updating to the latest VCredist. no luck.

wwivd log only shows: {[1] WWIV (WWIV)}

2024-10-17 05:13:41,281 INFO wwivd - WWIV Daemon. 2024-10-17 05:13:41,291 INFO Loaded BBSES:

{[1] WWIV (WWIV)}

2024-10-17 05:15:49,325 INFO wwivd - WWIV Daemon. 2024-10-17 05:15:49,349 INFO Loaded BBSES:

BloodStoneBBS avatar Oct 17 '24 12:10 BloodStoneBBS

I'll have to try to update the dependencies again to see if there was just a bad version in hte mix.

Can you run it with --v=4 to see some more debugging info?

wwiv avatar Oct 22 '24 15:10 wwiv

Also I don't have a Win11 machine to test on :(

wwiv avatar Oct 22 '24 15:10 wwiv

I was finally able to take some time to elevate logging from 3 to 4 but the log file generated upon crash is empty as wwivd crashes before anything can really be generated.

2024-11-28 12:30:07,142 INFO wwivd - WWIV Daemon. 2024-11-28 12:30:07,237 INFO Loaded BBSES:

{[1] WWIV (WWIV)}


Found some useful info in the Windows Event logs:

Faulting application name: wwivd.exe, version: 0.0.0.0, time stamp: 0x67109025 Faulting module name: MSVCP140.dll, version: 14.0.24210.0, time stamp: 0x575a4b85 Exception code: 0xc0000005 Fault offset: 0x0001c559 Faulting process id: 0x1740 Faulting application start time: 0x01db41d450215ef6 Faulting application path: c:\wwiv\wwivd.exe Faulting module path: c:\wwiv\MSVCP140.dll Report Id: 5cf0478e-f370-4b1b-bb0a-6cf9f112acd0 Faulting package full name: Faulting package-relative application ID: Report.zip

Windows Error Report attached.

BloodStoneBBS avatar Nov 28 '24 20:11 BloodStoneBBS

Thanks, there wasn't a stacktrace in there, Any chance you can g\run this under the debugger to get a stack trace so we can see where it crashes?

wwiv avatar Dec 02 '24 15:12 wwiv

Upgrading Visual Studio now. Wil try again when it's complete. Crashing still occurring on all builds post 03741

BloodStoneBBS avatar Dec 15 '24 19:12 BloodStoneBBS

Not sure if this is complete, I keep getting an error in VS about a missing mutex.c

msvcp140.dll!mtx_do_lock(_Mtx_internal_imp_t * mtx, const xtime * target) Line 99 C++ wwivd.exe!00122c66() Unknown wwivd.exe![Frames below may be incorrect and/or missing, no symbols loaded for wwivd.exe] Unknown [External Code]

BloodStoneBBS avatar Dec 15 '24 20:12 BloodStoneBBS

Not sure if related, but VS 2022 is not supported on my Windows 10 x86 install. Perhaps something introduced there?

BloodStoneBBS avatar Dec 15 '24 20:12 BloodStoneBBS

Apparently, Ninja is not supported on x86 anymore either.

BloodStoneBBS avatar Dec 15 '24 20:12 BloodStoneBBS

Is this the Call Stack info needed?

msvcp140.dll!mtx_do_lock(_Mtx_internal_imp_t * mtx, const xtime * target) Line 99 C++ wwivd.exe!00f72c66() Unknown wwivd.exe![Frames below may be incorrect and/or missing, no symbols loaded for wwivd.exe] Unknown [External Code

-- Debug Output: 'wwivd.exe' (Win32): Loaded 'C:\wwiv\wwivd.exe'. Module was built without symbols. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\wwiv\msvcp140.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\dbghelp.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\wwiv\vcruntime140.dll'. Symbols loaded. The thread 0x1b7c has exited with code 0 (0x0). Exception thrown at 0x75892992 in wwivd.exe: Microsoft C++ exception: cereal::Exception at memory location 0x008FF160. Exception thrown at 0x7AC1C559 (msvcp140.dll) in wwivd.exe: 0xC0000005: Access violation reading location 0x00000000.

BloodStoneBBS avatar Jan 20 '25 17:01 BloodStoneBBS

Can you build your own ninja and replace the one in msvc?

See https://github.com/ninja-build/ninja/issues/1339

On Mon, Jan 20, 2025 at 9:12 AM Jimmy Mac @.***> wrote:

Is this the Call Stack info needed?

msvcp140.dll!mtx_do_lock(_Mtx_internal_imp_t * mtx, const xtime * target) Line 99 C++ wwivd.exe!00f72c66() Unknown wwivd.exe![Frames below may be incorrect and/or missing, no symbols loaded for wwivd.exe] Unknown [External Code

-- Debug Output: 'wwivd.exe' (Win32): Loaded 'C:\wwiv\wwivd.exe'. Module was built without symbols. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\wwiv\msvcp140.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\Windows\System32\dbghelp.dll'. Symbols loaded. 'wwivd.exe' (Win32): Loaded 'C:\wwiv\vcruntime140.dll'. Symbols loaded. The thread 0x1b7c has exited with code 0 (0x0). Exception thrown at 0x75892992 in wwivd.exe: Microsoft C++ exception: cereal::Exception at memory location 0x008FF160. Exception thrown at 0x7AC1C559 (msvcp140.dll) in wwivd.exe: 0xC0000005: Access violation reading location 0x00000000.

— Reply to this email directly, view it on GitHub https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2602927327, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQVX5QKTDKEN25USJX3K432LUU7LAVCNFSM6AAAAABQDT5MUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBSHEZDOMZSG4 . You are receiving this because you commented.Message ID: @.***>

wwiv avatar Jan 25 '25 17:01 wwiv

I finally got a win10 32-bit environment installed and could reproduce this.

I needed to update the runtime libraries "Microsoft Visual C++ Redistributable for Visual Studio 2022" and that fixed it for me. This was on a fresh install of Win10 32-bit (which I have a license for and could install on my VMware)

GO here: https://visualstudio.microsoft.com/downloads/

Here's what I installed.

Image

wwiv avatar Feb 20 '25 21:02 wwiv

Are you sure it's Win11 x86? That doesn't seem to exist (Win11 is 64-bit OS only according to https://en.wikipedia.org/wiki/Windows_11 and also microsoft's ISO download page)

wwiv avatar Feb 21 '25 02:02 wwiv

Sorry – Typo. It’s Windows 10.

From: Rushfan @.> Sent: Thursday, February 20, 2025 6:46 PM To: wwivbbs/wwiv @.> Cc: Jimmy Mac @.>; Author @.> Subject: Re: [wwivbbs/wwiv] wwivd.exe crashes on launch beginning with v5.9.03742 Win11 x86 (Issue #1633)

Are you sure it's Win11 x86? That doesn't seem to exist (Win11 is 64-bit OS only according to https://en.wikipedia.org/wiki/Windows_11 and also microsoft's ISO download page)

— Reply to this email directly, view it on GitHub https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2673211664 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFBHEJ54KKMB6MDBGZVZD32Q2HP7AVCNFSM6AAAAABQDT5MUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZTGIYTCNRWGQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ADFBHELLGKGPN2O3UI2EIBD2Q2HP7A5CNFSM6AAAAABQDT5MUGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU7KX4RA.gif Message ID: @.*** @.***> >

https://avatars.githubusercontent.com/u/6380534?s=20&v=4 wwiv left a comment (wwivbbs/wwiv#1633) https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2673211664

Are you sure it's Win11 x86? That doesn't seem to exist (Win11 is 64-bit OS only according to https://en.wikipedia.org/wiki/Windows_11 and also microsoft's ISO download page)

— Reply to this email directly, view it on GitHub https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2673211664 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFBHEJ54KKMB6MDBGZVZD32Q2HP7AVCNFSM6AAAAABQDT5MUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZTGIYTCNRWGQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ADFBHELLGKGPN2O3UI2EIBD2Q2HP7A5CNFSM6AAAAABQDT5MUGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU7KX4RA.gif Message ID: @.*** @.***> >

BloodStoneBBS avatar Feb 21 '25 13:02 BloodStoneBBS

Thanks, I did try that back when I first started trying to troubleshooting. Will try again, perhaps the V C++ was the 2015-2022.

From: Rushfan @.> Sent: Thursday, February 20, 2025 1:26 PM To: wwivbbs/wwiv @.> Cc: Jimmy Mac @.>; Author @.> Subject: Re: [wwivbbs/wwiv] wwivd.exe crashes on launch beginning with v5.9.03742 Win11 x86 (Issue #1633)

I finally got a win10 32-bit environment installed and could reproduce this.

I needed to update the runtime libraries "Microsoft Visual C++ Redistributable for Visual Studio 2022" and that fixed it for me. This was on a fresh install of Win10 32-bit (which I have a license for and could install on my VMware)

GO here: https://visualstudio.microsoft.com/downloads/

Here's what I installed.

image.png (view on web) https://github.com/user-attachments/assets/043fbbbf-7880-4144-b71f-74a1c4907697

— Reply to this email directly, view it on GitHub https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2672718701 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFBHEOKG47N4PBCA6URLBT2QZB55AVCNFSM6AAAAABQDT5MUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZSG4YTQNZQGE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ADFBHELFXCHUAVVV3QFZ72L2QZB55A5CNFSM6AAAAABQDT5MUGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU7JZZW2.gif Message ID: @.*** @.***> >

https://avatars.githubusercontent.com/u/6380534?s=20&v=4 wwiv left a comment (wwivbbs/wwiv#1633) https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2672718701

I finally got a win10 32-bit environment installed and could reproduce this.

I needed to update the runtime libraries "Microsoft Visual C++ Redistributable for Visual Studio 2022" and that fixed it for me. This was on a fresh install of Win10 32-bit (which I have a license for and could install on my VMware)

GO here: https://visualstudio.microsoft.com/downloads/

Here's what I installed.

image.png (view on web) https://github.com/user-attachments/assets/043fbbbf-7880-4144-b71f-74a1c4907697

— Reply to this email directly, view it on GitHub https://github.com/wwivbbs/wwiv/issues/1633#issuecomment-2672718701 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFBHEOKG47N4PBCA6URLBT2QZB55AVCNFSM6AAAAABQDT5MUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZSG4YTQNZQGE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/ADFBHELFXCHUAVVV3QFZ72L2QZB55A5CNFSM6AAAAABQDT5MUGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU7JZZW2.gif Message ID: @.*** @.***> >

BloodStoneBBS avatar Feb 21 '25 13:02 BloodStoneBBS

Re-downloaded and installed the Redistributable Visual C++ 2022 as in the image. applied 03742, crash. applied 03744, crash. Rolled back to 03741, works fine. I may spin up a new VM and try a clean install.

BloodStoneBBS avatar Feb 21 '25 14:02 BloodStoneBBS

Thanks, microsoft removed msvc support for the 2022 version for 32-bit hosts ( so the IDE won't run there anymore). Would have to use remote tools and debug from a 64-bit VM. Let me know how that works on a clean VM, not sure what's going on but I was able to reproduce it on a clean install until I did the 2015-2022 version.

I can also update the dependencies in cmake and push out a new build to see if that fixes it by accident.

wwiv avatar Feb 21 '25 14:02 wwiv

Grrrr,,,
Ok.. So... I finally managed to take some time to clean up my WWIV VM. Removed a TON of residual crap from the last dozen of years, and verified that I did have the latest VC++ run times installed, yet the crashed continued. So.. What do I do? I glance at the application log and notice the version of mscvp140.dll that was crashing, was NOT the latest version!! There was a MUCH earlier version hanging out in my WWIV root folder that was being called instead of the newer one in \windows\system32.

Nuked that one and Huzzah! No more crash on launch. #facepalm #dorkstamp

BloodStoneBBS avatar May 22 '25 00:05 BloodStoneBBS