Skip to content

v0.95.0 - Light Switch - Crash - PowerToys_LightSwitchService!update_sun_times<LightSwitchConfig const > / CxxThrowException #42511

@RonnyTNL

Description

@RonnyTNL

Microsoft PowerToys version

0.95.0

Installation method

GitHub

Area(s) with issue?

Light Switch

Steps to reproduce

Application crashes on two machines (win10x64);

Call Site
PowerToys_LightSwitchService!abort+0x35
PowerToys_LightSwitchService!terminate+0x1e
PowerToys_LightSwitchService!_scrt_unhandled_exception_filter+0x62
KERNELBASE!UnhandledExceptionFilter+0x1e7
ntdll!RtlUserThreadStart$filt$0+0xa2
ntdll!_C_specific_handler+0x96
ntdll!RtlpExecuteHandlerForException+0xf
ntdll!RtlDispatchException+0x244
ntdll!RtlRaiseException+0x1d7
KERNELBASE!RaiseException+0x69
PowerToys_LightSwitchService!CxxThrowException+0x97
PowerToys_LightSwitchService!winrt::throw_hresult+0x21f
PowerToys_LightSwitchService!PowerToysSettings::PowerToyValues::add_property+0x2cb
PowerToys_LightSwitchService!update_sun_times+0x2f7
PowerToys_LightSwitchService!ServiceWorkerThread+0x1b4
kernel32!BaseThreadInitThunk+0x14
ntdll!RtlUserThreadStart+0x21

CONTEXT: (.ecxr)
rax=0000000000000001 rbx=000000217c2fec20 rcx=0000000000000007
rdx=000000217c2fe250 rsi=00007ff6293403b0 rdi=000000217c2fe460
rip=00007ff62934525d rsp=000000217c2fe240 rbp=000000217c2ffa50
r8=000000217c2fe240 r9=000000217c2fe248 r10=000000000000001a
r11=000000217c2fe238 r12=ffffffffffffffff r13=00007ff8903c8a50
r14=0000000000000001 r15=000000217c2fe460
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
PowerToys_LightSwitchService!abort+0x35:
00007ff6`2934525d cd29 int 29h
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 00007ff62934525d (PowerToys_LightSwitchService!abort+0x0000000000000035)
ExceptionCode: c0000409 (Security check failure or stack buffer overrun)
ExceptionFlags: 00000001
NumberParameters: 1
Parameter[0]: 0000000000000007
Subcode: 0x7 FAST_FAIL_FATAL_APP_EXIT

PROCESS_NAME: PowerToys.LightSwitchService.exe

ERROR_CODE: (NTSTATUS) 0xc0000409 - The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

EXCEPTION_CODE_STR: c0000409

EXCEPTION_PARAMETER1: 0000000000000007

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Additional Information

No response

Other Software

No response

Metadata

Metadata

Labels

Issue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsProduct-LightSwitch

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions