[JDEV] Has anyone .. please tell me how! :-)
Dennis Noordsij
dennis.noordsij at wiral.com
Wed Jan 10 12:53:03 CST 2001
On Wednesday 10 January 2001 18:56, Matt Diez wrote:
> Yes, and I've got one running! It took a fair amount
> of jabber.xml wackiness, but I have base_accept handler
> using JabberBeans running successfully under Jabber 1.2.
>
> When trying under a 2-week old copy of the 1.3,
> base_accept crashed freely and readily on me...
>
> I've only had Jabber 1.2 crash on me using the
> base_connect handler (which, mind you, was
> quite a bit easier to set up).
>
> Can I have a peek at your jabber.xml setup?
>
> Matthew D. Diez
Hi Matthew,
It basically looks like this:
<xdb id=xdb>
<host/>
<accept>
<ip>jabber.mydomain.com</ip>
<port>1050</port>
<secret>tetrahydracanabinol</secret>
</accept>
</xdb>
This is the only xdb entry in jabber.xml, and replaces the xdb_file.so entry.
The XML received and returned by this external program is completely 100%
identical to the XML received and returned by xdb_file.so, except jabber
segfaults very fast after 2 received packets.
The dumps below show the XML sent and received, and apart from the xdb
results initially coming in from base_accept, and of course no xdb_file.so
entries, these dumps are as far as I can tell completely identical.
Other people have reported the same problem, and acknowledged it is indeed a
bug.
If you can tell me how to get this to work with jabber 1.2 (standard 1.2) I
would be soooo grateful :-) It is absolutely necessary for my purposes.
Kind regards, and hope to hear from you soon,
Dennis
> For your enjoyment 2 dumps, spot the differences. One of them segfaults.
> WHY?
>
> ---
> Wed Jan 10 05:14:04 2001 authreg.c:52 auth request
> Wed Jan 10 05:14:04 2001 users.c:147
> js_user(mitja at jabber.mydomain.com/gabber,818B2E8)
> Wed Jan 10 05:14:04 2001 users.c:159 js_user not current
> Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb
> type='get' to='mitja at jabber.mydomain.com/jabber:iq:auth'
> from='jabber.mydomain.com'
> id='1'/>
> Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'xdb'
> Wed Jan 10 05:14:04 2001 base_load.c:323 xdb_get() waiting for
> mitja at jabber.mydomain.com/gabber jabber:iq:auth
> Wed Jan 10 05:14:04 2001 mtq 81ECBB0 starting
> Wed Jan 10 05:14:04 2001 mtq 81ECBB0 leaving to pth
> Wed Jan 10 05:14:04 2001 mtq 81FCE50 starting
> Wed Jan 10 05:14:04 2001 mtq 81FCE50 leaving to pth
> Wed Jan 10 05:14:04 2001 mtq 820D0F0 starting
> Wed Jan 10 05:14:04 2001 mtq 820D0F0 leaving to pth
> Wed Jan 10 05:14:04 2001 mtq 821D390 starting
> Wed Jan 10 05:14:04 2001 mtq 821D390 leaving to pth
> Wed Jan 10 05:14:04 2001 base_accept.c:341 io incoming message event for
> 15 Wed Jan 10 05:14:04 2001 base_accept.c:328 io read event for 15
> Wed Jan 10 05:14:04 2001 base_accept.c:213 base_accept: <xdb id='1'
> from='mitja at jabber.mydomain.com/jabber:iq:auth' to='jabber.mydomain.com'
> type='result'><password>dapassword</password></xdb>
> Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb
> id='1' from='mitja at jabber.mydomain.com/jabber:iq:auth'
> to='jabber.mydomain.com'
> type='result'><password>dapassword</password></xdb>
> Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'sessions'
> Wed Jan 10 05:14:04 2001 base_load.c:167 xdb_results checking xdb packet
> <xdb id='1' from='mitja at jabber.mydomain.com/jabber:iq:auth'
> to='jabber.mydomain.com'
> type='result'><password>dapassword</password></xdb> Wed Jan 10 05:14:04
> 2001 base_load.c:327 xdb_get() done waiting for
> mitja at jabber.mydomain.com/gabber jabber:iq:auth
> Wed Jan 10 05:14:04 2001 users.c:179 js_user debug 822D808 822D808
> Wed Jan 10 05:14:04 2001 modules.c:127 mapi_call 5
> Wed Jan 10 05:14:04 2001 modules.c:150 MAPI 810B748
> Wed Jan 10 05:14:04 2001 mod_auth_plain checking
> Wed Jan 10 05:14:04 2001 modules.c:150 MAPI 810B7A8
> Wed Jan 10 05:14:04 2001 mod_auth_digest checking
> Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb
> type='get' to='mitja at jabber.mydomain.com/jabber:iq:auth'
> from='jabber.mydomain.com'
> id='2'/>
> Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'xdb'
> Wed Jan 10 05:14:04 2001 base_load.c:323 xdb_get() waiting for
> mitja at jabber.mydomain.com jabber:iq:auth
> Wed Jan 10 05:14:04 2001 base_accept.c:341 io incoming message event for
> 15 Wed Jan 10 05:14:04 2001 base_accept.c:328 io read event for 15
> Wed Jan 10 05:14:04 2001 base_accept.c:213 base_accept: <xdb id='2'
> from='mitja at jabber.mydomain.com/jabber:iq:auth' to='jabber.mydomain.com'
> type='result'><password>dapassword</password></xdb>
> Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb
> id='2' from='mitja at jabber.mydomain.com/jabber:iq:auth'
> to='jabber.mydomain.com'
> type='result'><password>dapassword</password></xdb>
> Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'sessions'
> Wed Jan 10 05:14:04 2001 base_load.c:167 xdb_results checking xdb packet
> <xdb id='2' from='mitja at jabber.mydomain.com/jabber:iq:auth'
> to='jabber.mydomain.com'
> type='result'><password>dapassword</password></xdb> Wed Jan 10 05:14:04
> 2001 base_load.c:327 xdb_get() done waiting for mitja at jabber.mydomain.com
> jabber:iq:auth
> Wed Jan 10 05:14:04 2001 mod_auth_digest Got SID: 3A5BD37C
> Wed Jan 10 05:14:04 2001 mod_auth_digest comparing
> 8e27b43170e95ea62396869bd7085f76d214a70e
> 8e27b43170e95ea62396869bd7085f76d214a70e
> Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 4:c2s <route
> from='mitja at jabber.mydomain.com/gabber' to='19 at c2s/8165F98' type='auth'><iq
> id='A0' type='result'/></route>
> Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'c2s'
> Wed Jan 10 05:14:04 2001 client.c:124 Found the sock for this user
> Wed Jan 10 05:14:04 2001 client.c:141 auth for user successful
> Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 4:jabber.mydomain.com
> <route
>
> type='session' to='mitja at jabber.mydomain.com/gabber'
> from='19 at c2s/8165F98'/> Wed Jan 10 05:14:04 2001 deliver.c:344 delivering
> to instance 'sessions' Wed Jan 10 05:14:04 2001 deliver.c:84
> (80D69C8)incoming packet <route type='session'
> to='mitja at jabber.mydomain.com/gabber' from='19 at c2s/8165F98'/>
>
> SEGFAULTS EITHER HERE OR AFTER THE LAST XDB_GET() DONE WAITING...
> ---
>
>
> ---
> Wed Jan 10 05:16:39 2001 authreg.c:52 auth request
> Wed Jan 10 05:16:39 2001 users.c:147
> js_user(mitja at jabber.mydomain.com/gabber,8159C30)
> Wed Jan 10 05:16:39 2001 users.c:159 js_user not current
> Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb
> type='get' to='mitja at jabber.mydomain.com/jabber:iq:auth'
> from='jabber.mydomain.com'
> id='1'/>
> Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'xdb'
> Wed Jan 10 05:16:39 2001 xdb_file.c:161 handling xdb request <xdb
> type='get'
> to='mitja at jabber.mydomain.com/jabber:iq:auth' from='jabber.mydomain.com'
> id='1'/>
> Wed Jan 10 05:16:39 2001 xdb_file.c:98 loading
> ./spool/jabber.mydomain.com/mitja.xml
> Wed Jan 10 05:16:39 2001 xdb_file.c:118 caching
> ./spool/jabber.mydomain.com/mitja.xml
> Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb
> type='result' to='jabber.mydomain.com'
> from='mitja at jabber.mydomain.com/jabber:iq:auth'
> id='1'><password>dapassword</password></xdb>
> Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'sessions'
> Wed Jan 10 05:16:39 2001 base_load.c:167 xdb_results checking xdb packet
> <xdb type='result' to='jabber.mydomain.com'
> from='mitja at jabber.mydomain.com/jabber:iq:auth'
> id='1'><password>dapassword</password></xdb>
> Wed Jan 10 05:16:39 2001 users.c:179 js_user debug 81FC0B8 81FC0B8
> Wed Jan 10 05:16:39 2001 modules.c:127 mapi_call 5
> Wed Jan 10 05:16:39 2001 modules.c:150 MAPI 810BAD0
> Wed Jan 10 05:16:39 2001 mod_auth_plain checking
> Wed Jan 10 05:16:39 2001 modules.c:150 MAPI 810BB30
> Wed Jan 10 05:16:39 2001 mod_auth_digest checking
> Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb
> type='get' to='mitja at jabber.mydomain.com/jabber:iq:auth'
> from='jabber.mydomain.com'
> id='2'/>
> Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'xdb'
> Wed Jan 10 05:16:39 2001 xdb_file.c:161 handling xdb request <xdb
> type='get'
> to='mitja at jabber.mydomain.com/jabber:iq:auth' from='jabber.mydomain.com'
> id='2'/>
> Wed Jan 10 05:16:39 2001 xdb_file.c:98 loading
> ./spool/jabber.mydomain.com/mitja.xml
> Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb
> type='result' to='jabber.mydomain.com'
> from='mitja at jabber.mydomain.com/jabber:iq:auth'
> id='2'><password>dapassword</password></xdb>
> Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'sessions'
> Wed Jan 10 05:16:39 2001 base_load.c:167 xdb_results checking xdb packet
> <xdb type='result' to='jabber.mydomain.com'
> from='mitja at jabber.mydomain.com/jabber:iq:auth'
> id='2'><password>dapassword</password></xdb>
> Wed Jan 10 05:16:39 2001 mod_auth_digest Got SID: 3A5BD417
> Wed Jan 10 05:16:39 2001 mod_auth_digest comparing
> 732da8fcf49723d897e7767c6627f3a70558ca60
> 732da8fcf49723d897e7767c6627f3a70558ca60
> Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 4:c2s <route
> from='mitja at jabber.mydomain.com/gabber' to='17 at c2s/8158228' type='auth'><iq
> id='A0' type='result'/></route>
> Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'c2s'
> Wed Jan 10 05:16:39 2001 client.c:124 Found the sock for this user
> Wed Jan 10 05:16:39 2001 client.c:141 auth for user successful
> Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 4:jabber.mydomain.com
> <route
>
> type='session' to='mitja at jabber.mydomain.com/gabber'
> from='17 at c2s/8158228'/> Wed Jan 10 05:16:39 2001 deliver.c:344 delivering
> to instance 'sessions' Wed Jan 10 05:16:39 2001 deliver.c:84
> (80D6D50)incoming packet <route type='session'
> to='mitja at jabber.mydomain.com/gabber' from='17 at c2s/8158228'/>
>
> CONTINUES HAPPILY
> ---
>
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: 7bit
Content-Description:
----------------------------------------
More information about the JDev
mailing list