[stable, beta][CP] Please cherry pick "Don't export all symbols to the dynamic table" #53503
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-beta
merge-to-stable
Commit(s) to merge
b8ee3a9
Target
stable, beta
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/325126 (stable)
https://dart-review.googlesource.com/c/sdk/+/326246 (beta)
Issue Description
Process terminates with handled exceptions in FFI library, We are seeing consistent process termination with the latest stable Dart executable on Linux with FFI (Please see #53267)
What is the fix
We were exporting all symbols to the dynamic table so that they could be looked up using
dladdr
for the profiler and backtracer. The symbols include our statically-linked libcxx, which can create trouble when another DSO has a different version of libcxx. Now we export only the VM embedding API functions (Dart_*
) and use a specially produced table to do the symbolization.Why cherry-pick
Users are hitting this issue as segmentation faults and there is no workaround for it.
Risk
low
Issue link(s)
#53267
Extra Info
No response
The text was updated successfully, but these errors were encountered: