While running under our persistence stress test suite, the C++ broker will occasionally crash with:
Thread 1 (process 29629):
#0 qpid::broker::SessionHandler::getConnection (this=0x0) at
#1 0x0000002a958037e4 in
(this=Variable "this" is not available.
) at ./qpid/RefCounted.h:42
#2 0x0000002a95803b79 in
(this=0x2a9d8fc490, sync=Variable "sync" is not available.
<persistence code completes message enqueue>
It appears that there is a window where the session is detached when the completion occurs, which results in a null pointer reference.