Skip to content

JULIA_CPU_TARGET precompilation for packages crashes on master #51516

@vchuravy

Description

@vchuravy
vchuravy@odin ~/b/julia> JULIA_CPU_TARGET="generic;haswell" ./julia --project=TestPkg/
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.0-DEV.574 (2023-09-29)
 _/ |\__'_|_|_|\__'_|  |  vc/ccallable/5d3280dc34* (fork: 1 commits, 0 days)
|__/                   |

(TestPkg) pkg> precompile
Precompiling project...
        Info Given TestPkg was explicitly requested, output will be shown live 

[1046910] signal (11.1): Segmentation fault
in expression starting at none:0
ijl_new_struct at /home/vchuravy/src/julia/src/datatype.c:1404
parse_sysimg<unsigned int (&)(void const*, _jl_value_t**)> at /home/vchuravy/src/julia/src/processor.cpp:645 [inlined]
jl_init_processor_sysimg at /home/vchuravy/src/julia/src/processor_x86.cpp:1062
ijl_set_sysimg_so at /home/vchuravy/src/julia/src/staticdata.c:2842
_finish_julia_init at /home/vchuravy/src/julia/src/init.c:848
jl_repl_entrypoint at /home/vchuravy/src/julia/src/jlapi.c:725
main at /home/vchuravy/src/julia/cli/loader_exe.c:58
unknown function (ip: 0x7f43e6e27ccf)
__libc_start_main at /usr/lib/libc.so.6 (unknown line)
_start at /home/vchuravy/builds/julia/usr/bin/julia (unknown line)
Allocations: 0 (Pool: 0; Big: 0); GC: 0

Julia 1.10-beta2:

vchuravy@odin ~/b/julia> JULIA_CPU_TARGET="generic;haswell" julia --project=TestPkg/
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.0-beta2 (2023-08-17)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(TestPkg) pkg> precompile
Precompiling project...
  1 dependency successfully precompiled in 1 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorcompiler:precompilationPrecompilation of modulesneeds testsUnit tests are required for this change

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions