[wix-devs] Debugging WIX4/Burn Unit tests
Sean Hall
r.sean.hall at gmail.com
Mon Oct 31 14:32:45 PDT 2022
Yes. It builds and runs them in x86 and x64.
On Mon, Oct 31, 2022 at 4:24 PM Hoover, Jacob via wix-devs <
wix-devs at lists.wixtoolset.org> wrote:
> Trying to test my changes, and I've run into an issue where the unit test
> host process is crashing. Note this only happens on x64, and it's
> triggering a breakpoint from
>
> [Fact]
> void VariantBasicTest()
> {
> BURN_VARIANT expectedVariants[10];
> BURN_VARIANT actualVariants[10];
> for (DWORD i = 0; i < 10; i++)
> {
> BVariantUninitialize(expectedVariants + i); // This is the
> line causing the issue...
> BVariantUninitialize(actualVariants + i);
> }
>
> BVariantUninitialize
> ->StrSecureZeroFreeString->StrSecureZeroString->StrSize->MemSizeChecked->MemSize
>
> extern "C" SIZE_T DAPI MemSize(
> __in LPCVOID pv
> )
> {
> // AssertSz(vfMemInitialized, "MemInitialize() not called, this would
> normally crash");
> return ::HeapSize(::GetProcessHeap(), 0, pv);
> }
>
> HeapSize is stating that the Heap has been corrupted.
>
> Does our CI pipeline build and run the x64 tests?
>
> Thanks,
> Jacob
>
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>
More information about the wix-devs
mailing list