Skip to content

Fix: Adjust heap-allocate accelerator table to avoid release-build startup#12

Open
electricmessiah wants to merge 1 commit into
mgelsinger:mainfrom
electricmessiah:fix/accel-table-heap-alloc
Open

Fix: Adjust heap-allocate accelerator table to avoid release-build startup#12
electricmessiah wants to merge 1 commit into
mgelsinger:mainfrom
electricmessiah:fix/accel-table-heap-alloc

Conversation

@electricmessiah

Copy link
Copy Markdown

CreateAcceleratorTableW(&accels)? intermittently failed with 'Invalid access to memory location (0x800703E6)' in --release builds once the local ACCEL array reached 35 entries, while debug builds never reproduced it at any size. Confirmed size-dependent (any 34-entry array worked, content-independent) and optimizer-dependent (only --release), consistent with a stack-layout-sensitive miscompilation rather than a logic bug. Moving the array to the heap (.to_vec()) sidesteps it.

…rash

CreateAcceleratorTableW(&accels)? intermittently failed with
'Invalid access to memory location (0x800703E6)' in --release builds
once the local ACCEL array reached 35 entries, while debug builds
never reproduced it at any size. Confirmed size-dependent (any
34-entry array worked, content-independent) and optimizer-dependent
(only --release), consistent with a stack-layout-sensitive
miscompilation rather than a logic bug. Moving the array to the heap
(.to_vec()) sidesteps it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant