I think I founded a bug in the offline messages. Here is the stack #0 0xb7b4bd79 in gloox::JID::setJID (this=0xb7728bf8, jid=@0x81482d8) at jid.cpp:23 23 if ( jid.empty() ) (gdb) bt #0 0xb7b4bd79 in gloox::JID::setJID (this=0xb7728bf8, jid=@0x81482d8) at jid.cpp:23 #1 0xb7bac67e in gloox::FlexibleOffline::checkSupport (this=0x8148b20) at jid.h:43 #2 0x080900bc in xmpp::Connection::request_offlinemsgs (this=0x8148100) at src/Connection.cpp:318 #3 0x080905bc in xmpp::Connection::onConnect (this=0x8148100) at src/Connection.cpp:160 #4 0xb7b52f7b in gloox::ClientBase::notifyOnConnect (this=0x81b5650) at util.h:91 #5 0xb7b74694 in gloox::Client::rosterFilled (this=0x81b5650) at client.cpp:581 #6 0xb7b74524 in gloox::Client::connected (this=0x81b5650) at client.cpp:568 #7 0xb7b74bdb in gloox::Client::processCreateSession (this=0x81b5650, iq=@0x81482d8) at client.cpp:497 #8 0xb7b776d5 in gloox::Client::handleIqIDForward (this=0x81b5650, iq=@0xb7728f84, context=1002) at client.cpp:420 #9 0xb7b53cf0 in gloox::ClientBase::handleIqID (this=0x81b5650, iq=@0x0, context=135561944) at clientbase.cpp:939 #10 0xb7b56c07 in gloox::ClientBase::notifyIqHandlers (this=0x81b5650, iq=@0xb7728f84) at clientbase.cpp:1376 #11 0xb7b61939 in gloox::ClientBase::handleTag (this=0x81b5650, tag=0x8147c60) at clientbase.cpp:242 #12 0xb7b4e5af in gloox::Parser::streamEvent (this=0x81b5794, tag=0x8147c60) at parser.cpp:797 #13 0xb7b4e91a in gloox::Parser::closeTag (this=0x81b5794) at parser.cpp:754 #14 0xb7b51364 in gloox::Parser::feed (this=0x81b5794, data=@0xb7729194) at parser.cpp:417 #15 0xb7b5ea20 in gloox::ClientBase::parse (this=0x81b5650, data=@0xb7729204) at clientbase.cpp:397 #16 0xb7b5f2c4 in gloox::ClientBase::handleDecompressedData (this=0x81b5650, data=@0xb7729204) at clientbase.cpp:297 #17 0xb7bf0103 in gloox::CompressionZlib::decompress (this=0x8148b38, data=@0xb7729264) at compressionzlib.cpp:119 #18 0xb7b5f27f in gloox::ClientBase::handleDecryptedData (this=0x81b5650, data=@0xb7729264) at clientbase.cpp:311 #19 0xb7bf402c in gloox::GnuTLSBase::decrypt (this=0x8151020, data=@0xb77292d4) at tlsgnutlsbase.cpp:81 #20 0xb7bf5641 in gloox::TLSDefault::decrypt (this=0x8150e78, data=@0xb77292d4) at tlsdefault.cpp:110 #21 0xb7b5f214 in gloox::ClientBase::handleReceivedData (this=0x81b5650, data=@0xb77292d4) at clientbase.cpp:341 #22 0xb7b52779 in gloox::ConnectionTCPClient::recv (this=0x81b08b8, timeout=1000000) at connectiontcpclient.cpp:154 #23 0xb7c0b22e in gloox::ConnectionTCPBase::receive (this=0x81b08b8) at connectiontcpbase.cpp:112 #24 0xb7b60587 in gloox::ClientBase::connect (this=0x81b5650, block=true) at clientbase.cpp:196 #25 0x080909b0 in xmpp::Connection::run (this=0x8148100) at src/Connection.cpp:131 #26 0x080f80e6 in threading::ThreadManager::threadWorker (data=0x8148100) at src/ThreadManager.cpp:13 #27 0xb791d4fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #28 0xb789ff5e in clone () from /lib/tls/i686/cmov/libc.so.6