hi all.
i use stable version gloox.0.9.4.1 now.
i testing the example src/example disco_example.cpp
i just add one code for testing the disco,
#code::
virtual void onConnect()
{
printf(" cyclone had connect success\n");
j->disco()->getDiscoInfo( JID("jabber.org"),NULL,this,0,"");
}
#code::end
and then the it fault :
log: level: 0, area: 16384, <iq type='set' id='bind'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>gloox</resource></bind></iq>
log: level: 0, area: 8192, <iq id='bind' type='result'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>
cycloneblog@xxxxxxxxx/glooxA636D2DE</jid></bind></iq>
log: level: 0, area: 16384, <iq type='set' id='session'><session
xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
log: level: 0, area: 8192, <iq type='result' id='session'/>
log: level: 0, area: 16384, <presence><priority>0</priority></presence>
cyclone had connect success
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
忽略 (core dumped)
=========
the gdb core information is ::
gdb disco_example core
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".
warning: exec file is newer than core file.
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/local/lib/libgloox.so.7...done.
Loaded symbols for /usr/local/lib/libgloox.so.7
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/libgnutls.so.13...done.
Loaded symbols for /usr/lib/libgnutls.so.13
Reading symbols from /usr/lib/libtasn1.so.3...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib/libgcrypt.so.11...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /usr/lib/libgpg-error.so.0...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
Core was generated by `./disco_example'.
Program terminated with signal 6, Aborted.
#0 0xffffe410 in __kernel_vsyscall ()
(gdb)
does anyone know what ' bug make it . or maybe i use the disco in error way
?
does the gloox in 0.9.4.1 has finial the server discover ?