Skip to content

juliac --trim on windows gives exception #57941

@Ininterrompue

Description

@Ininterrompue
module HelloWorld

Base.@ccallable function main()::Cint
    println(Core.stdout, "Hello world")
    return 0
end

end

1.13.0-DEV.325, Windows 11, Powershell:

julia juliac.jl --output-exe hello --trim --experimental hello.jl

Compiles to a 12.7 MB binary, but gives an error when run:

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 0x7ff959ffcd21 -- Hello world

After compiling without --trim --experimental the resulting exe works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    system:windowsAffects only WindowstrimmingIssues with trimming functionality or PR's relevant to its performance/functionality

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions