Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing --strip-metadata produces a binary that throws source not available #57540

Open
nickrobinson251 opened this issue Feb 26, 2025 · 1 comment

Comments

@nickrobinson251
Copy link
Contributor

nickrobinson251 commented Feb 26, 2025

Using v1.10.2, we tried passing --strip-metadata (to PackageCompiler.create_app) but at runtime we see the error:

source not available for free(OpenSSL.BIOMethod) from free(OpenSSL.BIOMethod)
error in running finalizer: ErrorException("source missing for method that needs to be compiled")
thread (1) ijl_error at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/rtutils.c:41
thread (1) jl_compile_method_internal at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gf.c:2572 [inlined]
thread (1) jl_compile_method_internal at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gf.c:2444
thread (1) _jl_invoke at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gf.c:2968 [inlined]
thread (1) ijl_apply_generic at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gf.c:3168
thread (1) run_finalizer at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gc.c:349
thread (1) jl_gc_run_finalizers_in_list at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gc.c:439
thread (1) run_finalizers at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/gc.c:485
thread (1) ijl_atexit_hook at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/init.c:299
thread (1) ijl_exit at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/init.c:207
thread (1) ijl_no_exc_handler at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/task.c:706
thread (1) throw_internal at /build/julia-v1.10.2+RAI-377f91713dba05617491301d81c12ac189ca132b/src/task.c:752

Given the binary works as expected when built without --strip-metadata, and that option is only supposed to remove debug info types of things, I think this is a bug.

Let me know what more info would be helpful. Some folks at JuliaHub have access to the RAI codebase so we can help them reproduce this if helpful.

(The RAI codebase isn't yet compatible with Julia v1.11 or v1.12 so i've not been able to check if the same issue is present in those versions)

@KristofferC
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants