GCC 5 in Fedora (Red Hat developer blog)
GCC 5 in Fedora (Red Hat developer blog)
Posted Feb 10, 2015 23:25 UTC (Tue) by tetromino (guest, #33846)In reply to: GCC 5 in Fedora (Red Hat developer blog) by juliank
Parent article: GCC 5 in Fedora (Red Hat developer blog)
>
> As far as I can tell, that will crash randomly. With two different libstdc++ sonames, such a case could be easily identified.
The symbol versioning approach makes random crashes rather unlikely. (AFAICS, they can occur only if something in C's public API takes a pointer/reference to one of the stl structures whose ABI changed, and P uses that feature of C's API.)
The soname versioning approach makes random crashes virtually guaranteed, because ld.so will happily pull in both sonames at runtime, and then everything in P's internals, everyting in C's internals, and worst of all, libstdc++ own internals will all be exposed to incompatible ABIs. However, in this case, the crash's cause will be easier to diagnose for a moderately sophisticated user (as long as P doesn't have a binary plugin infrastructure).
