<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-07-27 5:22 GMT+02:00 Nicolas Cellier <span dir="ltr">&lt;<a target="_blank" href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr"><div><div><div><div><div>Hi,<br></div>I merged the changes from Tobias too fast...<br></div>Despite the efforts, the win32 VM produced from HEAD are currently not usable when compiled thru cygwin/mingw<br></div><div>I don&#39;t get a better health thru MSVC<br></div><div><br></div>The last functional VM I get (both win32 squeak.cog.spur and win64 squeak.stack.spur) are from<br><a target="_blank" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/43dca8fe50b7cc70901f4138d3fed60a6734a66f">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/43dca8fe50b7cc70901f4138d3fed60a6734a66f</a><br><br></div><div>This prevents me to focus on the VMaker LLP64 changes.<br></div>Maybe we&#39;ll have to revert... Thoughts?<span class="gmail-HOEnZb"><font color="#888888"><br><br></font></span></div><span class="gmail-HOEnZb"><font color="#888888">Nicolas<br></font></span></div>
</blockquote></div><br></div><div class="gmail_extra">follow up: more than 20 commits after the merge, we did not yet recover win32 health.<br></div><div class="gmail_extra">win32 squeak.stack.spur segfaults with no usefull clue<br><br></div><div class="gmail_extra">-------------------------------------------------------------------------------------<br>$ builddbg/vm/Squeak ../../image/trunk50.image<br>Segmentation fault<br><br>$ gdb builddbg/vm/Squeak<br>GNU gdb (GDB) (Cygwin 7.10.1-1) 7.10.1<br>Copyright (C) 2015 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later &lt;<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>&gt;<br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;<br>and &quot;show warranty&quot; for details.<br>This GDB was configured as &quot;x86_64-pc-cygwin&quot;.<br>Type &quot;show configuration&quot; for configuration details.<br>For bug reporting instructions, please see:<br>&lt;<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;.<br>Find the GDB manual and other documentation resources online at:<br>&lt;<a href="http://www.gnu.org/software/gdb/documentation/">http://www.gnu.org/software/gdb/documentation/</a>&gt;.<br>For help, type &quot;help&quot;.<br>Type &quot;apropos word&quot; to search for commands related to &quot;word&quot;...<br>Reading symbols from builddbg/vm/Squeak...done.<br>(gdb) run ../../image/trunk50.image<br>Starting program: /cygdrive/C/Users/cellier/Documents/Smalltalk/OpenSmalltalk/opensmalltalk-vm/build.win32x86/squeak.stack.spur/builddbg/vm/Squeak ../../image/trunk50.image<br>[New Thread 33724.0xf038]<br>warning: `/cygdrive/c/windows/SYSTEM32/ntdll.dll&#39;: Shared library architecture i386:x86-64 is not compatible with target architecture i386.<br>warning: `/cygdrive/c/windows/SYSTEM32/wow64.dll&#39;: Shared library architecture i386:x86-64 is not compatible with target architecture i386.<br>warning: `/cygdrive/c/windows/SYSTEM32/wow64win.dll&#39;: Shared library architecture i386:x86-64 is not compatible with target architecture i386.<br>warning: `/cygdrive/c/windows/SYSTEM32/wow64cpu.dll&#39;: Shared library architecture i386:x86-64 is not compatible with target architecture i386.<br>warning: dll path for &quot;WOW64_IMAGE_SECTION&quot; can not be evaluated<br>warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.<br>Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;?<br>warning: dll path for &quot;WOW64_IMAGE_SECTION&quot; can not be evaluated<br>warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.<br>Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;?<br>warning: dll path for &quot;NOT_AN_IMAGE&quot; can not be evaluated<br>warning: Could not load shared library symbols for NOT_AN_IMAGE.<br>Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;?<br>warning: dll path for &quot;NOT_AN_IMAGE&quot; can not be evaluated<br>warning: Could not load shared library symbols for NOT_AN_IMAGE.<br>Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;?<br>[New Thread 33724.0xf788]<br>[New Thread 33724.0xe26c]<br><br>Program received signal SIGSEGV, Segmentation fault.<br>[Switching to Thread 33724.0xe26c]<br>0x0000002b in ?? ()<br>(gdb) where<br>#0  0x0000002b in ?? ()<br>#1  0xab750062 in ?? ()<br>#2  0x006c0069 in ?? ()<br>Backtrace stopped: previous frame inner to this frame (corrupt stack?)<br>(gdb)<br><br>-------------------------------------------------------------------------------------<br><br>win64 squeak.stack.spur fails sooner in CreateWindowEx where we open the consoleWindow<br><br>-------------------------------------------------------------------------------------<br>$ builddbg/vm/Squeak ../../image/trunk50-64-15711.image<br><br>CELLIER ~/Documents/Smalltalk/OpenSmalltalk/opensmalltalk-vm/build.win64x64/squeak.stack.spur<br><br>$ gdb builddbg/vm/Squeak<br></div><div class="gmail_extra">...snip...<br></div><div class="gmail_extra">Reading symbols from builddbg/vm/Squeak...done.<br>(gdb) run ../../image/trunk50-64-15711.image<br>Starting program: /cygdrive/C/Users/cellier/Documents/Smalltalk/OpenSmalltalk/opensmalltalk-vm/build.win64x64/squeak.stack.spur/builddbg/vm/Squeak ../../image/trunk50-64-15711.image<br>[New Thread 67440.0x100d4]<br>warning: dll path for &quot;C:\windows\system32\kernel64.dll&quot; can not be evaluated<br>warning: Could not load shared library symbols for C:\windows\system32\kernel64.dll.<br>Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;?<br>warning: Critical error detected c0000374<br><br>Program received signal SIGTRAP, Trace/breakpoint trap.<br>0x0000000076e4f230 in ntdll!RtlUnhandledExceptionFilter () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>(gdb) where<br>#0  0x0000000076e4f230 in ntdll!RtlUnhandledExceptionFilter () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#1  0x0000000076e4f846 in ntdll!EtwEnumerateProcessRegGuids () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#2  0x0000000076e50412 in ntdll!RtlQueryProcessLockInformation () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#3  0x0000000076e52084 in ntdll!RtlLogStackBackTrace () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#4  0x0000000076e52468 in ntdll!RtlLogStackBackTrace () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#5  0x0000000076dfc9c4 in ntdll!TpAlpcRegisterCompletionList () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#6  0x0000000076dddba8 in ntdll!RtlAllocateHeap () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#7  0x0000000076e618dd in ntdll!EtwEventWriteStartScenario () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#8  0x0000000076dfc7cd in ntdll!TpAlpcRegisterCompletionList () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#9  0x0000000076dddba8 in ntdll!RtlAllocateHeap () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#10 0x000007feff0013d2 in msvcrt!malloc () from /cygdrive/c/windows/system32/msvcrt.dll<br>#11 0x000007fefb4ac15f in UxTheme!IsThemePartDefined () from /cygdrive/c/windows/system32/UxTheme.dll<br>#12 0x000007fefb4abaca in UxTheme!IsThemePartDefined () from /cygdrive/c/windows/system32/UxTheme.dll<br>#13 0x000007fefb4abc63 in UxTheme!IsThemePartDefined () from /cygdrive/c/windows/system32/UxTheme.dll<br>#14 0x0000000076dc6a98 in ntdll!TpAllocTimer () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#15 0x0000000076dc686e in ntdll!TpAllocTimer () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#16 0x0000000076db5fcf in ntdll!LdrLoadDll () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#17 0x000007fefce00176 in TlsGetValue () from /cygdrive/c/windows/system32/KERNELBASE.dll<br>#18 0x000007fefcdec7a1 in LoadLibraryExA () from /cygdrive/c/windows/system32/KERNELBASE.dll<br>#19 0x000007fefb51fcf2 in ?? () from /cygdrive/c/windows/WinSxS/amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757/COMCTL32.dll<br>#20 0x000007fefb68cf79 in DllGetVersion () from /cygdrive/c/windows/WinSxS/amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757/COMCTL32.dll<br>#21 0x000007fefb5a9694 in TaskDialog () from /cygdrive/c/windows/WinSxS/amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757/COMCTL32.dll<br>#22 0x000007fefb5706e0 in TaskDialog () from /cygdrive/c/windows/WinSxS/amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757/COMCTL32.dll<br>#23 0x000007fefb5a9cc2 in TaskDialog () from /cygdrive/c/windows/WinSxS/amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757/COMCTL32.dll<br>#24 0x0000000076ca9c11 in USER32!TranslateMessageEx () from /cygdrive/c/windows/system32/USER32.dll<br>#25 0x0000000076ca72f7 in USER32!SetWindowTextW () from /cygdrive/c/windows/system32/USER32.dll<br>#26 0x0000000076ca0781 in USER32!SendMessageTimeoutW () from /cygdrive/c/windows/system32/USER32.dll<br>#27 0x0000000076ddba75 in ntdll!KiUserCallbackDispatcher () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#28 0x0000000076ca040a in USER32!SendMessageTimeoutW () from /cygdrive/c/windows/system32/USER32.dll<br>#29 0x0000000076ca0387 in USER32!SendMessageTimeoutW () from /cygdrive/c/windows/system32/USER32.dll<br>#30 0x0000000076ca05c8 in USER32!SendMessageTimeoutW () from /cygdrive/c/windows/system32/USER32.dll<br>#31 0x0000000076c9a324 in USER32!CreateWindowExA () from /cygdrive/c/windows/system32/USER32.dll<br>#32 0x00000000004d881d in SetupWindows () at ../../platforms/win32/vm/sqWin32Window.c:979<br>#33 0x00000000004d0fc0 in sqMain (argc=2, argv=0x226f40) at ../../platforms/win32/vm/sqWin32Main.c:1535<br>#34 0x00000000004d1b85 in WinMain (hInst=0x400000, hPrevInstance=0x0, lpCmdLine=0x2e5508 &quot;../../image/trunk50-64-15711.image&quot;, nCmdShow=10) at ../../platforms/win32/vm/sqWin32Main.c:1780<br>#35 0x00000000004013e8 in __tmainCRTStartup () at /usr/src/debug/mingw64-x86_64-runtime-4.0.6-1/crt/crtexe.c:332<br>#36 0x00000000004014eb in WinMainCRTStartup () at /usr/src/debug/mingw64-x86_64-runtime-4.0.6-1/crt/crtexe.c:184<br>(gdb)<br><br>-------------------------------------------------------------------------------------<br><br></div><div class="gmail_extra">If I comment this call, (replace with consoleWindow = NULL;) then it fails few steps later.<br></div><div class="gmail_extra">It&#39;s just a symptom that we have broken something in the setup<br></div><div class="gmail_extra">I searched refs to alloca - like we return or pass a dangling pointer to the local stack - unsuccessfully...<br></div><div class="gmail_extra">It might be worth to try again thru MSVC IDE (complementary warnings, stack integrity checks, ...)<br></div><div class="gmail_extra"><br>-------------------------------------------------------------------------------------<br>warning: Critical error detected c0000374<br><br>Program received signal SIGTRAP, Trace/breakpoint trap.<br>0x0000000076e4f230 in ntdll!RtlUnhandledExceptionFilter () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>(gdb) where<br>#0  0x0000000076e4f230 in ntdll!RtlUnhandledExceptionFilter () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#1  0x0000000076e4f846 in ntdll!EtwEnumerateProcessRegGuids () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#2  0x0000000076e50412 in ntdll!RtlQueryProcessLockInformation () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#3  0x0000000076e52084 in ntdll!RtlLogStackBackTrace () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#4  0x0000000076e52468 in ntdll!RtlLogStackBackTrace () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#5  0x0000000076dfc9c4 in ntdll!TpAlpcRegisterCompletionList () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#6  0x0000000076dddba8 in ntdll!RtlAllocateHeap () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#7  0x0000000076e618dd in ntdll!EtwEventWriteStartScenario () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#8  0x0000000076dfc7cd in ntdll!TpAlpcRegisterCompletionList () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#9  0x0000000076dddba8 in ntdll!RtlAllocateHeap () from /cygdrive/c/windows/SYSTEM32/ntdll.dll<br>#10 0x000007feff0014e4 in msvcrt!malloc () from /cygdrive/c/windows/system32/msvcrt.dll<br>#11 0x000007feff0019ed in msvcrt!calloc () from /cygdrive/c/windows/system32/msvcrt.dll<br>#12 0x00000000004d7647 in SetWindowTitle () at ../../platforms/win32/vm/sqWin32Window.c:743<br>#13 0x00000000004d8782 in SetupWindows () at ../../platforms/win32/vm/sqWin32Window.c:996<br>#14 0x00000000004d0fc0 in sqMain (argc=2, argv=0x1d6f40) at ../../platforms/win32/vm/sqWin32Main.c:1535<br>#15 0x00000000004d1b85 in WinMain (hInst=0x400000, hPrevInstance=0x0, lpCmdLine=0x1f5508 &quot;../../image/trunk50-64-15711.image&quot;, nCmdShow=10) at ../../platforms/win32/vm/sqWin32Main.c:1780<br>#16 0x00000000004013e8 in __tmainCRTStartup () at /usr/src/debug/mingw64-x86_64-runtime-4.0.6-1/crt/crtexe.c:332<br>#17 0x00000000004014eb in WinMainCRTStartup () at /usr/src/debug/mingw64-x86_64-runtime-4.0.6-1/crt/crtexe.c:184<br><br></div><div class="gmail_extra"><br></div></div>