Self test federation.FederationTests.test_dynamic_topic locks up. Pstack shows three threads with the same trace:
#0 pthread_rwlock_wrlock ()
The lock occurs because there are two simultaneous session detach calls going on. Each takes out the Rlock and then tries to take out the Wlock. Neither will get the Wlock until everyone else releases their Rlock. Subsequent detach calls fall into the same catch as they get the Rlock but not the Wlock.
This condition is present in both the XmlExchange and DirectExchange. I'll have a patch for review shortly.