Re: [Libguestfs] libldm crashes in a linux-sandbox context

2023-06-15 Thread Vincent MAILHOL
Hi Richard, On Fri. 16 Jun. 2023 à 03:08, Richard W.M. Jones wrote: > On Thu, Jun 15, 2023 at 09:18:38PM +0900, Vincent Mailhol wrote: > > Hello, > > > > I am using libguestfs in a Bazel's linux-sandbox environment[1]. > > > > When executing in that sandbox en

Re: [Libguestfs] libldm crashes in a linux-sandbox context

2023-06-21 Thread Vincent MAILHOL
no-sandbox"], cmd = "virt-make-fs --format=raw --type=ext4 --size=+500M $< $@", ) Yours sincerely, Vincent Mailhol ___ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs

[Libguestfs] [PATCH v2] ldmtool: fix NULL pointer dereference

2023-06-20 Thread Vincent Mailhol
From: Vincent Mailhol If /sys/block can not be opened, get_devices() returns NULL. cmdline() does not check this result and below code snippet: scanned = get_devices(); devices = (gchar **) scanned->data; results in a segmentation fault. Add a check on scanned. Relev

[Libguestfs] [PATCH v3] ldmtool: fix NULL pointer dereference

2023-06-20 Thread Vincent Mailhol
e8 db fd ff ff <4c> 8b 20 48 89 44 24 08 4c 89 e7 e8 0b e1 ff ff 45 31 c0 4c 89 e1 Fixes: 25d9635e4ee5 ("Add ldmtool") Signed-off-by: Vincent Mailhol --- * Changelog * v2 -> v3 * Fix the From: tag (incorrect e-mail address, sorry for the noise). v1 -> v2 * Dire

Re: [Libguestfs] libldm crashes in a linux-sandbox context

2023-06-19 Thread Vincent MAILHOL
nerate a stack trace or a core dump within that qemu VM. If you can tell me how to get an interactive prompt (or any other guidance) I can try to collect more information. Yours sincerely, Vincent Mailhol ___ Libguestfs mailing list Libguestfs@redhat.

[Libguestfs] [PATCH v1] ldmtool: fix NULL pointer dereference

2023-06-19 Thread Vincent Mailhol
e8 db fd ff ff <4c> 8b 20 48 89 44 24 08 4c 89 e7 e8 0b e1 ff ff 45 31 c0 4c 89 e1 Fixes: 25d9635e4ee5 ("Add ldmtool") Signed-off-by: Vincent Mailhol --- This thread did not yet show-up in https://listman.redhat.com/archives/libguestfs/2023-June/subject.html not sure why.

[Libguestfs] libldm crashes in a linux-sandbox context

2023-06-15 Thread Vincent Mailhol
Hello, I am using libguestfs in a Bazel's linux-sandbox environment[1]. When executing in that sandbox environment, I got frequent crashes. Please find attached below the results of libguestfs-test-tool when run into that linux-sandbox environment. The most relevant part seems to be: [