All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] gdb problem unwinding abort in signal
Date: Fri, 11 Apr 2003 18:29:31 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590723705469@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723705468@msgid-missing>

>>>>> On Fri, 11 Apr 2003 13:17:38 -0500, Mario Smarduch <cms063@email.mot.com> said:

  Mario> When our application aborts in the signal handler (no
  Mario> altstack is setup) the stack backtrace discontinues at the
  Mario> signal handler.

  Mario> (gdb) where #0 0x20000000000a6342 in kill () at soinit.c:56
  Mario> #1 0x20000000000a61f0 in raise (sig=6) at
  Mario> ../sysdeps/posix/raise.c:27 #2 0x20000000000a8a70 in abort ()
  Mario> at ../sysdeps/generic/abort.c:88 #3 0x4000000000000910 in
  Mario> sig_report_and_die ()


  Mario> Manually unwinding the stack shows the rp set to
  Mario> ia64_sigtramp(). The privilaged gate page simplifies allot of
  Mario> things, but it poses a problem to our software because we
  Mario> send events for all signals of importance, and count on the
  Mario> core dump to capture the full call trace prior to and
  Mario> including the signal - gdb displays this full backtrace on
  Mario> all other architectures we run on.

  Mario> If this is the problem how does one get around it besides
  Mario> manually unwinding the stack?

There is a gdb patch in the works that will use libunwind for
backtracing purposes.  Unwinding across signal handlers will work just
fine then (at least with reasonably recent kernels).  An old
(alpha-quality) snapshot of such a gdb is at:

	ftp://ftp.hpl.hp.com/pub/linux-ia64/ugdb-ia64-020531.tar.gz

and someone from Red Hat is now working on updating the gdb patch for
libunwind v0.9 (and hopefully on getting it into the official gdb
tree).

	--david


  reply	other threads:[~2003-04-11 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-11 18:17 [Linux-ia64] gdb problem unwinding abort in signal Mario Smarduch
2003-04-11 18:29 ` David Mosberger [this message]
2003-04-11 18:48 ` Mario Smarduch

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=marc-linux-ia64-105590723705469@msgid-missing \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.