Open etam opened 1 year ago
This is probably because we're using a custom --version-script
:
Okay, just tested this and it's not because of the investigating...--version-script
,
Sooo, this essentially boils down to a nullptr
dereference because the symbols actually resolve to null
:
With LTO:
$ nm -D result/lib/libip2unix.so | grep socket
0000000000000000 A socket
Without LTO:
$ nm -D result/lib/libip2unix.so | grep socket
000000000000fed0 T socket
In openSUSE all packages have by default enabled LTO (but in cases like this it can be easily disabled). Fortunately this is caught by the tests, because helpers/helper_accept_no_peer_addr crashes and a test fails.