Skip to content

Commit

Permalink
Also guard jl_atexit_hook() from calling jl_apply()
Browse files Browse the repository at this point in the history
Once again, we're erroring out at an awkward time where LLVM is not
available, but `jl_base_module` is defined.
  • Loading branch information
staticfloat committed Jun 27, 2022
1 parent 7a772f0 commit 03527d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ JL_DLLEXPORT void jl_atexit_hook(int exitcode)
jl_write_coverage_data(jl_options.output_code_coverage);
if (jl_options.malloc_log)
jl_write_malloc_log();
if (jl_base_module) {
if (jl_base_module && jl_error_sym) {
jl_value_t *f = jl_get_global(jl_base_module, jl_symbol("_atexit"));
if (f != NULL) {
JL_TRY {
Expand Down

0 comments on commit 03527d4

Please sign in to comment.