qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gustavo Romero <gustavo.romero@linaro.org>
To: "Peter Maydell" <peter.maydell@linaro.org>,
	"Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, "Akihiko Odaki" <akihiko.odaki@daynix.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"open list:ARM TCG CPUs" <qemu-arm@nongnu.org>
Subject: Re: [RFC PATCH] gdbstub: Re-factor gdb command extensions
Date: Tue, 16 Jul 2024 12:13:53 -0300	[thread overview]
Message-ID: <1a40f484-18bd-c452-fbba-4e59e2b07294@linaro.org> (raw)
In-Reply-To: <CAFEAcA8+KXykmmk_4BU990kj3nY4xfr0zn2MtM0cYTuhNnsWtg@mail.gmail.com>

Hi Peter,

On 7/16/24 11:09 AM, Peter Maydell wrote:
> On Tue, 16 Jul 2024 at 14:48, Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>> Gustavo Romero <gustavo.romero@linaro.org> writes:
>>
>>> Hi Alex,
>>>
>>> On 7/16/24 8:42 AM, Alex Bennée wrote:
>>>> Coverity reported a memory leak (CID 1549757) in this code and its
>>>> admittedly rather clumsy handling of extending the command table.
>>>> Instead of handing over a full array of the commands lets use the
>>>> lighter weight GPtrArray and simply test for the presence of each
>>>> entry as we go. This avoids complications of transferring ownership of
>>>> arrays and keeps the final command entries as static entries in the
>>>> target code.
>>> How did you run Coverity to find the leak? I'm wondering what's the
>>> quickest way to check it next time.
>>
>> Coverity is only run in the cloud on the released build. There is a
>> container somewhere but I don't know how its used.
> 
> The Coverity cloud stuff comes in two parts:
>   (1) you build locally with the Coverity tools, which creates
> a big opaque build-artefact
>   (2) you upload that artefact to the cloud server, and the
> actual analysis happens on the cloud
> 
> The container stuff and the integration with the Gitlab CI
> is there for the sole purpose of automating the "local build
> and upload" steps. You can't do an analysis-run locally.
> (Well, you probably can if you have the paid-for commercial
> version of the tooling, but we haven't got any kind of
> setup for doing that.)
> 
> We only do analysis runs on head-of-git because the Coverity Scan
> resource limits for open source projects give us about one
> complete scan a day. So this is all "after the fact" stuff.
> Developers who want to look at the scan results can create
> an account via https://scan.coverity.com/projects/qemu .
> Triaging new coverity reports is a bit tedious because there
> are a ton of false positives...

Thanks for the explanation!


Cheers,
Gustavo


  reply	other threads:[~2024-07-16 15:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-16 11:42 [RFC PATCH] gdbstub: Re-factor gdb command extensions Alex Bennée
2024-07-16 12:42 ` Gustavo Romero
2024-07-16 13:48   ` Alex Bennée
2024-07-16 14:09     ` Peter Maydell
2024-07-16 15:13       ` Gustavo Romero [this message]
2024-07-16 16:33 ` Richard Henderson
2024-07-16 16:55   ` Alex Bennée
2024-07-16 21:53     ` Richard Henderson
2024-07-17  8:24       ` Alex Bennée
2024-07-17 12:59       ` Peter Maydell

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=1a40f484-18bd-c452-fbba-4e59e2b07294@linaro.org \
    --to=gustavo.romero@linaro.org \
    --cc=akihiko.odaki@daynix.com \
    --cc=alex.bennee@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /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).