All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@linaro.org>
To: Toomas Soome <tsoome@me.com>
Cc: smatch@vger.kernel.org
Subject: Re: the sigsegv issue with recent smatch
Date: Wed, 26 Nov 2025 15:55:16 +0300	[thread overview]
Message-ID: <aSb4tOCfEY7RG80k@stanley.mountain> (raw)
In-Reply-To: <07F8415A-02C9-4483-9A4F-9027D20D075B@me.com>

On Tue, Nov 25, 2025 at 06:27:06PM +0200, Toomas Soome wrote:
> I got a bit background for sigsegv case.
> 

Do you have a reproducer script I could try?  I think your
reading of the code is correct.  It's trying to take the
something like:

	x = frob(a, b, c, d);

and create a fake assignment:

	x = d;

And, I guess, it can't find 'd'.  But my line numbers in mdb_nv.c are
different from yours.

There seems to be an obvious fix which I have done and pushed
but I can't test it.  Could you give it a shot?
https://github.com/error27/smatch/commit/4dca0c1677879bf9a86b2311bf1ba75acfdf82ba

regards,
dan carpenter


  reply	other threads:[~2025-11-26 14:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-25 16:27 the sigsegv issue with recent smatch Toomas Soome
2025-11-26 12:55 ` Dan Carpenter [this message]
2025-11-26 14:58   ` Toomas Soome

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=aSb4tOCfEY7RG80k@stanley.mountain \
    --to=dan.carpenter@linaro.org \
    --cc=smatch@vger.kernel.org \
    --cc=tsoome@me.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 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.