Closed leighmcculloch closed 3 weeks ago
This is the only place I've found the "initializer pointer has no target" error mentioned:
What does this
ld
error mean?ld: multiple errors: initializer pointer has no target in ...
Happens on apple clang when building a Rust NAPI dylib with the address sanitizer on.
I can't find documentation on the error.
Ref: https://x.com/yamadapc/status/1825457910962340009 (@yamadapc)
It appears the problem is worked around by removing the "cdylib" crate type. I also tried using multiple crate types like "lib", "cdylib"
but taht still errored. I had to remove the entire crate-type
config, or set it to only "lib"
.
Edit: Spoke too soon, and that wasn't enough. While that worked for a fuzzer that imports a contract and sdk, it doesn't work for a fuzz test that actually uses types from there.
Ah, so it appears I've been hit by this issue, we already knew about, and already have a work around for:
The work around is to add --sanitizer=thread
to the fuzz run command.
Duplicate of https://github.com/stellar/rs-soroban-sdk/issues/1056
Recently I've been unable to build cargo fuzz targets that import a contract.