You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you build libdispatch.so on Linux, the resulting binary does not contain the `RUNPATH` or `NEEDED` commands necessary for loading libswiftCore.so. This
results in scripts loading libdispatch.so crashing at runtime for undefined symbols.
This is not a problem if you're using Swift, and link libswiftCore regardless, but for binaries that are dlopening libdispatch, or just don't care about the implementation details of it, this is required for them to work correctly.
To reproduce this using Docker, run these commands:
Additional Detail from JIRA
md5: c0f02d6d8953def87cb00eb74a8a6601
Issue Description:
Currently if you build libdispatch.so on Linux, the resulting binary does not contain the `RUNPATH` or `NEEDED` commands necessary for loading libswiftCore.so. This
results in scripts loading libdispatch.so crashing at runtime for undefined symbols.
This is not a problem if you're using Swift, and link libswiftCore regardless, but for binaries that are dlopening libdispatch, or just don't care about the implementation details of it, this is required for them to work correctly.
To reproduce this using Docker, run these commands:
By running this you will see this crash:
You can also see that this doesn't happen if you pass libswiftCore with `LD_PRELOAD`:
The text was updated successfully, but these errors were encountered: