qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aconway <acon...@redhat.com>
Subject Re: Running QPid applications in debugger
Date Wed, 02 Dec 2015 17:42:20 GMT
On Thu, 2015-11-26 at 09:27 -0500, Chuck Rolke wrote:
> Qpid C++ applications are multi-threaded. When you single step in a
> breakpoint all the threads may run and then you get issues as you
> describe.
> 
> Read section 'Stopping and Starting Multi-thread Programs' in the gdb
> docs. The 'All-Stop Mode' will help your situation but not solve it
> entirely as connections establishment uses wall clock timeouts.
> 

Your best bet is to disable the connection timeout in configuration, I
forget exactly what those are but look for "connection options" in the
doc. All-stop wont help if you spend too long puzzling over stack
traces while execution is stopped.

> -Chuck
> 
> ----- Original Message -----
> > From: "Toralf Lund" <toralf.lund@pgs.com>
> > To: users@qpid.apache.org
> > Sent: Thursday, November 26, 2015 6:58:28 AM
> > Subject: Running QPid applications in debugger
> > 
> > Hi,
> > 
> > Does anyone else have problems running C++ QPid applications in a
> > debugger? I
> > find that often when execution stops on a breakpoint, the next send
> > or
> > receive after execution continues will raise an exception with the
> > message
> > 
> > Failed to connect (reconnect disabled)
> > 
> > 
> > This does not always happen, though, and I haven't quite been able
> > to figure
> > out when exactly problems occur and when the don't. Can anyone
> > explain it?
> > 
> > I'm using the Messaging API under Linux. QPid version is 0.22, the
> > debugger
> > is gdb (running through a GUI front-end.)
> > 
> > Thanks,
> > 
> > - Toralf
> > 
> > [http://www.pgs.com/mediaFiles/Exclaimer%20graphics/PGS_LOGO_RGB_42
> > x53px.jpg]<http://www.pgs.com>;
> > Toralf Lund
> > Senior Software Engineer
> > Imaging & Engineering | Geoscience & Engineering
> > 
> > Telephone: +47 67 52 64 00
> > Direct: +47 67 51 57 78
> > VOIP: 74715778
> > Mobile: +47 91 31 66 91
> > Email: toralf.lund@pgs.com<mailto:Toralf.Lund@pgs.com>
> > 
> > A Clearer Image | www.pgs.com<http://www.pgs.com>;
> > 
> > 
> > 
> > [http://www.pgs.com/mediaFiles/Exclaimer%20graphics/150731-ColourWa
> > ve-660x14px.jpg]
> > 
> > Address: Lilleakerveien 4C, 0283 Oslo, Norway
> > Postal Address: P.O.Box 251 Lilleaker, 0216 Oslo, Norway
> > 
> > This e-mail, including any attachments and response string, may
> > contain
> > proprietary information which is confidential and may be legally
> > privileged.
> > It is for the intended recipient only. If you are not the intended
> > recipient
> > or transmission error has misdirected this e-mail, please notify
> > the author
> > by return e-mail and delete this message and any attachment
> > immediately. If
> > you are not the intended recipient you must not use, disclose,
> > distribute,
> > forward, copy, print or rely on this e-mail in any way except as
> > permitted
> > by the author.
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message