Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Maucci, Cyrille" <cyrille.maucci@hp.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Eli Zaretskii <eliz@gnu.org>, "gdb@sourceware.org" <gdb@sourceware.org>
Subject: RE: Backtrace extraction ONLY gdb
Date: Wed, 23 Mar 2011 22:51:00 -0000	[thread overview]
Message-ID: <0E02F16954AF394BB163AEE50FDF548569009DAB62@GVW1121EXC.americas.hpqcorp.net> (raw)
In-Reply-To: <20110323224339.GS2534@adacore.com>

Hi Joel

>> You'd then debug on a separate host using that core file. A few companies I know do that routinely.
On the principle I agree.
However, it gets complex when:
	. the core files are multi GB large and the 'separate' host is not located on the customer network.
	. you not only need the core files but the libs to debug the core. Indeed, you could argue to setup a 'replica' system to read the core file, but when you've got dozens of customers with dozens of different software versions, this becomes the nightmare.

This is why the method we had put in place years ago is a kind of automated gdb backtrace extraction upon core dump detection (ends up with a very small file a few KB at most) with more or less an automatic 'sending' of that file from the customer to the support team by mail.

If the backtrace is a 'known' backtrace or if the backtrace is enough for us to understand the problem, then no need to get the full core.
Upon rare circumstances, we need the full core (that represents maybe less than 5% of the cases).

Again, that is part of an efficient support line.

Thanks anyway
++Cyrille
 

-----Original Message-----
From: Joel Brobecker [mailto:brobecker@adacore.com] 
Sent: Wednesday, March 23, 2011 11:44 PM
To: Maucci, Cyrille
Cc: Eli Zaretskii; gdb@sourceware.org
Subject: Re: Backtrace extraction ONLY gdb

> >From what I read it gives a very 'raw' output, very far from the 
> >beautiful gdb backtrace with function names and function arguments 
> >values.

You would be indeed missing the function argument values.  But getting the function names from the addresses can be done later on, using a tool such as addr2line.

The best option, IMO, is to get your process to dump a core file.
You'd then debug on a separate host using that core file. A few companies I know do that routinely.

--
Joel


  reply	other threads:[~2011-03-23 22:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 17:13 Maucci, Cyrille
2011-03-21 18:49 ` Eli Zaretskii
2011-03-23 22:17   ` Maucci, Cyrille
2011-03-23 22:43     ` Joel Brobecker
2011-03-23 22:51       ` Maucci, Cyrille [this message]
2011-03-24  5:25         ` Jan Kratochvil
2011-03-27 20:26           ` Maucci, Cyrille
2011-04-22 20:49           ` Maucci, Cyrille
2011-04-22 20:54             ` Jan Kratochvil
2011-03-24 10:25         ` Pedro Alves
2011-03-24 11:09           ` Maucci, Cyrille
2011-03-24 10:28       ` Steffen Dettmer
2011-03-24 13:01         ` Jan Kratochvil
2011-03-22 16:46 ` Tom Tromey
2011-03-23 22:21   ` Maucci, Cyrille
2011-03-24 17:13     ` Tom Tromey
2011-03-24 17:20     ` Jan Kratochvil
2011-03-24 19:00       ` Maucci, Cyrille

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0E02F16954AF394BB163AEE50FDF548569009DAB62@GVW1121EXC.americas.hpqcorp.net \
    --to=cyrille.maucci@hp.com \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox