linux-debuggers.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Petr Tesařík" <petr@tesarici.cz>
To: Stephen Brennan <stephen.s.brennan@oracle.com>
Cc: Omar Sandoval <osandov@osandov.com>, linux-debuggers@vger.kernel.org
Subject: Re: Segmentation fault with drgn + libkdumpfile
Date: Wed, 10 Jan 2024 20:58:28 +0100	[thread overview]
Message-ID: <20240110205828.0dfd3450@meshulam.tesarici.cz> (raw)
In-Reply-To: <87ply9ynp5.fsf@oracle.com>

On Wed, 10 Jan 2024 11:48:22 -0800
Stephen Brennan <stephen.s.brennan@oracle.com> wrote:

> Petr Tesařík <petr@tesarici.cz> writes:
>[...]
> > I was able to write a test case for the NULL data pointer. The bug
> > should be fixed by commit e63dab40c8cefdfc013dc57915de9852dbb283e4.
> >
> > Stephen, can you rebuild and verify with your dump file that this was
> > indeed the same bug?  
> 
> Hi Petr,
> 
> I went ahead and pulled the latest from tip and ran my reproducer. The
> segmentation fault is indeed gone!

Great!

> I tested c10036e ("cache: Optimize data reclaim for missed entries"), to
> be exact, which contains e63dab4 as well.

I spent some time pondering whether the other call of reinit_entry() is
also affected. But it's not, so this other commit should be a no-op.

> Thank you so much for taking the time to go back & forth with me on this
> one! I suppose there's a reason that caching is one of the two hard
> problems in computer science ;)

Given that the relevant counter was decremented, it may also be seen as
an off-by-one bug. I think it's all a matter of naming things...

> I owe you a beverage of your choice next time we see each other!

Beer if in Europe, bourbon if in the US. Thanks. ;-)

Petr T

      reply	other threads:[~2024-01-10 19:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-05 18:38 Segmentation fault with drgn + libkdumpfile Stephen Brennan
2024-01-05 19:23 ` Petr Tesařík
2024-01-05 21:53   ` Stephen Brennan
2024-01-08 20:40     ` Petr Tesařík
2024-01-09  9:06       ` Petr Tesařík
2024-01-10  1:40         ` Stephen Brennan
2024-01-10  8:36           ` Petr Tesařík
2024-01-10 13:49             ` Petr Tesařík
2024-01-10 18:03               ` Petr Tesařík
2024-01-10 19:48                 ` Stephen Brennan
2024-01-10 19:58                   ` Petr Tesařík [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=20240110205828.0dfd3450@meshulam.tesarici.cz \
    --to=petr@tesarici.cz \
    --cc=linux-debuggers@vger.kernel.org \
    --cc=osandov@osandov.com \
    --cc=stephen.s.brennan@oracle.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).