Hi,
I wrote some Julia code and it is working on Windows 11 but not on OSX. When I run the code in terminal on Mac, I get segmentation fault (see below).
How can I solve the issue? Thank you for any advice.
signal (11): Segmentation fault: 11
in expression starting at /Users/ekozlowska/Documents/work/STING_project/model_Julia/test.jl:107
ntuple at ./ntuple.jl:0
unknown function (ip: 0x102b5b837)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_typed_hvncat at ./abstractarray.jl:2196
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
do_apply at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_typed_hvncat at ./abstractarray.jl:2156
_hvncat at ./abstractarray.jl:2137 [inlined]
hvncat at ./abstractarray.jl:2130 [inlined]
neighbors at /Users/ekozlowska/Documents/work/STING_project/model_Julia/ABM.jl:127
getFreeNgh at /Users/ekozlowska/Documents/work/STING_project/model_Julia/ABM.jl:138
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
migration at /Users/ekozlowska/Documents/work/STING_project/model_Julia/ABM.jl:249
sim_iteration at /Users/ekozlowska/Documents/work/STING_project/model_Julia/ABM.jl:354
run_model at /Users/ekozlowska/Documents/work/STING_project/model_Julia/test.jl:37
macro expansion at ./timing.jl:220 [inlined]
main at /Users/ekozlowska/Documents/work/STING_project/model_Julia/test.jl:101
unknown function (ip: 0x1028bc3e3)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
do_call at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
eval_body at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_interpret_toplevel_thunk at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_toplevel_eval_flex at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_toplevel_eval_in at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
eval at ./boot.jl:373 [inlined]
include_string at ./loading.jl:1196
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
_include at ./loading.jl:1253
include at ./Base.jl:418
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
exec_options at ./client.jl:292
_start at ./client.jl:495
jl_sysimg_fvars_base at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
jl_apply_generic at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
true_main at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
jl_repl_entrypoint at /Applications/Julia-1.7.app/Contents/Resources/julia/lib/julia/libjulia-internal.1.7.dylib (unknown line)
Allocations: 195215072 (Pool: 195173509; Big: 41563); GC: 89
ekozlowska@MacBook-Pro-Emilia model_Julia %