Open IanButterworth opened 6 months ago
I see the ld: warning: reexported library with install name '@rpath/libunwind.1.dylib'
error on release-1.11
but not the line number issue
Usually something like that happens if the unwind info (dSYM) package is not generated correctly from the right source files (even though it should be verified by build id and hashes before getting used, we might be forcing it to use info even if that doesn't precisely match. The debug info is found by a spotlight search on the system)
I don't quite follow what should be done about this, but in case it's a useful datapoint I did a fully clean build and the issue remains.
MacOS 14.4.1
The incorrect line numbers seems to have been fixed by https://github.com/JuliaLang/julia/pull/54032
still happening with v1.11 branch on M2 pro MacOS 14.5
While it might be only partly related, I get the same warning on a M3 pro macOs 14.5 when using PackageCompiler.jl to create a simple sys image. However the generated image is only 16 KB and it fails consistency check.
I've been seeing messages about the profiler accessing something illegal (don't have the error at hand, sorry) and wondered if this is related.
@vtjnash I think you may be most knowledgeable about how to fix this, if you can give more detailed instructions to debug/fix. Thanks.
Could this be causing dropped profile frames like this (window on the right is ProfileView.view(C=true)
)
or do we need to reopen https://github.com/JuliaLang/julia/issues/38350
@gbaraldi I think you had looked into this issue?
Adding that on 1.10.4 Linux aarch64 via VM on macOS shows the same large base for @profile sqrt(rand(10, 10))
After a full clean build I see this ld warning.
Update: Line numbers fixed by https://github.com/JuliaLang/julia/pull/54032
Then, I assume related, the 2nd & 3rd line numbers are off (possibly others, unchecked) https://github.com/JuliaLang/julia/blob/6c22dfd3180b82566cc3fce2cea5782623d6e1e9/base/precompilation.jl#L372 https://github.com/JuliaLang/julia/blob/6c22dfd3180b82566cc3fce2cea5782623d6e1e9/base/loading.jl#L2291