[JDEV] Jsm module interacting badly with MSN-t???
Andy Beetz
andy.beetz at clearswift.com
Fri Jul 5 06:18:07 CDT 2002
It's ok, all sorted now. What I did was run the msn-t in a separate process,
and it's all running happily now.
> -----Original Message-----
> From: Andy Beetz [mailto:andy.beetz at clearswift.com]
> Sent: 05 July 2002 06:43
> To: 'jdev at jabber.org'
> Subject: RE: [JDEV] Jsm module interacting badly with MSN-t???
>
>
> Sure, but you'd have to tell me how to create them :)
>
> Sorry, my linux experience is a little limited.
>
> > -----Original Message-----
> > From: Thomas Muldowney [mailto:temas at box5.net]
> > Sent: 03 July 2002 19:28
> > To: jdev at jabber.org
> > Subject: RE: [JDEV] Jsm module interacting badly with MSN-t???
> >
> >
> > Do you have a core file and backtrace? Would probably help a lot.
> >
> > --temas
> >
> >
> > On Wed, 2002-07-03 at 04:17, Andy Beetz wrote:
> > > I have a bit more info, this does work when I run the
> > jabberd with -D.
> > > Has anybody got any ideas why it only wants to work in debug?
> > >
> > > > -----Original Message-----
> > > > From: Andy Beetz [mailto:andy.beetz at clearswift.com]
> > > > Sent: 02 July 2002 11:05
> > > > To: 'jdev at jabber.org'
> > > > Subject: [JDEV] Jsm module interacting badly with MSN-t???
> > > >
> > > >
> > > > I've written a jsm module to do some very basic packet
> analysis,
> > > > which works correctly with two normal (not registered
> with MSN-t)
> > > > users. But, as soon as I log on as a user registered with the
> > > > MSN-t, jabberd seg faults. It is very reproducible, and when I
> > > > comment out the module everything is fine again :( .
> > > >
> > > > Please help, I'm finding the lack of documentation
> irritating at
> > > > best. TIA Andy
> > > >
> > > > Code:
> > > >
> > > > #include "jsm.h"
> > > >
> > > > mreturn mod_mytest_server(mapi m, void *arg)
> > > > {
> > > > char* node = NULL;
> > > >
> > > > if(m->packet->type != JPACKET_MESSAGE) return M_IGNORE;
> > > >
> > > > node = xmlnode2str(m->packet->x);
> > > >
> > > > if(node != NULL)
> > > > {
> > > > log_notice("mod_mytest", "packet: %s", node);
> > > > }
> > > >
> > > > return M_PASS;
> > > > }
> > > >
> > > > mreturn mod_mytest_session(mapi m, void *arg)
> > > > {
> > > > js_mapi_session(es_OUT, m->s, mod_mytest_server, NULL);
> > > >
> > > > return M_PASS;
> > > > }
> > > >
> > > > void mod_mytest(jsmi si)
> > > > {
> > > > js_mapi_register(si, e_SESSION,
> mod_mytest_session, NULL); }
> > > >
> > > >
> > > > --------------------------------------------------------------
> > > > -------------------------------------------------
> > > > Clearswift monitors, controls and protects all its messaging
> > > > traffic in compliance with its corporate email policy using
> > Clearswift products.
> > > > Find out more about Clearswift, its solutions and services at
> > > > www.clearswift.com.
> > > > **************************************************************
> > > > *********************
> > > > This communication is confidential and may contain privileged
> > > > information intended solely for the named addressee(s).
> > It may not
> > > > be used or disclosed except for the purpose for which
> it has been
> > > > sent. If you are not the intended recipient, you must not copy,
> > > > distribute or take any action in reliance on it. Unless
> > > > expressly stated,
> > > > opinions in this message are those of the individual sender
> > > > and not of
> > > > Clearswift. If you have received this communication in
> > error, please
> > > > notify Clearswift by emailing support at clearswift.com quoting the
> > > > sender and delete the message and any attached documents.
> > Clearswift
> > > > accepts no liability or responsibility for any onward
> > > > transmission or use of emails and attachments having left the
> > > > Clearswift domain.
> > > >
> > > > This footnote confirms that this email message has been
> swept by
> > > > MIMEsweeper for Content Security threats, including
> > computer viruses.
> > > >
> > > > _______________________________________________
> > > > jdev mailing list
> > > > jdev at jabber.org
> > > > http://mailman.jabber.org/listinfo/jdev
> > > >
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list