Skip to content

Image built with latest Julia 1.12 is crashing because of Global Base.PROGRAM_FILE does not exist and cannot be assigned #1066

@ig-or

Description

@ig-or

Hello,
with update to the latest Julia version I cannot run executables built with Package Compiler. All is crashing with following message:

`fatal: error thrown and no exception handler available.

ErrorException("Global Base.PROGRAM_FILE does not exist and cannot be assigned.\nNote: Julia 1.9 and 1.10 inadvertently omitted this error check (#56933).\nHint: Declare it using global PROGRAM_FILE inside Base before attempting assignment.")

ijl_errorf at C:/workdir/src\rtutils.c:79

ijl_check_binding_currently_writable at C:/workdir/src\module.c:824 [inlined]

ijl_get_binding_wr at C:/workdir/src\module.c:849

wmain at C:\Users\ISandler\space\rdm_rtc_116\bin\rdm_lupin_way_test.exe (unknown line)

__tmainCRTStartup at C:\Users\ISandler\space\rdm_rtc_116\bin\rdm_lupin_way_test.exe (unknown line)

.l_start at C:\Users\ISandler\space\rdm_rtc_116\bin\rdm_lupin_way_test.exe (unknown line)

BaseThreadInitThunk at C:\Windows\System32\KERNEL32.DLL (unknown line)

RtlUserThreadStart at C:\Windows\SYSTEM32\ntdll.dll (unknown line)`

I understand that probably one of the 30+ dependencies that I'm using in a project is doing something with PROGRAM_FILE variable. Is there a way to understand in what package the crash happened? Or what is a good way to handle this?

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions