Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Luis Machado <lgustavo@codesourcery.com>, gdb-patches@sourceware.org
Cc: Sandra Loosemore <sandra@codesourcery.com>
Subject: Re: [PATCH v5 2/2] PR 20569, segv in follow_exec
Date: Thu, 27 Oct 2016 14:09:00 -0000	[thread overview]
Message-ID: <2477b680-67df-6de0-8dfe-8d0158295a29@redhat.com> (raw)
In-Reply-To: <ef14afea-700a-0c6a-6de8-9d70a5e54157@codesourcery.com>

On 10/26/2016 05:04 PM, Luis Machado wrote:
> On 10/26/2016 09:28 AM, Luis Machado wrote:
>> On 10/25/2016 06:39 PM, Pedro Alves wrote:

>>> +# This test exercises PR20569.  GDB would crash when attempting to
>>> follow
>>> +# an exec call when it could not resolve the path to the symbol file.
>>> +# This was the case when an invalid sysroot is provided.
>>> +
>>> +standard_testfile foll-exec.c
>>> +
>>> +global binfile
>>> +set binfile [standard_output_file "foll-exec"]
> 

[FYI, I pushed this in already yesterday.]

> On further inspection, i think this violates the testcase cookbook's
> rules? It is reusing the foll-exec.c sources, but it should compile to a
> unique executable name.
> 
> On the other hand, foll-exec.c relies on its own name to do the trick.
> It replaces foll-exec with execd-prog.
> 
> Is this still a problem now that we have unique directories for each
> testcase?

Yeah, I think it's probably not such a big deal nowadays as it used to be.

The case where it'd maybe still help a little bit is the remote host/target
case.  In that case, we'll still download the files to a single remote
directory.  We can't do parallel testing in that case, so the downside in
general is that the overwriting may make it a bit harder to debug failing
testcases after the fact.  Maybe not that much of a problem, since we have
the separate copies on the host side.  We already have this overwriting
on the target side in case we have tests with the same name in
different gdb.foo/ subdirectories, I think:

$ ls testsuite/gdb.*/*.exp | sed 's,testsuite/gdb.[a-z]*/,,g' | sort | uniq -c | sort -nr | head -n 30
      3 types.exp
      3 print.exp
      3 gcore.exp
      3 exprs.exp
      2 vla-datatypes.exp
      2 start.exp
      2 solib-symbol.exp
      2 solib.exp
      2 sizeof.exp
      2 range-stepping.exp
      2 ptype.exp
      2 pr11022.exp
      2 pending.exp
      2 methods.exp
      2 maint.exp
      2 logical.exp
      2 integers.exp
      2 hello.exp
      2 exception.exp
      2 demangle.exp
      2 debug-expr.exp
      2 data.exp
      2 complex.exp
      2 charset.exp
      2 callfuncs.exp
      2 break.exp
      2 backtrace.exp
      2 arrayidx.exp
      2 annota3.exp
      1 xfullpath.exp

Thanks,
Pedro Alves


  reply	other threads:[~2016-10-27 14:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 17:12 [PATCH, v4] " Luis Machado
2016-10-25 18:04 ` Pedro Alves
2016-10-25 18:16   ` Luis Machado
2016-10-25 18:20     ` Pedro Alves
2016-10-25 18:31       ` Luis Machado
2016-10-25 19:41         ` Luis Machado
2016-10-25 19:46           ` Pedro Alves
2016-10-25 19:50             ` Luis Machado
2016-10-25 23:40               ` [PATCH v5 2/2] " Pedro Alves
2016-10-26 14:28                 ` Luis Machado
2016-10-26 16:05                   ` Luis Machado
2016-10-27 14:09                     ` Pedro Alves [this message]
2016-10-25 23:40               ` [PATCH v5 1/2] Make symfile_add_flags and objfile->flags strongly typed 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=2477b680-67df-6de0-8dfe-8d0158295a29@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=lgustavo@codesourcery.com \
    --cc=sandra@codesourcery.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