linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yordan Karadzhov <y.karadz@gmail.com>
To: Mircea Cirjaliu <mircea.cirjaliu@yahoo.com>,
	linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH] kernelshark: make sure ksmodels index is valid before use
Date: Sun, 12 Oct 2025 22:42:06 +0300	[thread overview]
Message-ID: <8ee075a3-24aa-e8a5-85f2-fcc7ebd46900@gmail.com> (raw)
In-Reply-To: <2a04a19a-5c3c-4724-862a-26fae85638dd@yahoo.com>

Hi Mircea,

There are two issues with this patch.

First, please provide more detailed instruction how to reproduce the 
problem, because I tried "Pressing Ctrl+C with no data loaded" and I see 
no crash. Nevertheless, the change you suggest looks like a valid fix to me.

The second issue is that the patch itself fails to apply.
My guess is that your Yahoo mail server is messing the text encoding of 
the patch resulting in git rejecting it.

Cheers,
Yordan


On 10/11/25 14:45, Mircea Cirjaliu wrote:
> Pressing Ctrl+C with no data loaded will lead to a crash.
> 
> Signed-off-by: Mircea Cirjaliu <mircea.cirjaliu@yahoo.com>
> ---
>   src/KsModels.cpp | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/KsModels.cpp b/src/KsModels.cpp
> index c8a6ba3..cf4cfe9 100644
> --- a/src/KsModels.cpp
> +++ b/src/KsModels.cpp
> @@ -309,7 +309,8 @@ QVariant KsViewModel::data(const QModelIndex &index, 
> int role) const
>       }
> 
>       if (role == Qt::DisplayRole)
> -        return this->getValue(index.column(), index.row());
> +        if (index.isValid())
> +            return this->getValue(index.column(), index.row());
> 
>       return {};
>   }

  reply	other threads:[~2025-10-12 19:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2a04a19a-5c3c-4724-862a-26fae85638dd.ref@yahoo.com>
2025-10-11 11:45 ` [PATCH] kernelshark: make sure ksmodels index is valid before use Mircea Cirjaliu
2025-10-12 19:42   ` Yordan Karadzhov [this message]
     [not found] <51e122b0-8154-4e41-99ba-996ff42e5e98.ref@yahoo.com>
2025-10-13 20:07 ` Mircea Cirjaliu
2025-10-19 14:48   ` Yordan Karadzhov

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=8ee075a3-24aa-e8a5-85f2-fcc7ebd46900@gmail.com \
    --to=y.karadz@gmail.com \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=mircea.cirjaliu@yahoo.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 NNTP newsgroup(s).