[asterisk-dev] trunk and res_jabber segfault

Julian Lyndon-Smith asterisk at dotr.com
Thu May 25 09:26:45 MST 2006


Downloaded the latest trunk of asterisk (30271), because I was wanting 
to test the jabber functionality.

I've set up a jabber connection, but when * gets a response back from 
the jabber server, it segfaults.

Asterisk Ready.
*CLI>
JABBER: asterisk INCOMING: <proceed 
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream 
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' 
to='jmls' version='1.0'>

JABBER: asterisk INCOMING: <?xml version='1.0' 
encoding='UTF-8'?><stream:stream 
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" 
from="xxx.xxxx.co.uk" id="589b7cbe" xml:lang="en" 
version="1.0"><stream:features><mechanisms 
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms></stream:features>
Segmentation fault (core dumped)

A) if I comment out usesasl in /etc/asterisk/jabber.conf then there is 
no segfault. There is no debug output. But there is no connection made 
either :)

B) If I uncomment usetls then I get

JABBER: asterisk INCOMING: <proceed 
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

JABBER: asterisk OUTGOING: <?xml version='1.0'?><stream:stream 
xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' 
to='jmls' version='1.0'>

JABBER: asterisk INCOMING: <?xml version='1.0' 
encoding='UTF-8'?><stream:stream 
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" 
from="xxxx.xxxx.co.uk" id="c74b2fd0" xml:lang="en" 
version="1.0"><stream:features><mechanisms 
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms></stream:features>

JABBER: asterisk OUTGOING: <iq type='set' id='aaaaa' to='jmls'><query 
xmlns='jabber:iq:auth'><username/><resource>asterisk</resource><digest>xxxxx</digest></query></iq>

JABBER: asterisk INCOMING: <iq type="error" id="aaaaa" from="jmls" 
to="mike.tessera.co.uk/c74b2fd0"><query 
xmlns="jabber:iq:auth"><username/><resource>asterisk</resource><digest>xxxxx</digest></query><error 
code="400" type="modify"><bad-request 
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

(commented out the digest)

C) I tried to start with asterisk -vvvvvvvvvvvvgc, get the core dumped. 
But gdb gives me

This GDB was configured as "i386-redhat-linux-gnu"..."/tmp/core.3020": 
not in executable format: File format not recognized

and I can't do a bt




More information about the asterisk-dev mailing list