Julia is crashing. What to do with the error?

I’m using some JSON3, JSON, PyCall and Tasks and get such a bug? Does anyone know what it means?

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffc393cc9c7 -- PyObject_GetDictPtr at C:\<user>\AppData\Local\Programs\Python\Python38\python38.dll (unknown line)
in expression starting at \\...\shared_uat$\SVN\Trinity\Projects\julia\bars\bars.jl:199
PyObject_GetDictPtr at C:\<user>\AppData\Local\Programs\Python\Python38\python38.dll (unknown line)
pydecref_ at C:\Windows\system32\config\systemprofile\.julia\packages\PyCall\zqDXB\src\PyCall.jl:114
pydecref at C:\Windows\system32\config\systemprofile\.julia\packages\PyCall\zqDXB\src\PyCall.jl:119
jl_apply at /cygdrive/d/buildbot/worker/package_win64/build/src\julia.h:1690 [inlined]
run_finalizer at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:277
jl_gc_run_finalizers_in_list at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:363
run_finalizers at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:391 [inlined]
run_finalizers at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:370
jl_gc_collect at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:3127
maybe_collect at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:827 [inlined]
jl_gc_pool_alloc at /cygdrive/d/buildbot/worker/package_win64/build/src\gc.c:1142
jl_gc_alloc_ at /cygdrive/d/buildbot/worker/package_win64/build/src\julia_internal.h:277 [inlined]
jl_pchar_to_string at /cygdrive/d/buildbot/worker/package_win64/build/src\array.c:490 [inlined]
jl_cstr_to_string at /cygdrive/d/buildbot/worker/package_win64/build/src\array.c:512
unsafe_string at .\strings\string.jl:57 [inlined]
String at .\strings\string.jl:69 [inlined]
#write#67 at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:258
write at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:258 [inlined]
#_#53 at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:87 [inlined]
WriteClosure at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:80 [inlined]
foreachfield at C:\Windows\system32\config\systemprofile\.julia\packages\StructTypes\CpLmq\src\StructTypes.jl:568 [inlined]
#write#54 at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:100 [inlined]
write at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:98 [inlined]
#write#41 at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:24
write at C:\Windows\system32\config\systemprofile\.julia\packages\JSON3\YGLA7\src\write.jl:22 [inlined]
save_function at \\...\shared_uat$\SVN\Trinity\Projects\julia\bars\bars.jl:100
#30 at .\threadingconstructs.jl:169
unknown function (ip: 000000005745F493)
jl_apply at /cygdrive/d/buildbot/worker/package_win64/build/src\julia.h:1690 [inlined]
start_task at /cygdrive/d/buildbot/worker/package_win64/build/src\task.c:707
Allocations: 57091472 (Pool: 57072867; Big: 18605); GC: 58

looks like a PyCall bug can you provide a MWE?

I would like to. But it happens not regularly…

I don’t know when and where the error happens.

I use

const snowflake = pyimport("snowflake.connector")

with the global Python env.

try
    ctx = snowflake.connect(
        user =  "...", 
        password =  "...", 
        account = "...",
        warehouse = "...",
        role="..."
    )

    try
        cs = ctx.cursor()

        cs.execute(
            """
            select bla as blu
            from "b"."l"."a"
            where Country = 'US';
            """
        )

        exchange_symbols_for_the_day = Seen_symbols(el[begin] for el in cs.fetchall())
        cs.close()
    catch e 
        @error "Inner try" exception=(e, catch_backtrace())
    end
    ctx.close()
catch e 
    @error "Outer try" exception=(e, catch_backtrace())
end
fatal: error thrown and no exception handler available.
ReadOnlyMemoryError()

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: UNKNOWN at 0x7ffc83708e6c -- RaiseException at C:\Windows\system32\KERNELBASE.dll (unknown line)
in expression starting at \\...\shared_uat$\SVN\Trinity\Projects\julia\bars\bars.jl:199
RaiseException at C:\Windows\system32\KERNELBASE.dll (unknown line)
Unwind_RaiseException at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\libgcc_s_seh-1.dll (unknown line)
_cxa_throw at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\libstdc++-6.dll (unknown line)
Znwy at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\libstdc++-6.dll (unknown line)
_ZNSt6vectorIN4llvm14DWARFDebugLine3RowESaIS2_EE17_M_realloc_insertIJRKS2_EEEvN9__gnu_cxx17__normal_iteratorIPS2_S4_EEDpOT_ at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
_ZN4llvm14DWARFDebugLine12ParsingState17appendRowToMatrixEv at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
_ZN4llvm14DWARFDebugLine9LineTable5parseERNS_18DWARFDataExtractorEPjRKNS_12DWARFContextEPKNS_9DWARFUnitESt8functionIFvNS_5ErrorEEEPNS_11raw_ostreamE at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
_ZN4llvm14DWARFDebugLine19getOrParseLineTableERNS_18DWARFDataExtractorEjRKNS_12DWARFContextEPKNS_9DWARFUnitESt8functionIFvNS_5ErrorEEE at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
_ZN4llvm12DWARFContext19getLineTableForUnitEPNS_9DWARFUnitESt8functionIFvNS_5ErrorEEE at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
_ZN4llvm12DWARFContext19getLineTableForUnitEPNS_9DWARFUnitE at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
_ZN4llvm12DWARFContext25getInliningInfoForAddressENS_6object16SectionedAddressENS_19DILineInfoSpecifierE at D:\Program Files\......\... TrinityAPI\julia\julia-1.5.0-win64\julia-1.5.0\bin\LLVM.dll (unknown line)
lookup_pointer at /cygdrive/d/buildbot/worker/package_win64/build/src\debuginfo.cpp:524
jl_getDylibFunctionInfo at /cygdrive/d/buildbot/worker/package_win64/build/src\debuginfo.cpp:1198 [inlined]
jl_getFunctionInfo at /cygdrive/d/buildbot/worker/package_win64/build/src\debuginfo.cpp:1243
jl_print_native_codeloc at /cygdrive/d/buildbot/worker/package_win64/build/src\stackwalk.c:652
jl_print_bt_entry_codeloc at /cygdrive/d/buildbot/worker/package_win64/build/src\stackwalk.c:673 [inlined]
jlbacktrace at /cygdrive/d/buildbot/worker/package_win64/build/src\stackwalk.c:732
jl_no_exc_handler at /cygdrive/d/buildbot/worker/package_win64/build/src\task.c:460
jl_finish_task at /cygdrive/d/buildbot/worker/package_win64/build/src\task.c:201
start_task at /cygdrive/d/buildbot/worker/package_win64/build/src\task.c:717
Allocations: 75448427 (Pool: 75432321; Big: 16106); GC: 78