<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [JDEV] Has anyone ever actually TESTED this ?????</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Yes, and I've got one running! It took a fair amount</FONT>
<BR><FONT SIZE=2>of jabber.xml wackiness, but I have base_accept handler</FONT>
<BR><FONT SIZE=2>using JabberBeans running successfully under Jabber 1.2. </FONT>
</P>
<P><FONT SIZE=2>When trying under a 2-week old copy of the 1.3,</FONT>
<BR><FONT SIZE=2>base_accept crashed freely and readily on me...</FONT>
</P>
<P><FONT SIZE=2>I've only had Jabber 1.2 crash on me using the </FONT>
<BR><FONT SIZE=2>base_connect handler (which, mind you, was</FONT>
<BR><FONT SIZE=2>quite a bit easier to set up).</FONT>
</P>
<P><FONT SIZE=2>Can I have a peek at your jabber.xml setup?</FONT>
</P>
<P><FONT SIZE=2>Matthew D. Diez</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Dennis Noordsij [<A HREF="mailto:dennis.noordsij@wiral.com">mailto:dennis.noordsij@wiral.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, January 09, 2001 9:10 PM</FONT>
<BR><FONT SIZE=2>To: jdev@jabber.org</FONT>
<BR><FONT SIZE=2>Subject: [JDEV] Has anyone ever actually TESTED this ?????</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>With regard to an external XDB (base_accept) component..</FONT>
</P>
<P><FONT SIZE=2> has anyone ever done it before ????????</FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>I am following *exactly* the same XML query-results as the normal xdb_file.so </FONT>
<BR><FONT SIZE=2>but for some reason, because I am connected via base_accept, jabber just </FONT>
<BR><FONT SIZE=2>crashes *every single time*.</FONT>
</P>
<P><FONT SIZE=2>When using xdb_file.so:</FONT>
</P>
<P><FONT SIZE=2>user tries to log in, jabber sends:</FONT>
<BR><FONT SIZE=2><xdb type='get' from='user@host/jabber:iq:auth' to='xdb' id='1'/></FONT>
<BR><FONT SIZE=2>xdb replies:</FONT>
<BR><FONT SIZE=2><xdb type='result' from='xdb' to='user@host/jabber:iq:auth' id='1'></FONT>
<BR><FONT SIZE=2> <password>dapassword</password></xdb></FONT>
</P>
<P><FONT SIZE=2>Then, for some reason, jabber repeats the thing with id=2</FONT>
<BR><FONT SIZE=2><xdb type='get' from='user@host/jabber:iq:auth' to='xdb' id='2'/></FONT>
<BR><FONT SIZE=2>Again, xdb replies with:</FONT>
<BR><FONT SIZE=2><xdb type='result' from='xdb' to='user@host/jabber:iq:auth' id='2'></FONT>
<BR><FONT SIZE=2> <password>dapassword</password></xdb></FONT>
</P>
<P><FONT SIZE=2>And then everything merrily continues.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>If I replace the standard xdb with an <accept>ing external program, same </FONT>
<BR><FONT SIZE=2>thing happens.</FONT>
</P>
<P><FONT SIZE=2>Jabber sends xdb get id 1, components replies with the *exact* same xml as </FONT>
<BR><FONT SIZE=2>xdb_file.so</FONT>
</P>
<P><FONT SIZE=2>Jabber sends xdb get id 2, component replies with the *exact* same xml as </FONT>
<BR><FONT SIZE=2>xdb_file.so</FONT>
</P>
<P><FONT SIZE=2>---- Jabber segfaults.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>So, is it actually even POSSIBLE to have xdb components NOT compiled into </FONT>
<BR><FONT SIZE=2>jabber as loadable modules ?</FONT>
</P>
<BR>
<P><FONT SIZE=2>In base_load.c the xdb_get and xdb_set functions block until a reply is </FONT>
<BR><FONT SIZE=2>received, however that reply comes via base_accept. Does that matter in this </FONT>
<BR><FONT SIZE=2>case? (it still reports "xdb_get() done waiting", but does it screw up some </FONT>
<BR><FONT SIZE=2>mutex/memory/semaphore stuff so badly it just dies after that?)</FONT>
</P>
<P><FONT SIZE=2>Please don't tell me after all this that xdb components can not be based on </FONT>
<BR><FONT SIZE=2>base_accept !</FONT>
</P>
<BR>
<BR>
<BR>
<P><FONT SIZE=2>Sorry if I sound peeved off, I had everything lined up to have a DB XDB </FONT>
<BR><FONT SIZE=2>component tonight but now I'm stuck with this. I appreciate any pointers :-)</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Dennis</FONT>
</P>
<BR>
<P><FONT SIZE=2>For your enjoyment 2 dumps, spot the differences. One of them segfaults. WHY?</FONT>
</P>
<P><FONT SIZE=2>---</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 authreg.c:52 auth request</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 users.c:147 </FONT>
<BR><FONT SIZE=2>js_user(mitja@jabber.mydomain.com/gabber,818B2E8)</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 users.c:159 js_user not current</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>type='get' to='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>from='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>id='1'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'xdb'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_load.c:323 xdb_get() waiting for </FONT>
<BR><FONT SIZE=2>mitja@jabber.mydomain.com/gabber jabber:iq:auth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 81ECBB0 starting</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 81ECBB0 leaving to pth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 81FCE50 starting</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 81FCE50 leaving to pth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 820D0F0 starting</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 820D0F0 leaving to pth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 821D390 starting</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mtq 821D390 leaving to pth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_accept.c:341 io incoming message event for 15</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_accept.c:328 io read event for 15</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_accept.c:213 base_accept: <xdb id='1' </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/jabber:iq:auth' to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>type='result'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>id='1' from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>type='result'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'sessions'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_load.c:167 xdb_results checking xdb packet </FONT>
<BR><FONT SIZE=2><xdb id='1' from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>to='jabber.mydomain.com' type='result'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_load.c:327 xdb_get() done waiting for </FONT>
<BR><FONT SIZE=2>mitja@jabber.mydomain.com/gabber jabber:iq:auth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 users.c:179 js_user debug 822D808 822D808</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 modules.c:127 mapi_call 5</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 modules.c:150 MAPI 810B748</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mod_auth_plain checking</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 modules.c:150 MAPI 810B7A8</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mod_auth_digest checking</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>type='get' to='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>from='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>id='2'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'xdb'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_load.c:323 xdb_get() waiting for </FONT>
<BR><FONT SIZE=2>mitja@jabber.mydomain.com jabber:iq:auth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_accept.c:341 io incoming message event for 15</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_accept.c:328 io read event for 15</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_accept.c:213 base_accept: <xdb id='2' </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/jabber:iq:auth' to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>type='result'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>id='2' from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>type='result'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'sessions'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_load.c:167 xdb_results checking xdb packet </FONT>
<BR><FONT SIZE=2><xdb id='2' from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>to='jabber.mydomain.com' type='result'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 base_load.c:327 xdb_get() done waiting for </FONT>
<BR><FONT SIZE=2>mitja@jabber.mydomain.com jabber:iq:auth</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mod_auth_digest Got SID: 3A5BD37C</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 mod_auth_digest comparing </FONT>
<BR><FONT SIZE=2>8e27b43170e95ea62396869bd7085f76d214a70e </FONT>
<BR><FONT SIZE=2>8e27b43170e95ea62396869bd7085f76d214a70e</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 4:c2s <route </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/gabber' to='19@c2s/8165F98' type='auth'><iq </FONT>
<BR><FONT SIZE=2>id='A0' type='result'/></route></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'c2s'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 client.c:124 Found the sock for this user</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 client.c:141 auth for user successful</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:472 DELIVER 4:jabber.mydomain.com <route </FONT>
<BR><FONT SIZE=2>type='session' to='mitja@jabber.mydomain.com/gabber' from='19@c2s/8165F98'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:344 delivering to instance 'sessions'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:14:04 2001 deliver.c:84 (80D69C8)incoming packet <route </FONT>
<BR><FONT SIZE=2>type='session' to='mitja@jabber.mydomain.com/gabber' from='19@c2s/8165F98'/></FONT>
</P>
<P><FONT SIZE=2>SEGFAULTS EITHER HERE OR AFTER THE LAST XDB_GET() DONE WAITING...</FONT>
<BR><FONT SIZE=2>---</FONT>
</P>
<BR>
<P><FONT SIZE=2>---</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 authreg.c:52 auth request</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 users.c:147 </FONT>
<BR><FONT SIZE=2>js_user(mitja@jabber.mydomain.com/gabber,8159C30)</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 users.c:159 js_user not current</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>type='get' to='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>from='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>id='1'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'xdb'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 xdb_file.c:161 handling xdb request <xdb type='get' </FONT>
<BR><FONT SIZE=2>to='mitja@jabber.mydomain.com/jabber:iq:auth' from='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>id='1'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 xdb_file.c:98 loading </FONT>
<BR><FONT SIZE=2>./spool/jabber.mydomain.com/mitja.xml</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 xdb_file.c:118 caching </FONT>
<BR><FONT SIZE=2>./spool/jabber.mydomain.com/mitja.xml</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>type='result' to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>id='1'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'sessions'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 base_load.c:167 xdb_results checking xdb packet </FONT>
<BR><FONT SIZE=2><xdb type='result' to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>id='1'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 users.c:179 js_user debug 81FC0B8 81FC0B8</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 modules.c:127 mapi_call 5</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 modules.c:150 MAPI 810BAD0</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 mod_auth_plain checking</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 modules.c:150 MAPI 810BB30</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 mod_auth_digest checking</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 2:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>type='get' to='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>from='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>id='2'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'xdb'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 xdb_file.c:161 handling xdb request <xdb type='get' </FONT>
<BR><FONT SIZE=2>to='mitja@jabber.mydomain.com/jabber:iq:auth' from='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>id='2'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 xdb_file.c:98 loading </FONT>
<BR><FONT SIZE=2>./spool/jabber.mydomain.com/mitja.xml</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 1:jabber.mydomain.com <xdb </FONT>
<BR><FONT SIZE=2>type='result' to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>id='2'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'sessions'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 base_load.c:167 xdb_results checking xdb packet </FONT>
<BR><FONT SIZE=2><xdb type='result' to='jabber.mydomain.com' </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/jabber:iq:auth' </FONT>
<BR><FONT SIZE=2>id='2'><password>dapassword</password></xdb></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 mod_auth_digest Got SID: 3A5BD417</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 mod_auth_digest comparing </FONT>
<BR><FONT SIZE=2>732da8fcf49723d897e7767c6627f3a70558ca60 </FONT>
<BR><FONT SIZE=2>732da8fcf49723d897e7767c6627f3a70558ca60</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 4:c2s <route </FONT>
<BR><FONT SIZE=2>from='mitja@jabber.mydomain.com/gabber' to='17@c2s/8158228' type='auth'><iq </FONT>
<BR><FONT SIZE=2>id='A0' type='result'/></route></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'c2s'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 client.c:124 Found the sock for this user</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 client.c:141 auth for user successful</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:472 DELIVER 4:jabber.mydomain.com <route </FONT>
<BR><FONT SIZE=2>type='session' to='mitja@jabber.mydomain.com/gabber' from='17@c2s/8158228'/></FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:344 delivering to instance 'sessions'</FONT>
<BR><FONT SIZE=2>Wed Jan 10 05:16:39 2001 deliver.c:84 (80D6D50)incoming packet <route </FONT>
<BR><FONT SIZE=2>type='session' to='mitja@jabber.mydomain.com/gabber' from='17@c2s/8158228'/></FONT>
</P>
<P><FONT SIZE=2>CONTINUES HAPPILY</FONT>
<BR><FONT SIZE=2>---</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>jdev mailing list</FONT>
<BR><FONT SIZE=2>jdev@jabber.org</FONT>
<BR><FONT SIZE=2><A HREF="http://mailman.jabber.org/listinfo/jdev" TARGET="_blank">http://mailman.jabber.org/listinfo/jdev</A></FONT>
</P>
</BODY>
</HTML>