public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>,
	       "'Sergio Durigan Junior'" <sergiodj@redhat.com>,
	       "'GDB Patches'" <gdb-patches@sourceware.org>
Subject: Re: Build failure following: Implement support for checking /proc/PID/coredump_filter commit
Date: Wed, 08 Apr 2015 16:47:00 -0000	[thread overview]
Message-ID: <55255B8B.40003@redhat.com> (raw)
In-Reply-To: <86egnuwpoj.fsf@gmail.com>

On 04/08/2015 05:27 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
> 
>> There's also the "users/palves/gnulib-update" branch that
>> updates gdb's copy of gnulib to recent gnulib master.  It'd
>> be great if someone confirmed that a gdb build of that branch
>> actually works on Windows, so we can move forward with that.
>> (the branch predates Sergio's patch, so isn't affected by the strtok_r
>> issue).  I'd be nice to update our gnulib copy before we pull in
>> more modules, to avoid tripping on bugs that have meanwhile already
>> been fixed upstream, or avoid module dependencies that may
>> have been reduced upstream...
> 
> On the other hand, updating our gnulib copy from upstream may introduce
> new bugs.

Sure.  And we can report and fix them, or downgrade a few revisions to
before when the bug was introduced.

> strtok_r exists in the gnulib
> 8d5bd1402003bd0153984b138735adf537d960b0 commit we are using, I don't

That's actually what I did in the branch I pointed Pierre at.

> see why we need to update our gnulib copy, unless there are some known
> bug fixes in gnulib upstream.

Why risk stumbling on bugs that might have been fixed in the 3
years since the last import?  The more modules we import off the older
copy, the wider the potential-bugs surface.  And then what to do if we
need to patch gnulib?  If the requirement is to send the fix upstream
first, and then refresh our import, it'll be much easier if the
re-import is just a small incremental update, rather than pulling in
multiple years of gnulib work.  The further apart our update is, the
harder it is to update.  If we keep our copy reasonably up to date, we
have a better chance of whoever introduced the bug upstream to still have
the issue fresh in mind and provide a prompt fix.  If we wait 3 years
to report a bug, then the chances are good that we get to fix
it ourselves.

I currently want to update gnulib for at least 3 reasons:

 - GDB-in-C++ on mingw:

   https://sourceware.org/ml/gdb-patches/2015-03/msg00447.html

   That will have to be fixed on gnulib.  Haven't checked if
   already fixed there, but most probably it is.

 - Antoine's use of canonicalize:

   https://sourceware.org/ml/gdb-patches/2015-03/msg00917.html

   That pulls in a truck load of modules.  I'd hope the dependencies
   are fewer in a newer gnulib, or at least, if the dependencies are the
   same, I'd much prefer importing up-to-date versions.  Otherwise, the
   poor soul that next updates gnulib is likely to have a "fun" time.

 - Pull in the fts module to get rid of the "system" call in compile/,
   as discussed a while ago.

I think now's the best time, as we still have time till the next
gdb release.

Thanks,
Pedro Alves

      reply	other threads:[~2015-04-08 16:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24 23:57 [PATCH v4 0/2] Improve corefile generation by using /proc/PID/coredump_filter (PR corefile/16902) Sergio Durigan Junior
2015-03-24 23:57 ` [PATCH 2/2] Documentation and testcase Sergio Durigan Junior
2015-03-27  9:53   ` Pedro Alves
2015-03-24 23:57 ` [PATCH 1/2] Implement support for checking /proc/PID/coredump_filter Sergio Durigan Junior
2015-03-27  9:53   ` Pedro Alves
2015-03-31 23:40     ` Sergio Durigan Junior
2015-04-08 14:08       ` Build failure following: Implement support for checking /proc/PID/coredump_filter commit Pierre Muller
2015-04-08 14:43         ` Pedro Alves
2015-04-08 15:14           ` Pedro Alves
2015-04-08 16:08             ` Sergio Durigan Junior
2015-04-08 16:28             ` Pierre Muller
2015-04-08 16:47               ` Sergio Durigan Junior
2015-04-08 17:21                 ` Pedro Alves
2015-04-08 16:27           ` Yao Qi
2015-04-08 16:47             ` Pedro Alves [this message]

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=55255B8B.40003@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pierre.muller@ics-cnrs.unistra.fr \
    --cc=qiyaoltc@gmail.com \
    --cc=sergiodj@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).