Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Metzger, Markus T" <markus.t.metzger@intel.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
	"gdb-patches@sourceware.org"	<gdb-patches@sourceware.org>,
	"Pedro Alves (palves@redhat.com)"	<palves@redhat.com>
Subject: RE: [patch] Fix cleanup in finish_command
Date: Fri, 21 Jun 2013 08:14:00 -0000	[thread overview]
Message-ID: <A78C989F6D9628469189715575E55B230A96FF66@IRSMSX104.ger.corp.intel.com> (raw)
In-Reply-To: <20130620161945.GA16142@host2.jankratochvil.net>

> -----Original Message-----
> From: Jan Kratochvil [mailto:jan.kratochvil@redhat.com]
> Sent: Thursday, June 20, 2013 6:20 PM

> Unrelated:
> There is testcase FAILing randomly, reproducible with "read1.so" from:
> 	http://sourceware.org/bugzilla/show_bug.cgi?id=12649
> Running ./gdb.btrace/exception.exp ...
> FAIL: gdb.btrace/exception.exp: exception - flat (timeout)

I do not think that this is an actual issue.  It runs into a timeout because
there is so much memory to read.

When I add to my board file:

	set_board_info gdb,timeout 8000

it takes a very long time, but the test eventually passes.


> > Can you point me to a specific test where this happens?
> 
> Each time with: gdb.btrace/tailcall.exp

I don't get a core file, but I was able to reproduce the bug.

You need to "record btrace", then navigate in the trace using the "finish"
command.  When the inferior then terminates (either by killing it or by
continuing to its end), you get the SEGV in delete_breakpoint.

When I remove the throw_error() in record-btrace.c's to_fetch_registers
function (and just return), the bug disappears.

Looks like someone isn't expecting an error from this function.  Likely the
"finish" command or some code used by that command.  Maybe "finish" is
caught by this exception before it can clean up its breakpoint correctly.

Am I allowed to throw_error() in target functions?
Or should I just warn and return normally?
Or just return and not even warn?

Regards,
Markus.

Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Christian Lamprechter, Hannes Schwaderer, Douglas Lusk
Registergericht: Muenchen HRB 47456
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052


  reply	other threads:[~2013-06-21  8:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 21:42 Jan Kratochvil
2013-06-20 14:42 ` Jan Kratochvil
2013-06-20 15:26   ` Joel Brobecker
2013-06-20 15:37     ` Metzger, Markus T
2013-06-20 16:45       ` Jan Kratochvil
2013-06-21  8:14         ` Metzger, Markus T [this message]
2013-06-21  8:23           ` Jan Kratochvil
2013-06-21  8:25             ` Metzger, Markus T
2013-07-02 14:50               ` Metzger, Markus T
2013-06-21 12:56           ` Jan Kratochvil
2013-06-20 16:06     ` Pedro Alves

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=A78C989F6D9628469189715575E55B230A96FF66@IRSMSX104.ger.corp.intel.com \
    --to=markus.t.metzger@intel.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    --cc=palves@redhat.com \
    /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