https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127210
Marvin Friede <m.friede7 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |m.friede7 at gmail dot com
--- Comment #4 from Marvin Friede <m.friede7 at gmail dot com> ---
Hello,
we actually hit this in production on conda-forge
(https://github.com/grimme-lab/xtb/issues/1422), where it caused silent runtime
mis-dispatch and a SIGSEGV rather than a compile-time error.
Our project (`xtb`) depends on a shared library (`multicharge`), which itself
depends on an upstream Fortran library (`mctc-lib`). Rebuilding the unchanged
`multicharge 0.5.0` source with the same GCC 14.3.0 against an updated
`mctc-lib` (0.5.1 -> 0.5.2) reordered the vtable of an abstract derived type in
`multicharge`, causing existing `xtb` binaries to dispatch a type-bound
procedure call to the wrong procedure and crash. This can happen on conda-forge
because the two `multicharge` builds have the same version (`0.5.0`) and
compiler ABI tag, and only differ in build number. Therefire, Conda treats the
rebuilt package as a drop-in replacement.
Because this breaks ABI on routine dependency rebuilds without modifying the
library's own source, the extension-module fix does not work in binary
distributions like conda-forge. Does this change your view on the ABI break, or
should we consider workarounds on our side (like exact dependency pins)?
Best,
Marvin