[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster] crash in c++ PublishDemo



After testing further on, I encountered another problem.

The update of the published data shows always contentSize == 0.
When enquiering on the Blaster-Window, the content of the oid is shown
correctly.
When testing the PublissDemo / SubscribeDemo i got :

TRACE DefaultCallback-prinz Received message [c++-demo] from publisher <session
name='client/postgres,\' timeout='86400000' maxSessions='10'
clearSessions='false'/>

TRACE DefaultCallback-prinz going to invoke client specific update
TRACE XmlBlasterAccess-/node/xmlBlaster_172_24_64_60_3412/client/prinz/-6
update. The sessionId is 'unknown'
INFO  SubscribeDemo update invoked
TRACE SubscribeDemo update: key    :    <key oid='c++-demo'
contentMime='text/xml' contentMimeExtended='1.0'>        <org.xmlBlaster >
    <demo >
    </demo>
  </org.xmlBlaster>
   </key>
TRACE SubscribeDemo update: qos    :
 <qos>
  <state id='OK'/>
    <destination queryType='EXACT'>    client/postgres,\ </destination>
    <destination queryType='EXACT'>    client/postgres,\ </destination>
    <destination queryType='EXACT'>    client/postgres,\ </destination>
    <destination queryType='EXACT'>    client/postgres,\ </destination>
  <sender>client/postgres,\</sender>
  <subscribe id='__subId:xmlBlaster_172_24_64_60_3412-10'/>
  <timestamp nanos='1071491213728000001'/>
  <route>
  </route>
 </qos>
ERROR DefaultCallback-prinz Exception caught in update() 1 messages are handled
as not delivered
 
> Jürgen Prinz wrote:
> > Sfter a recent cvs update my program and likewise c++/../PublishDemo get 
> > segmentation fault whe calling connection_publish
> 
> Thanks for reporting, i assume you are on the develop branch,
> there i can reproduce it (though my stack trace is different).
> 
> We'll look into it,
> 
> regards
> 
> Marcel
> 
> 
> > gdb shows
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 1024 (LWP 12440)]
> > 0x410fde09 in 
> >
org::xmlBlaster::client::XmlBlasterAccess::publish(org::xmlBlaster::util::Messag
eUnit 
> > const&) (this=0xbfffd91c, msgUnit= at 0x8198058)
> >     at /home/prinz/xmlBlaster/src/c++/client/XmlBlasterAccess.cpp:260
> > 260        return connection_->publish(msgUnit);
> > (gdb) where
> > #0  0x410fde09 in 
> >
org::xmlBlaster::client::XmlBlasterAccess::publish(org::xmlBlaster::util::Messag
eUnit 
> > const&) (this=0xbfffd91c, msgUnit= at 0x8198058)
> >     at /home/prinz/xmlBlaster/src/c++/client/XmlBlasterAccess.cpp:260
> > #1  0x0805f3d1 in BlasterAccess::handlePictUpd(MSG_Message&) 
> > (this=0xbfffd910, pictUpd= at 0x8196518) at BlasterAccess.C:267
> > #2  0x080529c8 in ExtAccess::messageHandler(MSG_Message&) 
> > (this=0xbfffdcd0, mm= at 0x8196518) at ExtAccess.C:210
> > #3  0x4003c433 in ClientStub::handleNewMessage(MSG_Message&) () from 
> > /home/prinz/twr2_GAIS-LINUX/slib/libStreamLINUX_GCC2_8.so
> > #4  0x4003c349 in ClientStub::streamHandler(sstream&) () from 
> > /home/prinz/twr2_GAIS-LINUX/slib/libStreamLINUX_GCC2_8.so
> > #5  0x40051215 in StreamStub::handle() () from 
> > /home/prinz/twr2_GAIS-LINUX/slib/libStreamLINUX_GCC2_8.so
> > #6  0x40055a71 in XEventHandler::globalStreamHandle(void*, int*, 
> > unsigned long*) () from 
> > /home/prinz/twr2_GAIS-LINUX/slib/libStreamLINUX_GCC2_8.so
> > #7  0x4049cf83 in DoOtherSources () from /usr/X11R6/lib/libXt.so.6
> > #8  0x4049d49f in XtAppNextEvent () from /usr/X11R6/lib/libXt.so.6
> > #9  0x404919ec in XtAppMainLoop () from /usr/X11R6/lib/libXt.so.6
> > #10 0x40055ed0 in XEventHandler::startMainLoop() () from 
> > /home/prinz/twr2_GAIS-LINUX/slib/libStreamLINUX_GCC2_8.so
> > #11 0x08052084 in main (argc=1, argv=0xbfffdfe4) at ExtAccess.C:91
> > #12 0x413104c2 in __libc_start_main () from /lib/i686/libc.so.6
> > (gdb)
> > 
> > 
> > Best regards Juergen
> > 
> > 
> 
> 
> -- 
> http://www.xmlBlaster.org
> 
-- 
|