Hi!
If we change examples/interfaces/08.events.cpp to use localhost:employee, the example crashes in development with an assert:
Stack trace from v5:
__pthread_kill_implementation (threadid=281474842427424, signo=signo@entry=6,
no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
warning: 44 ./nptl/pthread_kill.c: No such file or directory
(gdb) bt
#0 __pthread_kill_implementation (threadid=281474842427424, signo=signo@entry=6,
no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x0000fffff744d934 [PAC] in __pthread_kill_internal (threadid=<optimized out>, signo=6)
at ./nptl/pthread_kill.c:89
#2 0x0000fffff73f7e3c in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x0000fffff73e1d88 [PAC] in __GI_abort () at ./stdlib/abort.c:77
#4 0x0000fffff7a1d024 [PAC] in fb_assert_impl (msg=0xfffff7d56bb0 "locked",
file=0xfffff7d56b40 "/home/asfernandes/fb/dev/firebird-5.0/src/remote/../remote/remote.h", line=1560, do_abort=true)
at /home/asfernandes/fb/dev/firebird-5.0/src/include/../common/gdsassert.h:48
#5 0x0000fffff7af28bc in rem_port::releasePort (this=0xfffff737ccd0)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/../remote/remote.h:1560
#6 0x0000fffff7aee2e8 in disconnect (port=0xfffff737ccd0)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/inet.cpp:1811
#7 0x0000fffff7aee184 in disconnect (port=0xfffff7376fd0)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/inet.cpp:1779
#8 0x0000fffff7b06e74 in rem_port::disconnect (this=0xfffff7376fd0)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/remote.cpp:657
#9 0x0000fffff7b2e2f0 in Remote::disconnect (port=0xfffff7376fd0, rmRef=true)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/client/interface.cpp:8547
#10 0x0000fffff7b1adfc in Remote::Attachment::freeClientData (this=0xfffff797a5e0,
status=0xffffffffe120, force=false)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/client/interface.cpp:2237
#11 0x0000fffff7b1afd4 in Remote::Attachment::internalDetach (this=0xfffff797a5e0,
status=0xffffffffe120)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/client/interface.cpp:2260
#12 0x0000fffff7b1b010 in Remote::Attachment::detach (this=0xfffff797a5e0,
status=0xffffffffe120)
at /home/asfernandes/fb/dev/firebird-5.0/src/remote/client/interface.cpp:2266
#13 0x0000fffff7b4e040 in Firebird::IAttachmentBaseImpl<Remote::Attachment, Firebird::CheckStatusWrapper, Firebird::IReferenceCountedImpl<Remote::Attachment, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IVersionedImpl<Remote::Attachment, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IAttachment> > > > >::cloopdetachDispatcher (
self=0xfffff797a5e8, status=0xffffffffe368)
at /home/asfernandes/fb/dev/firebird-5.0/src/include/firebird/IdlFbInterfaces.h:12157
#14 0x0000fffff7ab1e68 in Firebird::IAttachment::detach<Firebird::CheckStatusWrapper> (
this=0xfffff797a5e8, status=0xffffffffe360)
at /home/asfernandes/fb/dev/firebird-5.0/src/include/firebird/IdlFbInterfaces.h:2814
#15 0x0000fffff7a8c508 in operator() (__closure=0xffffffffe2e8)
at /home/asfernandes/fb/dev/firebird-5.0/src/yvalve/why.cpp:6080
#16 0x0000fffff7a9c78c in std::__invoke_impl<void, Why::YAttachment::detach(Firebird::CheckStatusWrapper*)::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...)
at /usr/include/c++/15/bits/invoke.h:63
--Type <RET> for more, q to quit, c to continue without paging--
#17 0x0000fffff7a99b28 in std::__invoke_r<void, Why::YAttachment::detach(Firebird::CheckStatusWrapper*)::<lambda()>&>(struct {...} &) (__fn=...)
at /usr/include/c++/15/bits/invoke.h:113
#18 0x0000fffff7a9622c in std::_Function_handler<void(), Why::YAttachment::detach(Firebird::CheckStatusWrapper*)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...)
at /usr/include/c++/15/bits/std_function.h:292
#19 0x0000fffff7aa59b8 in std::function<void()>::operator() (this=0xffffffffe2e8)
at /usr/include/c++/15/bits/std_function.h:593
#20 0x0000fffff7ab1f44 in Why::done<Why::YAttachment> (status=0xffffffffe360, entry=...,
y=0xfffff737c6d0, newClose=..., oldClose=...)
at /home/asfernandes/fb/dev/firebird-5.0/src/yvalve/why.cpp:1354
#21 0x0000fffff7a8c684 in Why::YAttachment::detach (this=0xfffff737c6d0,
status=0xffffffffe360) at /home/asfernandes/fb/dev/firebird-5.0/src/yvalve/why.cpp:6079
#22 0x0000fffff7ae3900 in Firebird::IAttachmentBaseImpl<Why::YAttachment, Firebird::CheckStatusWrapper, Firebird::IReferenceCountedImpl<Why::YAttachment, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IVersionedImpl<Why::YAttachment, Firebird::CheckStatusWrapper, Firebird::Inherit<Firebird::IAttachment> > > > >::cloopdetachDispatcher (
self=0xfffff737c6d8, status=0xffffffffe5a8)
at /home/asfernandes/fb/dev/firebird-5.0/src/include/firebird/IdlFbInterfaces.h:12157
#23 0x0000aaaaaaaa346c in void Firebird::IAttachment::detach<Firebird::ThrowStatusWrapper>(Firebird::ThrowStatusWrapper*) ()
Adriano