diff for duplicates of <87k0x0nzff.fsf@linaro.org> diff --git a/a/1.txt b/N1/1.txt index b6e7377..d7254d4 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,4 +1,3 @@ - Hansni Bu <1895080@bugs.launchpad.net> writes: >> > No, it's not set by CentOS-7.5. @@ -235,3 +234,58 @@ In the meantime I'll spin up a patch to improve the failure mode. -- Alex Bennée + +-- +You received this bug notification because you are a member of qemu- +devel-ml, which is subscribed to QEMU. +https://bugs.launchpad.net/bugs/1895080 + +Title: + pgb_reserved_va: Assertion `addr == test' failed + +Status in QEMU: + New + +Bug description: + This problem occurs on CentOS-7.5 (64-bit) with qemu-5.1.0, qemu head + (commit 9435a8b3dd35f1f926f1b9127e8a906217a5518a) for riscv32-linux- + user. + + Firstly, compile fails: + Compiling C object libqemu-riscv32-linux-user.fa.p/linux-user_strace.c.o + ../qemu.git/linux-user/strace.c:1210:18: error: ‘FALLOC_FL_KEEP_SIZE’ undeclared here (not in a function) + FLAG_GENERIC(FALLOC_FL_KEEP_SIZE), + + I have to add below include to linux-user/strace.c + diff --git a/linux-user/strace.c b/linux-user/strace.c + index 11fea14fba..22e51d4a8a 100644 + --- a/linux-user/strace.c + +++ b/linux-user/strace.c + @@ -7,6 +7,7 @@ + #include <sys/mount.h> + #include <arpa/inet.h> + #include <netinet/tcp.h> + +#include <linux/falloc.h> + #include <linux/if_packet.h> + #include <linux/netlink.h> + #include <sched.h> + + Then trying qemu-riscv32 with a simple ELF, I get: + linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed. + + strace shows that: + mmap(0x1000, 4294963200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x10000 + write(2, "qemu-riscv32: ../qemu.git/linux-"..., 103qemu-riscv32: ../qemu.git/linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed. + ) = 103 + + The source code is in the function pgb_reserved_va (linux- + user/elfload.c). I think mmap cannot guarantee that the returned + pointer (test) equals to the parameter of addr. So is this a bug to + assert (addr == test)? + + Attached configure script and test ELF file. + + Thanks. + +To manage notifications about this bug go to: +https://bugs.launchpad.net/qemu/+bug/1895080/+subscriptions diff --git a/a/content_digest b/N1/content_digest index 60db3fe..c7056f7 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -5,14 +5,12 @@ "ref\0CAGTPX+DAoJcw2y9gPjkP6kGXEQW7=e1tohM8vND9j9Qtxuc5vw@mail.gmail.com\0" "ref\087o8mco7el.fsf@linaro.org\0" "ref\0CAGTPX+Dacxwh8O7XE+6j5OE8gnFoN-2DYuCNDENVtWtbCkDa=Q@mail.gmail.com\0" - "From\0Alex Benn\303\251e <alex.bennee@linaro.org>\0" + "From\0Alex Benn\303\251e <1895080@bugs.launchpad.net>\0" "Subject\0Re: [Bug 1895080] [NEW] pgb_reserved_va: Assertion `addr == test' failed\0" - "Date\0Fri, 11 Sep 2020 15:47:00 +0100\0" - "To\0Bug 1895080 <1895080@bugs.launchpad.net>\0" - "Cc\0qemu-devel@nongnu.org\0" + "Date\0Fri, 11 Sep 2020 14:47:00 -0000\0" + "To\0qemu-devel@nongnu.org\0" "\00:1\0" "b\0" - "\n" "Hansni Bu <1895080@bugs.launchpad.net> writes:\n" "\n" ">> > No, it's not set by CentOS-7.5.\n" @@ -248,6 +246,61 @@ "\n" "\n" "-- \n" - "Alex Benn\303\251e" + "Alex Benn\303\251e\n" + "\n" + "-- \n" + "You received this bug notification because you are a member of qemu-\n" + "devel-ml, which is subscribed to QEMU.\n" + "https://bugs.launchpad.net/bugs/1895080\n" + "\n" + "Title:\n" + " pgb_reserved_va: Assertion `addr == test' failed\n" + "\n" + "Status in QEMU:\n" + " New\n" + "\n" + "Bug description:\n" + " This problem occurs on CentOS-7.5 (64-bit) with qemu-5.1.0, qemu head\n" + " (commit 9435a8b3dd35f1f926f1b9127e8a906217a5518a) for riscv32-linux-\n" + " user.\n" + "\n" + " Firstly, compile fails:\n" + " Compiling C object libqemu-riscv32-linux-user.fa.p/linux-user_strace.c.o\n" + " ../qemu.git/linux-user/strace.c:1210:18: error: \342\200\230FALLOC_FL_KEEP_SIZE\342\200\231 undeclared here (not in a function)\n" + " FLAG_GENERIC(FALLOC_FL_KEEP_SIZE),\n" + "\n" + " I have to add below include to linux-user/strace.c\n" + " diff --git a/linux-user/strace.c b/linux-user/strace.c\n" + " index 11fea14fba..22e51d4a8a 100644\n" + " --- a/linux-user/strace.c\n" + " +++ b/linux-user/strace.c\n" + " @@ -7,6 +7,7 @@\n" + " #include <sys/mount.h>\n" + " #include <arpa/inet.h>\n" + " #include <netinet/tcp.h>\n" + " +#include <linux/falloc.h>\n" + " #include <linux/if_packet.h>\n" + " #include <linux/netlink.h>\n" + " #include <sched.h>\n" + "\n" + " Then trying qemu-riscv32 with a simple ELF, I get:\n" + " linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed.\n" + "\n" + " strace shows that:\n" + " mmap(0x1000, 4294963200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x10000\n" + " write(2, \"qemu-riscv32: ../qemu.git/linux-\"..., 103qemu-riscv32: ../qemu.git/linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed.\n" + " ) = 103\n" + "\n" + " The source code is in the function pgb_reserved_va (linux-\n" + " user/elfload.c). I think mmap cannot guarantee that the returned\n" + " pointer (test) equals to the parameter of addr. So is this a bug to\n" + " assert (addr == test)?\n" + "\n" + " Attached configure script and test ELF file.\n" + "\n" + " Thanks.\n" + "\n" + "To manage notifications about this bug go to:\n" + https://bugs.launchpad.net/qemu/+bug/1895080/+subscriptions -8bfac0ef5abca80c4e5bf404dca67e13d415636643fc80a28e7ec5b68a4d2f00 +8810b5900231b979a79790190ff7a5f7afa3607b10022945f9e521ded2642a7f
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.