DEBUG JULIA_COPY_STACKS on Windows

Using JULIA_COPY_STACKS=1 causes Julia to crash for me in Windows. My interest with JULIA_COPY_STACKS is for developing multithreading capabilities with JavaCall.jl. Using JULIA_COPY_STACKS=1 works great on Linux but not Windows. I encounter an issue independently of JavaCall.jl.

I am using the Windows console debugger cdb: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugging-a-user-mode-process-using-cdb

PS > $env:JULIA_COPY_STACKS=1
PS > cdb -o julia
[...]
(2cb0.7ad8): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007fff`a475119c cc              int     3
0:000> G
[...]
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.5.0 (2020-08-01)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |
julia> using Plots
(2cb0.7ad8): Guard page violation - code 80000001 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
libjulia!jl_destroy_timing+0x3b61:
00000000`66910d31 48898588000000  mov     qword ptr [rbp+88h],rax ss:00000000`00c9dd98=0000000000000000
0:000> KP
Child-SP          RetAddr           Call Site
00000000`00c9dc90 00000000`6691a90d libjulia!jl_destroy_timing+0x3b61
00000000`00c9ebc0 00000000`66911f30 libjulia!jl_destroy_timing+0xd73d
00000000`00c9f120 00000000`6691a2e5 libjulia!jl_destroy_timing+0x4d60
00000000`00ca0050 00000000`6691a567 libjulia!jl_destroy_timing+0xd115
00000000`00ca00d0 00000000`6691183b libjulia!jl_destroy_timing+0xd397
00000000`00ca0230 00000000`6691a2e5 libjulia!jl_destroy_timing+0x466b
00000000`00ca1160 00000000`6691a567 libjulia!jl_destroy_timing+0xd115
00000000`00ca11e0 00000000`6691183b libjulia!jl_destroy_timing+0xd397
00000000`00ca1340 00000000`6691a2e5 libjulia!jl_destroy_timing+0x466b
00000000`00ca2270 00000000`6691a567 libjulia!jl_destroy_timing+0xd115
00000000`00ca22f0 00000000`6691183b libjulia!jl_destroy_timing+0xd397
00000000`00ca2450 00000000`66912bdc libjulia!jl_destroy_timing+0x466b
00000000`00ca3380 00000000`6691109b libjulia!jl_destroy_timing+0x5a0c
00000000`00ca3470 00000000`66916ae9 libjulia!jl_destroy_timing+0x3ecb
00000000`00ca43a0 00000000`66911e67 libjulia!jl_destroy_timing+0x9919
00000000`00ca4450 00000000`6691a2e5 libjulia!jl_destroy_timing+0x4c97
00000000`00ca53a0 00000000`6691a567 libjulia!jl_destroy_timing+0xd115
00000000`00ca5420 00000000`6691183b libjulia!jl_destroy_timing+0xd397
00000000`00ca5580 00000000`6691a2e5 libjulia!jl_destroy_timing+0x466b
00000000`00ca64b0 00000000`6691a567 libjulia!jl_destroy_timing+0xd115
00000000`00ca6530 00000000`6691183b libjulia!jl_destroy_timing+0xd397
00000000`00ca6690 00000000`6691a3ac libjulia!jl_destroy_timing+0x466b
00000000`00ca75c0 00000000`6691a567 libjulia!jl_destroy_timing+0xd1dc
00000000`00ca7640 00000000`669119b6 libjulia!jl_destroy_timing+0xd397
00000000`00ca77a0 00000000`6691a3ac libjulia!jl_destroy_timing+0x47e6
00000000`00ca86d0 00000000`6691a567 libjulia!jl_destroy_timing+0xd1dc
00000000`00ca8750 00000000`669119b6 libjulia!jl_destroy_timing+0xd397
00000000`00ca88b0 00000000`66912360 libjulia!jl_destroy_timing+0x47e6
00000000`00ca97e0 00000000`66912bdc libjulia!jl_destroy_timing+0x5190
00000000`00caa710 00000000`6691c05d libjulia!jl_destroy_timing+0x5a0c
00000000`00caa800 00000000`668b67dd libjulia!jl_type_intersection_env_s+0x41d
00000000`00caac60 00000000`668b7e17 libjulia!jl_typeinf_end+0xdd
00000000`00caacd0 00000000`668b7f3b libjulia!jl_typemap_intersection_visitor+0x237
00000000`00caad50 00000000`668ac745 libjulia!jl_typemap_intersection_visitor+0x35b
00000000`00caadd0 00000000`668b1eee libjulia!jl_fptr_sparam+0x7a5
00000000`00caaec0 00000000`668ddc13 libjulia!jl_method_table_insert+0x56e
00000000`00cab0c0 00000000`668e0f63 libjulia!jl_read_verify_header+0x713
00000000`00cab280 00000000`09d62d37 libjulia!jl_restore_incremental+0x53
00000000`00cab380 00000000`09dc9071 sys!jl_sysimg_fvars_base+0xfc7077
00000000`00cab4a0 00000000`09db76e1 sys!jl_sysimg_fvars_base+0x102d3b1
00000000`00cabae0 00000000`09dc87a9 sys!jl_sysimg_fvars_base+0x101ba21
00000000`00cabc00 00000000`09db76e1 sys!jl_sysimg_fvars_base+0x102cae9
00000000`00cac240 00000000`09dc87a9 sys!jl_sysimg_fvars_base+0x101ba21
00000000`00cac370 00000000`09eb5720 sys!jl_sysimg_fvars_base+0x102cae9
00000000`00cac9b0 00000000`09dc3f9c sys!jl_sysimg_fvars_base+0x1119a60
00000000`00cad2e0 00000000`0979035c sys!jl_sysimg_fvars_base+0x10282dc
00000000`00cad3c0 00000000`668e7e3b sys!jl_sysimg_fvars_base+0x9f469c
00000000`00cad810 00000000`668e9239 libjulia!jl_restore_system_image_data+0x31b
00000000`00cad8b0 00000000`668e938a libjulia!jl_toplevel_eval_flex+0x849
00000000`00cad9a0 00000000`668ea48b libjulia!jl_toplevel_eval_flex+0x99a
00000000`00cada90 00000000`0958304b libjulia!jl_toplevel_eval_in+0xab
00000000`00cadc20 00000000`0a078b4f sys!jl_sysimg_fvars_base+0x7e738b
00000000`00cadc60 00000000`0a07a8f6 sys!jl_sysimg_fvars_base+0x12dce8f
00000000`00cadec0 00000000`09b8e5e2 sys!jl_sysimg_fvars_base+0x12dec36
00000000`00cae0a0 00000000`09bca423 sys!jl_sysimg_fvars_base+0xdf2922
00000000`00cae100 00000000`2cd512a0 sys!jl_sysimg_fvars_base+0xe2e763
00000000`00cae260 00000000`09a63591 0x2cd512a0
00000000`00cae2a0 00000000`09a63912 sys!jl_sysimg_fvars_base+0xcc78d1
00000000`00cae5e0 00000000`668c0b19 sys!jl_sysimg_fvars_base+0xcc7c52
00000000`00cae610 00000000`668c132b libjulia!jl_f_tuple+0x589
00000000`00cae730 00000000`09f243d7 libjulia!jl_f__apply_latest+0x4b
00000000`00cae780 00000000`09f40036 sys!jl_sysimg_fvars_base+0x1188717
00000000`00caebf0 00000000`0999cbb2 sys!jl_sysimg_fvars_base+0x11a4376
00000000`00caf7d0 00000000`0999cd2f sys!jl_sysimg_fvars_base+0xc00ef2
00000000`00cafa80 00000000`004017e2 sys!jl_sysimg_fvars_base+0xc0106f
00000000`00cafab0 00000000`00401bd7 julia+0x17e2
00000000`00cafda0 00000000`004013df julia+0x1bd7
00000000`00cafe30 00000000`0040151b julia+0x13df
00000000`00caff00 00007fff`a29a7bd4 julia+0x151b
00000000`00caff30 00007fff`a46ece51 KERNEL32!BaseThreadInitThunk+0x14
00000000`00caff60 00000000`00000000 ntdll!RtlUserThreadStart+0x21
1 Like

Here’s the output with a freshly built julia-debug.exe:

PS > $env:JULIA_COPY_STACKS=1
PS > cdb -o .\julia-debug.exe

Microsoft (R) Windows Debugger Version 10.0.19041.1 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: .\julia-debug.exe

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is:
ModLoad: 00000000`00400000 00000000`00431000   image00000000`00400000
ModLoad: 00007fff`a4680000 00007fff`a4870000   ntdll.dll
ModLoad: 00007fff`a2990000 00007fff`a2a42000   C:\WINDOWS\System32\KERNEL32.DLL
ModLoad: 00007fff`a1600000 00007fff`a18a5000   C:\WINDOWS\System32\KERNELBASE.dll
(9168.8d68): Break instruction exception - code 80000003 (first chance)
ntdll!LdrpDoDebuggerBreak+0x30:
00007fff`a475119c cc              int     3
0:000> g
ModLoad: 00000000`00180000 00000000`00192000   C:\WINDOWS\System32\umppc11604.dll
ModLoad: 00000000`00180000 00000000`00192000   C:\WINDOWS\System32\umppc11604.dll
ModLoad: 00000000`61440000 00000000`6145b000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libgcc_s_seh-1.dll
ModLoad: 00007fff`a42c0000 00007fff`a435e000   C:\WINDOWS\System32\msvcrt.dll
ModLoad: 00000000`64940000 00000000`64957000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libwinpthread-1.dll
ModLoad: 00000000`68740000 00000000`68790000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libopenlibm.dll
ModLoad: 00000000`01080000 00000000`04bc1000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libjulia-debug.dll
ModLoad: 00007fff`a3760000 00007fff`a3803000   C:\WINDOWS\System32\ADVAPI32.dll
ModLoad: 00007fff`a2870000 00007fff`a2907000   C:\WINDOWS\System32\sechost.dll
ModLoad: 00007fff`a3830000 00007fff`a3950000   C:\WINDOWS\System32\RPCRT4.dll
ModLoad: 00007fff`a3af0000 00007fff`a3af8000   C:\WINDOWS\System32\PSAPI.DLL
ModLoad: 00007fff`a3950000 00007fff`a3ae5000   C:\WINDOWS\System32\USER32.dll
ModLoad: 00007fff`a25f0000 00007fff`a2611000   C:\WINDOWS\System32\win32u.dll
ModLoad: 00007fff`a3c70000 00007fff`a3c96000   C:\WINDOWS\System32\GDI32.dll
ModLoad: 00007fff`a2340000 00007fff`a24d5000   C:\WINDOWS\System32\gdi32full.dll
ModLoad: 00007fff`a24e0000 00007fff`a257e000   C:\WINDOWS\System32\msvcp_win.dll
ModLoad: 00007fff`a1a80000 00007fff`a1b7a000   C:\WINDOWS\System32\ucrtbase.dll
ModLoad: 00007fff`a3b00000 00007fff`a3b6f000   C:\WINDOWS\System32\WS2_32.dll
ModLoad: 00000000`68ac0000 00000000`68ace000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libssp-0.dll
ModLoad: 00000000`6fc40000 00000000`6fde5000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libstdc++-6.dll
ModLoad: 00007fff`8c3f0000 00007fff`8c5e4000   C:\WINDOWS\SYSTEM32\dbghelp.dll
ModLoad: 00007fff`a0a50000 00007fff`a0a8a000   C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
ModLoad: 00007fff`a06b0000 00007fff`a06bc000   C:\WINDOWS\SYSTEM32\Secur32.dll
ModLoad: 00007fff`a1450000 00007fff`a1475000   C:\WINDOWS\SYSTEM32\USERENV.dll
ModLoad: 00007fff`a15d0000 00007fff`a15f3000   C:\WINDOWS\System32\profapi.dll
ModLoad: 00007fff`9f440000 00007fff`9f464000   C:\WINDOWS\SYSTEM32\WINMM.dll
ModLoad: 00000000`04bd0000 00000000`0816d000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\LLVM.dll
ModLoad: 00007fff`a2e60000 00007fff`a2fb7000   C:\WINDOWS\System32\ole32.dll
ModLoad: 00007fff`a2b20000 00007fff`a2e55000   C:\WINDOWS\System32\combase.dll
ModLoad: 00007fff`a1a00000 00007fff`a1a80000   C:\WINDOWS\System32\bcryptPrimitives.dll
ModLoad: 00007fff`a2fc0000 00007fff`a36a7000   C:\WINDOWS\System32\SHELL32.dll
ModLoad: 00007fff`a25a0000 00007fff`a25ea000   C:\WINDOWS\System32\cfgmgr32.dll
ModLoad: 00007fff`a43d0000 00007fff`a4479000   C:\WINDOWS\System32\shcore.dll
ModLoad: 00007fff`a1b80000 00007fff`a2302000   C:\WINDOWS\System32\windows.storage.dll
ModLoad: 00007fff`a1560000 00007fff`a15aa000   C:\WINDOWS\System32\powrprof.dll
ModLoad: 00007fff`a1530000 00007fff`a1540000   C:\WINDOWS\System32\UMPDC.dll
ModLoad: 00007fff`a2730000 00007fff`a2782000   C:\WINDOWS\System32\shlwapi.dll
ModLoad: 00007fff`a1540000 00007fff`a1551000   C:\WINDOWS\System32\kernel.appcore.dll
ModLoad: 00007fff`a2580000 00007fff`a2597000   C:\WINDOWS\System32\cryptsp.dll
ModLoad: 00007fff`9f410000 00007fff`9f43d000   C:\WINDOWS\SYSTEM32\WINMMBASE.dll
ModLoad: 00007fff`a0eb0000 00007fff`a0ebc000   C:\WINDOWS\SYSTEM32\CRYPTBASE.DLL
ModLoad: 00007fff`a1410000 00007fff`a1447000   C:\WINDOWS\SYSTEM32\SSPICLI.DLL
ModLoad: 00007fff`a08b0000 00007fff`a08e3000   C:\WINDOWS\system32\rsaenh.dll
ModLoad: 00007fff`a2310000 00007fff`a2336000   C:\WINDOWS\System32\bcrypt.dll
ModLoad: 00007fff`a3c40000 00007fff`a3c6e000   C:\WINDOWS\System32\IMM32.DLL
ModLoad: 00007fff`9f670000 00007fff`9f709000   C:\WINDOWS\system32\uxtheme.dll
ModLoad: 00007fff`a0d30000 00007fff`a0d97000   C:\WINDOWS\system32\mswsock.dll
ModLoad: 00000001`01c00000 00000001`0a9e2000   C:\cygwin64\home\kittisopikulm\julia\usr\lib\julia\sys-debug.dll
ModLoad: 00000001`00130000 00000001`001c7000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libpcre2-8.DLL
ModLoad: 00000001`0fb30000 00000001`0fc13000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libgmp.DLL
ModLoad: 00000001`0fc20000 00000001`0fe4f000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libmpfr.DLL
ModLoad: 00000001`0fe50000 00000001`0ff33000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libgmp-10.dll
ModLoad: 00000001`106f0000 00000001`12340000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libopenblas64_.DLL
ModLoad: 00000001`12340000 00000001`125ca000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libgfortran-5.dll
ModLoad: 00000001`125d0000 00000001`12634000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libquadmath-0.dll
ModLoad: 00000001`32640000 00000001`32763000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libcholmod.DLL
ModLoad: 00000001`32770000 00000001`3279d000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libcamd.dll
ModLoad: 00000001`327a0000 00000001`327cf000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libccolamd.dll
ModLoad: 00000001`327d0000 00000001`327f5000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libsuitesparseconfig.dll
ModLoad: 00000001`32800000 00000001`3282a000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libcolamd.dll
ModLoad: 00000001`32830000 00000001`3285c000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libamd.dll
ModLoad: 00000001`32860000 00000001`32882000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libsuitesparse_wrapper.DLL
ModLoad: 00000001`32890000 00000001`32954000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libnghttp2-14.dll
ModLoad: 00000001`32960000 00000001`329ed000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libcurl-4.dll
ModLoad: 00000001`329f0000 00000001`32a2a000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libz.dll
ModLoad: 00000001`32a30000 00000001`32ab7000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libmbedcrypto.dll
ModLoad: 00000001`32ac0000 00000001`32afe000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libmbedx509.dll
ModLoad: 00000001`32b00000 00000001`32b54000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libmbedtls.dll
ModLoad: 00000001`32b60000 00000001`32bb5000   C:\cygwin64\home\kittisopikulm\julia\usr\bin\libssh2.dll
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1185 (2020-10-11)
 _/ |\__'_|_|_|\__'_|  |  Commit 3bfcb743c2 (0 days old master)
|__/                   |

(9168.8d68): Guard page violation - code 80000001 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
LLVM!ZN4llvm23MemoryDependenceResults30getSimplePointerDependencyFromERKNS_14MemoryLocationEbNS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_11InstructionELb0ELb0EvEELb0ELb0EEEPNS_10BasicBlockEPS7_PjPNS_17OrderedBasicBlockE+0x2f:
00000000`05c65d0f 448844243e      mov     byte ptr [rsp+3Eh],r8b ss:00000000`00c36dfe=00
0:000> k
Child-SP          RetAddr           Call Site
00000000`00c36dc0 00000000`05c680bc LLVM!ZN4llvm23MemoryDependenceResults30getSimplePointerDependencyFromERKNS_14MemoryLocationEbNS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_11InstructionELb0ELb0EvEELb0ELb0EEEPNS_10BasicBlockEPS7_PjPNS_17OrderedBasicBlockE+0x2f
00000000`00c374c0 00000000`05c6868d LLVM!ZN4llvm23MemoryDependenceResults24getPointerDependencyFromERKNS_14MemoryLocationEbNS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_11InstructionELb0ELb0EvEELb0ELb0EEEPNS_10BasicBlockEPS7_PjPNS_17OrderedBasicBlockE+0xcc
00000000`00c37550 00000000`05c6b987 LLVM!ZN4llvm23MemoryDependenceResults23GetNonLocalInfoForBlockEPNS_11InstructionERKNS_14MemoryLocationEbPNS_10BasicBlockEPSt6vectorINS_16NonLocalDepEntryESaIS9_EEj+0xdd
00000000`00c37610 00000000`05c6c2d4 LLVM!ZN4llvm23MemoryDependenceResults27getNonLocalPointerDepFromBBEPNS_11InstructionERKNS_12PHITransAddrERKNS_14MemoryLocationEbPNS_10BasicBlockERNS_15SmallVectorImplINS_17NonLocalDepResultEEERNS_8DenseMapISA_PNS_5ValueENS_12DenseMapInfoISA_EENS_6detail12DenseMapPairISA_SH_EEEEb+0x5a7
00000000`00c37f90 00000000`05c6c2d4 LLVM!ZN4llvm23MemoryDependenceResults27getNonLocalPointerDepFromBBEPNS_11InstructionERKNS_12PHITransAddrERKNS_14MemoryLocationEbPNS_10BasicBlockERNS_15SmallVectorImplINS_17NonLocalDepResultEEERNS_8DenseMapISA_PNS_5ValueENS_12DenseMapInfoISA_EENS_6detail12DenseMapPairISA_SH_EEEEb+0xef4
00000000`00c38910 00000000`05c6d870 LLVM!ZN4llvm23MemoryDependenceResults27getNonLocalPointerDepFromBBEPNS_11InstructionERKNS_12PHITransAddrERKNS_14MemoryLocationEbPNS_10BasicBlockERNS_15SmallVectorImplINS_17NonLocalDepResultEEERNS_8DenseMapISA_PNS_5ValueENS_12DenseMapInfoISA_EENS_6detail12DenseMapPairISA_SH_EEEEb+0xef4
00000000`00c39290 00000000`057e79b8 LLVM!ZN4llvm23MemoryDependenceResults28getNonLocalPointerDependencyEPNS_11InstructionERNS_15SmallVectorImplINS_17NonLocalDepResultEEE+0x240
00000000`00c393f0 00000000`057e7dd5 LLVM!ZN4llvm3GVN16performScalarPREEPNS_11InstructionE+0xd8
00000000`00c3a2c0 00000000`057e80cb LLVM!ZN4llvm3GVN11processLoadEPNS_8LoadInstE+0xd5
00000000`00c3a360 00000000`057e86d8 LLVM!ZN4llvm3GVN18processInstructionEPNS_11InstructionE+0x23b
00000000`00c3a530 00000000`057e9384 LLVM!ZN4llvm3GVN12processBlockEPNS_10BasicBlockE+0xf8
00000000`00c3a5c0 00000000`057e957b LLVM!ZN4llvm3GVN17iterateOnFunctionERNS_8FunctionE+0x74
00000000`00c3a630 00000000`069b1ddc LLVM!ZN4llvm3GVN7runImplERNS_8FunctionERNS_15AssumptionCacheERNS_13DominatorTreeERKNS_17TargetLibraryInfoERNS_9AAResultsEPNS_23MemoryDependenceResultsEPNS_8LoopInfoEPNS_25OptimizationRemarkEmitterE+0x1cb
00000000`00c3a8a0 00000000`04da5374 LLVM!ZN4llvm3gvn13GVNLegacyPass13runOnFunctionERNS_8FunctionE+0x52c
00000000`00c3a9e0 00000000`04da5aa3 LLVM!ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x3b4
00000000`00c3ab20 00000000`04da5e80 LLVM!ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x33
00000000`00c3ab70 00000000`011a70a0 LLVM!ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE+0x3c0
00000000`00c3aca0 00000000`012c6667 libjulia_debug!jl_dump_method_asm+0x7e6
00000000`00c3ae60 00000000`011a81cc libjulia_debug!utf8proc_NFKC_Casefold+0x67527
00000000`00c3aef0 00000000`011a9980 libjulia_debug!jl_dump_method_asm+0x1912
00000000`00c3b0c0 00000000`011a9ddc libjulia_debug!jl_dump_method_asm+0x30c6
00000000`00c3b1d0 00000000`011aa002 libjulia_debug!jl_dump_method_asm+0x3522
00000000`00c3b350 00000000`011a5979 libjulia_debug!jl_dump_method_asm+0x3748
00000000`00c3b3e0 00000000`011a65b3 libjulia_debug!jl_cumulative_compile_time_ns+0x699
00000000`00c3b820 00000000`01101ce3 libjulia_debug!jl_generate_fptr+0x273
00000000`00c3b8c0 00000000`01102bcb libjulia_debug!jl_compile_method_internal+0x2b2
00000000`00c3b980 00000000`01103458 libjulia_debug!jl_compile_hint+0x555
00000000`00c3ba20 00000001`01d5b1a7 libjulia_debug!jl_apply_generic+0x87
00000000`00c3baa0 00000000`01101f15 sys_debug!jl_sysimg_fvars_base+0x159dd7
00000000`00c3bba0 00000000`01102b57 libjulia_debug!jl_fptr_args+0x56
00000000`00c3bc00 00000000`01103458 libjulia_debug!jl_compile_hint+0x4e1
00000000`00c3bca0 00000000`01173b6e libjulia_debug!jl_apply_generic+0x87
00000000`00c3bd20 00000000`01176008 libjulia_debug!jl_malloc_stack+0xbe8
00000000`00c3bd70 00000000`011762eb libjulia_debug!jl_linenumber_to_lineinfo+0x493
00000000`00c3be50 00000001`01c26974 libjulia_debug!jl_code_for_staged+0x1bc
00000000`00c3c080 00000001`01f9a349 sys_debug!jl_sysimg_fvars_base+0x255a4
00000000`00c3c280 00000001`02016d15 sys_debug!jl_sysimg_fvars_base+0x398f79
00000000`00c3c360 00000001`01c02e0e sys_debug!jl_sysimg_fvars_base+0x415945
00000000`00c3c440 00000001`02017b93 sys_debug!jl_sysimg_fvars_base+0x1a3e
00000000`00c3c520 00000001`02017bf3 sys_debug!jl_sysimg_fvars_base+0x4167c3
00000000`00c3c770 00000000`01102b57 sys_debug!jl_sysimg_fvars_base+0x416823
00000000`00c3c7b0 00000000`01103458 libjulia_debug!jl_compile_hint+0x4e1
00000000`00c3c850 00000000`010fa9ce libjulia_debug!jl_apply_generic+0x87
00000000`00c3c8d0 00000000`010fc33c libjulia_debug!jl_init_types+0x408e
00000000`00c3c920 00000000`011a64de libjulia_debug!jl_type_infer+0x229
00000000`00c3cb40 00000000`01101ce3 libjulia_debug!jl_generate_fptr+0x19e
00000000`00c3cbe0 00000000`01102bcb libjulia_debug!jl_compile_method_internal+0x2b2
00000000`00c3cca0 00000000`01103458 libjulia_debug!jl_compile_hint+0x555
00000000`00c3cd40 00000001`021040e4 libjulia_debug!jl_apply_generic+0x87
00000000`00c3cdc0 00000001`02264829 sys_debug!jl_sysimg_fvars_base+0x502d14
00000000`00c3cf40 00000001`02267c15 sys_debug!jl_sysimg_fvars_base+0x663459
00000000`00c3d320 00000001`0216fc22 sys_debug!jl_sysimg_fvars_base+0x666845
00000000`00c3d3e0 00000000`01101f15 sys_debug!jl_sysimg_fvars_base+0x56e852
00000000`00c3d460 00000000`01102b57 libjulia_debug!jl_fptr_args+0x56
00000000`00c3d4c0 00000000`01103458 libjulia_debug!jl_compile_hint+0x4e1
00000000`00c3d560 00000001`0227674e libjulia_debug!jl_apply_generic+0x87
00000000`00c3d5e0 00000000`01101f15 sys_debug!jl_sysimg_fvars_base+0x67537e
00000000`00c3d810 00000000`01102b57 libjulia_debug!jl_fptr_args+0x56
00000000`00c3d870 00000000`01103458 libjulia_debug!jl_compile_hint+0x4e1
00000000`00c3d910 00000000`0111264f libjulia_debug!jl_apply_generic+0x87
00000000`00c3d990 00000000`01115af9 libjulia_debug!jl_parse_input_line+0x106b
00000000`00c3d9e0 00000000`01115c15 libjulia_debug!jl_f_ifelse+0xe4d
00000000`00c3db70 00000000`01115df6 libjulia_debug!jl_f__apply+0x57
00000000`00c3dbd0 00000001`02050cf8 libjulia_debug!jl_f__apply_latest+0x70
00000000`00c3dc40 00000001`02050e43 sys_debug!jl_sysimg_fvars_base+0x44f928
00000000`00c3dd60 00000000`01102b57 sys_debug!jl_sysimg_fvars_base+0x44fa73
00000000`00c3dda0 00000000`01103458 libjulia_debug!jl_compile_hint+0x4e1
00000000`00c3de40 00000000`0111264f libjulia_debug!jl_apply_generic+0x87
00000000`00c3dec0 00000000`01115af9 libjulia_debug!jl_parse_input_line+0x106b
00000000`00c3df10 00000000`01115c15 libjulia_debug!jl_f_ifelse+0xe4d
00000000`00c3e0a0 00000000`01115df6 libjulia_debug!jl_f__apply+0x57
00000000`00c3e100 00000001`0215c055 libjulia_debug!jl_f__apply_latest+0x70
00000000`00c3e170 00000001`02169c00 sys_debug!jl_sysimg_fvars_base+0x55ac85
00000000`00c3e3d0 00000001`0216c415 sys_debug!jl_sysimg_fvars_base+0x568830
00000000`00c3f5b0 00000001`0216c5e5 sys_debug!jl_sysimg_fvars_base+0x56b045
00000000`00c3f910 00000000`01102b57 sys_debug!jl_sysimg_fvars_base+0x56b215
00000000`00c3f940 00000000`01103458 libjulia_debug!jl_compile_hint+0x4e1
00000000`00c3f9e0 00000000`01177d09 libjulia_debug!jl_apply_generic+0x87
00000000`00c3fa60 00000000`01179d14 libjulia_debug!jl_method_def+0xa29
00000000`00c3fab0 00000000`0117a34a libjulia_debug!jl_get_fenv_consts+0x41a
00000000`00c3fdf0 00000000`00401eab libjulia_debug!repl_entrypoint+0x10a
00000000`00c3fe50 00000000`0040113c julia_debug+0x1eab
00000000`00c3feb0 00007fff`a29a7bd4 julia_debug+0x113c
00000000`00c3ff30 00007fff`a46ece51 KERNEL32!BaseThreadInitThunk+0x14
00000000`00c3ff60 00000000`00000000 ntdll!RtlUserThreadStart+0x21
0:000> g
(9168.8d68): Guard page violation - code 80000001 (!!! second chance !!!)
LLVM!ZN4llvm23MemoryDependenceResults30getSimplePointerDependencyFromERKNS_14MemoryLocationEbNS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_11InstructionELb0ELb0EvEELb0ELb0EEEPNS_10BasicBlockEPS7_PjPNS_17OrderedBasicBlockE+0x2f:
00000000`05c65d0f 448844243e      mov     byte ptr [rsp+3Eh],r8b ss:00000000`00c36dfe=00
0:000>

Here it the same thing with gdb:

$ export JULIA_COPY_STACKS=1
$ gdb ./julia-debug.exe
GNU gdb (GDB) (Cygwin 8.3.1-1) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./julia-debug.exe...
(gdb) run
Starting program: /home/kittisopikulm/julia/usr/bin/julia-debug.exe
[New Thread 34296.0x8f40]
[New Thread 34296.0x5f60]
[New Thread 34296.0x461c]
[New Thread 34296.0x1b98]
[New Thread 34296.0x740]
[New Thread 34296.0x4330]
[New Thread 34296.0x8b8c]
[New Thread 34296.0x75a8]
[New Thread 34296.0x8cc4]
[New Thread 34296.0x5980]
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1185 (2020-10-11)
 _/ |\__'_|_|_|\__'_|  |  Commit 3bfcb743c2 (0 days old master)
|__/                   |

gdb: unknown target exception 0x80000001 at 0x5a85d0f

Thread 1 received signal ?, Unknown signal.
0x0000000005a85d0f in llvm::MemoryDependenceResults::getSimplePointerDependencyFrom(llvm::MemoryLocation const&, bool, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>, llvm::BasicBlock*, llvm::Instruction*, unsi
gned int*, llvm::OrderedBasicBlock*) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
(gdb) bt
#0  0x0000000005a85d0f in llvm::MemoryDependenceResults::getSimplePointerDependencyFrom(llvm::MemoryLocation const&, bool, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>, llvm::BasicBlock*, llvm::Instruction*,
unsigned int*, llvm::OrderedBasicBlock*) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#1  0x0000000005a880bc in llvm::MemoryDependenceResults::getPointerDependencyFrom(llvm::MemoryLocation const&, bool, llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false, false, void>, false, false>, llvm::BasicBlock*, llvm::Instruction*, unsign
ed int*, llvm::OrderedBasicBlock*) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#2  0x0000000005a8868d in llvm::MemoryDependenceResults::GetNonLocalInfoForBlock(llvm::Instruction*, llvm::MemoryLocation const&, bool, llvm::BasicBlock*, std::vector<llvm::NonLocalDepEntry, std::allocator<llvm::NonLocalDepEntry> >*, unsigned int) ()
   from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#3  0x0000000005a8b987 in llvm::MemoryDependenceResults::getNonLocalPointerDepFromBB(llvm::Instruction*, llvm::PHITransAddr const&, llvm::MemoryLocation const&, bool, llvm::BasicBlock*, llvm::SmallVectorImpl<llvm::NonLocalDepResult>&, llvm::DenseMap<llvm::BasicBlock*, ll
vm::Value*, llvm::DenseMapInfo<llvm::BasicBlock*>, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::Value*> >&, bool) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#4  0x0000000005a8c2d4 in llvm::MemoryDependenceResults::getNonLocalPointerDepFromBB(llvm::Instruction*, llvm::PHITransAddr const&, llvm::MemoryLocation const&, bool, llvm::BasicBlock*, llvm::SmallVectorImpl<llvm::NonLocalDepResult>&, llvm::DenseMap<llvm::BasicBlock*, ll
vm::Value*, llvm::DenseMapInfo<llvm::BasicBlock*>, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::Value*> >&, bool) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#5  0x0000000005a8c2d4 in llvm::MemoryDependenceResults::getNonLocalPointerDepFromBB(llvm::Instruction*, llvm::PHITransAddr const&, llvm::MemoryLocation const&, bool, llvm::BasicBlock*, llvm::SmallVectorImpl<llvm::NonLocalDepResult>&, llvm::DenseMap<llvm::BasicBlock*, ll
vm::Value*, llvm::DenseMapInfo<llvm::BasicBlock*>, llvm::detail::DenseMapPair<llvm::BasicBlock*, llvm::Value*> >&, bool) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#6  0x0000000005a8d870 in llvm::MemoryDependenceResults::getNonLocalPointerDependency(llvm::Instruction*, llvm::SmallVectorImpl<llvm::NonLocalDepResult>&) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#7  0x00000000056079b8 in llvm::GVN::processNonLocalLoad(llvm::LoadInst*) [clone .part.931] () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#8  0x0000000005607dd5 in llvm::GVN::processLoad(llvm::LoadInst*) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#9  0x00000000056080cb in llvm::GVN::processInstruction(llvm::Instruction*) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#10 0x00000000056086d8 in llvm::GVN::processBlock(llvm::BasicBlock*) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#11 0x0000000005609384 in llvm::GVN::iterateOnFunction(llvm::Function&) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#12 0x000000000560957b in llvm::GVN::runImpl(llvm::Function&, llvm::AssumptionCache&, llvm::DominatorTree&, llvm::TargetLibraryInfo const&, llvm::AAResults&, llvm::MemoryDependenceResults*, llvm::LoopInfo*, llvm::OptimizationRemarkEmitter*) ()
   from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#13 0x00000000067d1ddc in llvm::gvn::GVNLegacyPass::runOnFunction(llvm::Function&) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#14 0x0000000004bc5374 in llvm::FPPassManager::runOnFunction(llvm::Function&) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#15 0x0000000004bc5aa3 in llvm::FPPassManager::runOnModule(llvm::Module&) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#16 0x0000000004bc5e80 in llvm::legacy::PassManagerImpl::run(llvm::Module&) () from /home/kittisopikulm/julia/usr/bin/LLVM.dll
#17 0x0000000000fc70a0 in JuliaOJIT::CompilerT::operator() (this=0x101c85798, M=...) at /home/kittisopikulm/julia/src/jitlayers.cpp:550
#18 0x00000000010e6667 in llvm::orc::LegacyIRCompileLayer<llvm::orc::LegacyRTDyldObjectLinkingLayer, JuliaOJIT::CompilerT>::addModule (this=0x101c85790, K=1, M=...) at /home/kittisopikulm/julia/usr/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h:109
#19 0x0000000000fc81cc in JuliaOJIT::addModule (this=0x101c84390, M=...) at /home/kittisopikulm/julia/src/jitlayers.cpp:674
#20 0x0000000000fc9980 in jl_add_to_ee (m=...) at /home/kittisopikulm/julia/src/jitlayers.cpp:967
#21 0x0000000000fc9ddc in jl_add_to_ee (M=..., NewExports=..., Queued=..., ToMerge=..., depth=1) at /home/kittisopikulm/julia/src/jitlayers.cpp:1011
#22 0x0000000000fca002 in jl_add_to_ee (M=..., NewExports=...) at /home/kittisopikulm/julia/src/jitlayers.cpp:1033
#23 0x0000000000fc5979 in _jl_compile_codeinst (codeinst=0x103a4f320 <jl_system_image_data+17503328>, src=0x10b088190, world=7131) at /home/kittisopikulm/julia/src/jitlayers.cpp:137
#24 0x0000000000fc65b3 in jl_generate_fptr (mi=0x103a4e980 <jl_system_image_data+17500864>, world=7131) at /home/kittisopikulm/julia/src/jitlayers.cpp:322
#25 0x0000000000f21ce3 in jl_compile_method_internal (mi=0x103a4e980 <jl_system_image_data+17500864>, world=7131) at /home/kittisopikulm/julia/src/gf.c:1924
#26 0x0000000000f22bcb in _jl_invoke (F=0x103a4ee00 <jl_system_image_data+17502016>, args=0xc3bda8, nargs=5, mfunc=0x103a4e980 <jl_system_image_data+17500864>, world=7131) at /home/kittisopikulm/julia/src/gf.c:2183
#27 0x0000000000f23458 in jl_apply_generic (F=0x103a4ee00 <jl_system_image_data+17502016>, args=0xc3bda8, nargs=5) at /home/kittisopikulm/julia/src/gf.c:2373
#28 0x00000001022cb1a7 in japi1_GeneratedFunctionStub_8982 (g=..., args...=<optimized out>) at boot.jl:571
#29 0x0000000000f21f15 in jl_fptr_args (f=0x104262120 <jl_system_image_data+25969248>, args=0xc3bda8, nargs=5, m=0x103938f90 <jl_system_image_data+16363728>) at /home/kittisopikulm/julia/src/gf.c:1960
#30 0x0000000000f22b57 in _jl_invoke (F=0x104262120 <jl_system_image_data+25969248>, args=0xc3bda8, nargs=5, mfunc=0x1039383e0 <jl_system_image_data+16360736>, world=7131) at /home/kittisopikulm/julia/src/gf.c:2172
#31 0x0000000000f23458 in jl_apply_generic (F=0x104262120 <jl_system_image_data+25969248>, args=0xc3bda8, nargs=5) at /home/kittisopikulm/julia/src/gf.c:2373
#32 0x0000000000f93b6e in jl_apply (args=0xc3bda0, nargs=6) at /home/kittisopikulm/julia/src/julia.h:1690
#33 0x0000000000f96008 in jl_call_staged (def=0x1037c4840 <jl_system_image_data+14838144>, generator=0x104262120 <jl_system_image_data+25969248>, sparam_vals=0x10b0a2dd0, args=0x10b0589d8, nargs=3) at /home/kittisopikulm/julia/src/method.c:396
#34 0x0000000000f962eb in jl_code_for_staged (linfo=0x10b0a7750) at /home/kittisopikulm/julia/src/method.c:443
#35 0x0000000102196974 in japi1_get_staged_11569 (li=...) at compiler/utilities.jl:94
#36 0x000000010250a349 in retrieve_code_info () at compiler/utilities.jl:105
#37 julia_InferenceState_8163 (result=..., cached=1 '\001', interp=...) at compiler/inferencestate.jl:129
#38 0x0000000102586d15 in julia_typeinf_ext_11469 (interp=..., mi=...) at compiler/typeinfer.jl:629
#39 0x0000000102172e0e in julia_typeinf_ext_toplevel_12386 (interp=..., linfo=...) at compiler/typeinfer.jl:664
#40 0x0000000102587b93 in julia_typeinf_ext_toplevel_12392 (mi=..., world=29278) at compiler/typeinfer.jl:660
#41 0x0000000102587bf3 in jfptr_typeinf_ext_toplevel_12393 () from /home/kittisopikulm/julia/usr/lib/julia/sys-debug.dll
#42 0x0000000000f22b57 in _jl_invoke (F=0x1058b7a40 <jl_system_image_data+49388416>, args=0xc3c958, nargs=2, mfunc=0x102bad080 <jl_system_image_data+2159040>, world=4186) at /home/kittisopikulm/julia/src/gf.c:2172
#43 0x0000000000f23458 in jl_apply_generic (F=0x1058b7a40 <jl_system_image_data+49388416>, args=0xc3c958, nargs=2) at /home/kittisopikulm/julia/src/gf.c:2373
#44 0x0000000000f1a9ce in jl_apply (args=0xc3c950, nargs=3) at /home/kittisopikulm/julia/src/julia.h:1690
#45 0x0000000000f1c33c in jl_type_infer (mi=0x10b0a7750, world=29278, force=0) at /home/kittisopikulm/julia/src/gf.c:300
#46 0x0000000000fc64de in jl_generate_fptr (mi=0x10b0a7750, world=29278) at /home/kittisopikulm/julia/src/jitlayers.cpp:310
#47 0x0000000000f21ce3 in jl_compile_method_internal (mi=0x10b0a7750, world=29278) at /home/kittisopikulm/julia/src/gf.c:1924
#48 0x0000000000f22bcb in _jl_invoke (F=0x104261510 <jl_system_image_data+25966160>, args=0xc3ce98, nargs=2, mfunc=0x10b0a7750, world=29278) at /home/kittisopikulm/julia/src/gf.c:2183
#49 0x0000000000f23458 in jl_apply_generic (F=0x104261510 <jl_system_image_data+25966160>, args=0xc3ce98, nargs=2) at /home/kittisopikulm/julia/src/gf.c:2373
#50 0x00000001026740e4 in japi1_Type##kw_52860 (prompt=0x105b794b0 <jl_system_image_data+52278768>) at C:\cygwin64\home\kittisopikulm\julia\usr\share\julia\stdlib\v1.6\REPL\src\LineEdit.jl:2409
#51 0x00000001027d4829 in julia_setup_interface_49139 (repl=..., hascolor=1 '\001', extra_repl_keymap=0x10b001be0) at C:\cygwin64\home\kittisopikulm\julia\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:887
#52 0x00000001027d7c15 in julia_#setup_interface#68_49120 (hascolor=1 '\001', extra_repl_keymap=0x10b001be0, repl=...) at C:\cygwin64\home\kittisopikulm\julia\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:848
#53 0x00000001026dfc22 in setup_interface () at C:\cygwin64\home\kittisopikulm\julia\usr\share\julia\stdlib\v1.6\REPL\src/REPL.jl:848
#54 japi1_#1_19481 (repl=...) at C:\cygwin64\home\kittisopikulm\julia\usr\share\julia\stdlib\v1.6\Pkg\src\Pkg.jl:541
#55 0x0000000000f21f15 in jl_fptr_args (f=0x102fb9810 <jl_system_image_data+6404432>, args=0xc3d610, nargs=1, m=0x104d22710 <jl_system_image_data+37242960>) at /home/kittisopikulm/julia/src/gf.c:1960
#56 0x0000000000f22b57 in _jl_invoke (F=0x102fb9810 <jl_system_image_data+6404432>, args=0xc3d610, nargs=1, mfunc=0x102fb9320 <jl_system_image_data+6403168>, world=29278) at /home/kittisopikulm/julia/src/gf.c:2172
#57 0x0000000000f23458 in jl_apply_generic (F=0x102fb9810 <jl_system_image_data+6404432>, args=0xc3d610, nargs=1) at /home/kittisopikulm/julia/src/gf.c:2373
#58 0x00000001027e674e in japi1___atreplinit_31444 (repl=...) at client.jl:336
#59 0x0000000000f21f15 in jl_fptr_args (f=0x1038bf250 <jl_system_image_data+15864720>, args=0xc3da28, nargs=1, m=0x1038beeb0 <jl_system_image_data+15863792>) at /home/kittisopikulm/julia/src/gf.c:1960
#60 0x0000000000f22b57 in _jl_invoke (F=0x1038bf250 <jl_system_image_data+15864720>, args=0xc3da28, nargs=1, mfunc=0x1038bedf0 <jl_system_image_data+15863600>, world=29278) at /home/kittisopikulm/julia/src/gf.c:2172
#61 0x0000000000f23458 in jl_apply_generic (F=0x1038bf250 <jl_system_image_data+15864720>, args=0xc3da28, nargs=1) at /home/kittisopikulm/julia/src/gf.c:2373
#62 0x0000000000f3264f in jl_apply (args=0xc3da20, nargs=2) at /home/kittisopikulm/julia/src/julia.h:1690
#63 0x0000000000f35af9 in do_apply (F=0x0, args=0xc3dcd0, nargs=2, iterate=0x0) at /home/kittisopikulm/julia/src/builtins.c:672
--Type <RET> for more, q to quit, c to continue without paging--
#64 0x0000000000f35c15 in jl_f__apply (F=0x0, args=0xc3dcd0, nargs=2) at /home/kittisopikulm/julia/src/builtins.c:686
#65 0x0000000000f35df6 in jl_f__apply_latest (F=0x0, args=0xc3dcd0, nargs=2) at /home/kittisopikulm/julia/src/builtins.c:722
#66 0x00000001025c0cf8 in #invokelatest#2 () at essentials.jl:709
#67 invokelatest () at essentials.jl:708
#68 _atreplinit () at client.jl:343
#69 julia_#859_29017 (REPL=0x101ef4a08) at client.jl:386
#70 0x00000001025c0e43 in jfptr_YY.859_29018 () from /home/kittisopikulm/julia/usr/lib/julia/sys-debug.dll
#71 0x0000000000f22b57 in _jl_invoke (F=0x10b04c300, args=0xc3df58, nargs=1, mfunc=0x1038be4c0 <jl_system_image_data+15861248>, world=29278) at /home/kittisopikulm/julia/src/gf.c:2172
#72 0x0000000000f23458 in jl_apply_generic (F=0x10b04c300, args=0xc3df58, nargs=1) at /home/kittisopikulm/julia/src/gf.c:2373
#73 0x0000000000f3264f in jl_apply (args=0xc3df50, nargs=2) at /home/kittisopikulm/julia/src/julia.h:1690
#74 0x0000000000f35af9 in do_apply (F=0x0, args=0xc3e340, nargs=2, iterate=0x0) at /home/kittisopikulm/julia/src/builtins.c:672
#75 0x0000000000f35c15 in jl_f__apply (F=0x0, args=0xc3e340, nargs=2) at /home/kittisopikulm/julia/src/builtins.c:686
#76 0x0000000000f35df6 in jl_f__apply_latest (F=0x0, args=0xc3e340, nargs=2) at /home/kittisopikulm/julia/src/builtins.c:722
#77 0x00000001026cc055 in #invokelatest#2 () at essentials.jl:709
#78 invokelatest () at essentials.jl:708
#79 julia_run_main_repl_33960 (interactive=1 '\001', quiet=0 '\000', banner=1 '\001', history_file=1 '\001', color_set=0 '\000') at client.jl:372
#80 0x00000001026d9c00 in julia_exec_options_30469 (opts=...) at client.jl:302
#81 0x00000001026dc415 in julia__start_48984 () at client.jl:485
#82 0x00000001026dc5e5 in jfptr.start_48985 () from /home/kittisopikulm/julia/usr/lib/julia/sys-debug.dll
#83 0x0000000000f22b57 in _jl_invoke (F=0x103181b90 <jl_system_image_data+8273104>, args=0xc3faf8, nargs=0, mfunc=0x103181720 <jl_system_image_data+8271968>, world=29278) at /home/kittisopikulm/julia/src/gf.c:2172
#84 0x0000000000f23458 in jl_apply_generic (F=0x103181b90 <jl_system_image_data+8273104>, args=0xc3faf8, nargs=0) at /home/kittisopikulm/julia/src/gf.c:2373
#85 0x0000000000f97d09 in jl_apply (args=0xc3faf0, nargs=1) at /home/kittisopikulm/julia/src/julia.h:1690
#86 0x0000000000f99d14 in true_main (argc=0, argv=0xda3e98) at /home/kittisopikulm/julia/src/jlapi.c:553
#87 0x0000000000f9a34a in repl_entrypoint (argc=0, argv=0xda3e98) at /home/kittisopikulm/julia/src/jlapi.c:672
#88 0x0000000000401eab in load_repl (exe_dir=0x406000 <exe_dir> "C:\\cygwin64\\home\\kittisopikulm\\julia\\usr\\bin", argc=1, argv=0xda3e90) at /home/kittisopikulm/julia/cli/loader_lib.c:183
#89 0x000000000040113c in mainCRTStartup () at /home/kittisopikulm/julia/cli/loader_exe.c:46

If I invoke versioninfo() Julia starts fine and is able to run commands with JULIA_COPY_STACKS=1.

$ JULIA_COPY_STACKS=1 ./julia-debug.exe -e "using InteractiveUtils" -i                         _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1185 (2020-10-11)
 _/ |\__'_|_|_|\__'_|  |  Commit 3bfcb743c2 (0 days old master)
|__/                   |


$ echo $?
1

$ JULIA_COPY_STACKS=1 ./julia-debug.exe -e "using InteractiveUtils; versioninfo()" -i
Julia Version 1.6.0-DEV.1185
Commit 3bfcb743c2 (2020-10-11 23:29 UTC)
DEBUG build
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-10.0.1 (ORCJIT, skylake)
Environment:
  JULIA_COPY_STACKS = 1
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1185 (2020-10-11)
 _/ |\__'_|_|_|\__'_|  |  Commit 3bfcb743c2 (0 days old master)
|__/                   |

julia> println("Julia is running just fine")
Julia is running just fine

julia> exit()

$ echo $?
0

I reduced versioninfo() into Base.printmatrix(stdout,[]). My sense is that we just needed something to compile before we do more stuff.

$ JULIA_COPY_STACKS=1 ./julia-debug.exe -e "Base.print_matrix(stdout,[])" -i
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1185 (2020-10-11)
 _/ |\__'_|_|_|\__'_|  |  Commit 3bfcb743c2 (0 days old master)
|__/                   |

julia> println("Julia is running just fine")
Julia is running just fine