Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Simplewall crashing few seconds after running (0xc0000374 - A heap has been corrupted) #1945

Open
2 tasks done
rudolphos opened this issue Jan 23, 2025 · 17 comments
Open
2 tasks done
Labels

Comments

@rudolphos
Copy link

rudolphos commented Jan 23, 2025

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App version

3.8.5

Windows version

11 24H2

Steps to reproduce

  1. run simplewall
  2. go into taskbar icons (window doesn't show up)
  3. click on simplewall icon
  4. window opens
  5. wait 30 seconds

Expected behavior

No response

Actual behavior

It crashes shortly after system startup. So I run it manually and then I notice the behavior - 20-30 seconds and the simplewall window closes and program ends abruptly.

Logs

From WinDbg:

For analysis of this file, run !analyze -v
ntdll!NtWaitForMultipleObjects+0x14:
00007ffd`dc0a0274 c3 ret
0:022> !analyze -v


  •                                                                         *
    
  •                    Exception Analysis                                   *
    
  •                                                                         *
    

KEY_VALUES_STRING: 1

Key  : Analysis.CPU.mSec
Value: 578

Key  : Analysis.Elapsed.mSec
Value: 13952

Key  : Analysis.IO.Other.Mb
Value: 8

Key  : Analysis.IO.Read.Mb
Value: 1

Key  : Analysis.IO.Write.Mb
Value: 50

Key  : Analysis.Init.CPU.mSec
Value: 484

Key  : Analysis.Init.Elapsed.mSec
Value: 41135

Key  : Analysis.Memory.CommitPeak.Mb
Value: 101

Key  : Analysis.Version.DbgEng
Value: 10.0.27725.1000

Key  : Analysis.Version.Description
Value: 10.2408.27.01 amd64fre

Key  : Analysis.Version.Ext
Value: 1.2408.27.1

Key  : Failure.Bucket
Value: HEAP_CORRUPTION_c0000374_simplewall.exe!Unknown

Key  : Failure.Hash
Value: {3a3da69f-5f7b-1b75-3e0d-990691ccfbec}

Key  : Timeline.OS.Boot.DeltaSec
Value: 3364

Key  : Timeline.Process.Start.DeltaSec
Value: 15

Key  : WER.OS.Branch
Value: ge_release

Key  : WER.OS.Version
Value: 10.0.26100.1

Key  : WER.Process.Version
Value: 3.8.5.0

FILE_IN_CAB: simplewall.exe.4916.dmp

NTGLOBALFLAG: 0

APPLICATION_VERIFIER_FLAGS: 0

CONTEXT: (.ecxr)
rax=0000000700000000 rbx=00000000c0000374 rcx=0000000000000001
rdx=0000022a3713c1e8 rsi=0000000000000001 rdi=00007ffddc10b0e0
rip=00007ffddbfc81f5 rsp=00000094ef3be6a0 rbp=00000094ef3be970
r8=0000000000000000 r9=0000ae311a2fcf70 r10=000000001e01177f
r11=0000000000000001 r12=00000000000000e5 r13=0000022a37a00380
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
ntdll!RtlReportFatalFailure+0x9:
00007ffddbfc81f5 eb00 jmp ntdll!RtlReportFatalFailure+0xb (00007ffddbfc81f7)
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ffddbfc81f5 (ntdll!RtlReportFatalFailure+0x0000000000000009)
ExceptionCode: c0000374
ExceptionFlags: 00000081
NumberParameters: 1
Parameter[0]: 00007ffddc10b0e0

PROCESS_NAME: simplewall.exe

ERROR_CODE: (NTSTATUS) 0xc0000374 - A heap has been corrupted.

EXCEPTION_CODE_STR: c0000374

EXCEPTION_PARAMETER1: 00007ffddc10b0e0

STACK_TEXT:
00000094ef3be6a0 00007ffddbfc6ae9 : 00000094ef3bfe10 0000000000000000 00007ffddc0a3d60 00000094ef3be6d8 : ntdll!RtlReportFatalFailure+0x9
00000094ef3be6f0 00007ffddbf6eae2 : 0000000000000000 00007ffddc10b0e0 0000000000000017 0000022a37a00380 : ntdll!RtlReportCriticalFailure+0xa9
00000094ef3be7e0 00007ffddc05f99a : 0000000000000017 00000094ef3be970 0000022a37a00380 0000000000000000 : ntdll!RtlpHeapHandleError+0x12
00000094ef3be810 00007ffddbf6977b : 0000022a4043c690 0000022a40437000 0000000080000022 0000000000000000 : ntdll!RtlpHpHeapHandleError+0x7a
00000094ef3be840 00007ffddbfa9bc8 : 0000000000000000 0000000000000000 0000000000000000 0000000000000001 : ntdll!RtlpLogHeapFailure+0x4b
00000094ef3be870 00007ffddbf676be : 0000022a37a00380 0000022a37a01c00 000000000000005c 00007ffd00000002 : ntdll!RtlpHpLfhSlotAllocateSlow+0xfa8
00000094ef3be9c0 00007ff77d3a3cb5 : 0000000000000062 000000000000003a 00000094ef3bf300 0000000080000002 : ntdll!RtlAllocateHeap+0xa2e
00000094ef3beb00 00007ff77d3a3b12 : 0000000000000000 0000000000000cc0 00000094ef3bedc0 0000000080000022 : simplewall+0x13cb5
00000094ef3bebe0 00007ff77d393d1c : 0000000000000003 00007ff77d42baf0 00007ff77d42bd14 00007ff77d42cfd8 : simplewall+0x13b12
00000094ef3bec10 00007ff77d392df2 : 0000000000000000 00007ffd007a0078 00007ff77d42d820 00000094ef3bedc0 : simplewall+0x3d1c
00000094ef3bec90 00007ff77d3a1675 : 000000000000004e 000000000000004e 00000094ef3bf300 00007ffddbd452dc : simplewall+0x2df2
00000094ef3becc0 00007ffddbd45801 : 0000000000000000 000000000000004e 0000000000000048 0000000000000000 : simplewall+0x11675
00000094ef3beef0 00007ffddbd44b23 : 0000022a3807afd0 00007ff77d3a1610 000000000016062c 000000000000004e : user32!UserCallWinProcCheckWow+0x341
00000094ef3bf050 00007ffddbd448d4 : 000000000016062c 0000022a3713a000 000000000000006a 00000094ef3bf300 : user32!SendMessageWorker+0x223
00000094ef3bf100 00007ffddbd446bf : 0000000000000000 000000000000006a 00000094ef3bf300 000000000000004e : user32!SendMessageInternal+0x174
00000094ef3bf150 00007ffdbdbb2dba : 00000094ef3bf249 00000094ef3bf300 00000094ef3bf300 0000022a37145a10 : user32!SendMessageW+0xef
00000094ef3bf1a0 00007ffdbdbac720 : 0000022a37145d10 0000022a37145d10 0000000000000001 0000022a37137880 : comctl32!CCSendNotify+0x12a
00000094ef3bf2b0 00007ffdbdc16250 : 0000000000000000 0000000000100620 00000094ef3bf930 0000022a3714e110 : comctl32!CLVMouseManager::OnMouseMove+0x378
00000094ef3bf420 00007ffdbdc158ee : 0000000000000000 0000000000000200 0000000000390808 0000000000000000 : comctl32!CListView::WndProc+0x220
00000094ef3bf650 00007ffddbd45801 : 0000000000000000 0000000000000000 0000022a369b0100 0000000000000200 : comctl32!CListView::s_WndProc+0x5e
00000094ef3bf6a0 00007ffddbd452dc : 0000022a38076720 00007ffdbdc15890 0000000000390808 0000000000390808 : user32!UserCallWinProcCheckWow+0x341
00000094ef3bf800 00007ffdbdbc4b38 : 0000000000000001 0000000000000200 0000000000000000 0000000000000000 : user32!CallWindowProcW+0x16c
00000094ef3bf870 00007ffdbdbc4834 : 0000000000000001 0000022a3714e480 0000000000000000 0000000000100620 : comctl32!CallNextSubclassProc+0xa8
00000094ef3bf900 00007ffdbdbc4b38 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : comctl32!TTSubclassProc+0x114
00000094ef3bf9b0 00007ffdbdbc490f : 0000000000000001 0000000000000000 0000000000390808 0000000000000000 : comctl32!CallNextSubclassProc+0xa8
00000094ef3bfa40 00007ffddbd45801 : 0000000000000000 0000000000000200 0000000000000048 0000000000000000 : comctl32!MasterSubclassProc+0xaf
00000094ef3bfae0 00007ffddbd4334d : 00000094ef3bfd40 00007ffdbdbc4860 0000000000390808 0000000000000000 : user32!UserCallWinProcCheckWow+0x341
00000094ef3bfc40 00007ffddbd396bb : 00000094ef3bfd40 0000000000000000 0000022a3807afd0 0000022a00000001 : user32!DispatchMessageWorker+0x1dd
00000094ef3bfcc0 00007ff77d3e2fc4 : 0000000000000000 0000000000000000 000000000012084c 000000000016062c : user32!IsDialogMessageW+0x13b
00000094ef3bfd20 00007ff77d40ce92 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : simplewall+0x52fc4
00000094ef3bfda0 00007ffddaa2e8d7 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : simplewall+0x7ce92
00000094ef3bfde0 00007ffddc01fbcc : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0x17
00000094ef3bfe10 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x2c

STACK_COMMAND: ~0s; .ecxr ; kb

SYMBOL_NAME: simplewall+13cb5

MODULE_NAME: simplewall

IMAGE_NAME: simplewall.exe

FAILURE_BUCKET_ID: HEAP_CORRUPTION_c0000374_simplewall.exe!Unknown

OS_VERSION: 10.0.26100.1

BUILDLAB_STR: ge_release

OSPLATFORM_TYPE: x64

OSNAME: Windows 10

IMAGE_VERSION: 3.8.5.0

FAILURE_ID_HASH: {3a3da69f-5f7b-1b75-3e0d-990691ccfbec}

Followup: MachineOwner

Source
simplewall

Summary
Stopped working

Date
‎2025-‎01-‎24 0:05

Status
Report sent

Description
Faulting Application Path:	C:\Program Files\simplewall\simplewall.exe

Problem signature
Problem Event Name:	APPCRASH
Application Name:	simplewall.exe
Application Version:	3.8.5.0
Application Timestamp:	5fa865ac
Fault Module Name:	StackHash_23fb
Fault Module Version:	10.0.26100.2454
Fault Module Timestamp:	7cb6b6a8
Exception Code:	c0000374
Exception Offset:	PCH_3D_FROM_ntdll+0x0000000000160274
OS Version:	10.0.26100.2.0.0.768.101
Locale ID:	1033
Additional Information 1:	23fb
Additional Information 2:	23fbcee17454b5ec79617c3187dc6403
Additional Information 3:	23fb
Additional Information 4:	23fbcee17454b5ec79617c3187dc6403

Extra information about the problem
Bucket ID:	3019871138ff52de629a89b9700f6da2 (1340535268638158242)


---
</details>
@rudolphos rudolphos added the bug label Jan 23, 2025
@rudolphos
Copy link
Author

I did an in-place upgrade / repair of Windows 11 and simplewall now works properly. Windows security is working and Windows firewall is also working.
I had previously disabled Windows Defender anti-virus (Windows Defender firewall still worked) and without it, for some reason, Simplewall crashed and let through most outgoing and incoming network traffic despite being enabled.

@henrypp
Copy link
Owner

henrypp commented Jan 24, 2025

any crash dumps?

@rudolphos
Copy link
Author

@henrypp

any crash dumps?

It just started happening again after an in-place upgrade. Attached dmp file.

simplewall.exe.1068.dmp

@henrypp
Copy link
Owner

henrypp commented Jan 24, 2025

ok, try this:
simplewall.zip

@rudolphos
Copy link
Author

I replaced the exe, but it keeps crashing again. DMP attached.

simplewall.exe.2360.dmp

@henrypp
Copy link
Owner

henrypp commented Jan 24, 2025

sorry, i cant get call stack:
simplewall.zip

@rudolphos
Copy link
Author

Now when running simplewall, getting this:

Image

2 crash dumps are created on Desktop:

simplewall-1737799371.dmp
simplewall-1737799329.dmp

@henrypp
Copy link
Owner

henrypp commented Jan 25, 2025

it is this build?

@rudolphos
Copy link
Author

Yes. It just immediately gives that "exception raised" error when launching simplewall.

@henrypp
Copy link
Owner

henrypp commented Jan 25, 2025

try this, i think now its fixed:

simplewall.zip

@rudolphos
Copy link
Author

rudolphos commented Jan 25, 2025

Getting the same error on launch, and crash dump created.

simplewall-1737834567.dmp

With official release I can launch it and it works for a few seconds, but these don't even open the main window..

@henrypp
Copy link
Owner

henrypp commented Jan 25, 2025

try this, it will create full dump, i need this information:
simplewall.zip

@rudolphos
Copy link
Author

Github has a file size limit, so here is dl: https://files.catbox.moe/h7deq3.zip

@henrypp
Copy link
Owner

henrypp commented Jan 26, 2025

100% this has no crash:

simplewall.zip

@rudolphos
Copy link
Author

Seems to be working already for 15 minutes without any issue. Also, restarted PC and it started by itself and didn't crash. Thanks.

@henrypp
Copy link
Owner

henrypp commented Jan 26, 2025

i only changed _r_tab_getitemlparam code and now it not crashing.

was:
Image

has become:
Image

some of your thirdparties controls TCM_GETITEM message and returns incorrect status!
it problem on your side, check apps!

henrypp added a commit that referenced this issue Jan 26, 2025
@rudolphos
Copy link
Author

rudolphos commented Jan 26, 2025

some of your thirdparties controls TCM_GETITEM message and returns incorrect status!
it problem on your side, check apps!

No idea which could that be, but the few apps I constantly have running are:

  • Windhawk (Classic context menu on Windows 11; Taskbar height and icon size)
  • Everything Search
  • Snipaste
  • Duplicati
  • Monitorian
  • f.lux
  • Teracopy
  • Nahimic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants