ProxyClientBase constructor was trying to call ProxyClient::construct() method before ProxyClient object had been fully constructed. This is causing a UBSAN error reported:
- https://github.com/bitcoin/bitcoin/pull/30975#issuecomment-2511204009
- https://github.com/bitcoin/bitcoin/actions/runs/11970857809/job/33374462331?pr=30975
that looks like:
include/mp/proxy.h:95:45: runtime error: downcast of address 0x50600002bdc0 which does not point to an object of type 'ProxyClient<Interface>' (aka 'ProxyClient<ipc::capnp::messages::Init>')
0x50600002bdc0: note: object is of type 'mp::ProxyClientBase<ipc::capnp::messages::Init, interfaces::Init>'