Regressions on arm target with some GCC tests

Bug #1834496 reported by Christophe Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Richard Henderson

Bug Description

Hi,

After trying qemu master:
commit 474f3938d79ab36b9231c9ad3b5a9314c2aeacde
Merge: 68d7ff0 14f5d87
Author: Peter Maydell <email address hidden>
Date: Fri Jun 21 15:40:50 2019 +0100

I found several regressions compared to qemu-3.1 when running the GCC testsuite.
I'm attaching a tarball containing several GCC tests (binaries), needed shared libs, and a short script to run all the tests.

All tests used to pass w/o error (one of them is verbose), but with a recent qemu, all of them make qemu crash:

qemu: uncaught target signal 6 (Aborted) - core dumped

This was noticed with GCC master configured with
--target arm-none-linux-gnueabi
--with-mode arm
--with-cpu cortex-a9

and calling qemu with --cpu cortex-a9 (the script uses "any", this makes no difference).

I have noticed other failures with arm-v8 code, but this is probably the same root cause. Since it's a bit tedious to manually rebuild & extract the testcases, I'd prefer to start with this subset, and I can extract more if needed later.

Thanks

Tags: arm testcase
Revision history for this message
Christophe Lyon (christophe-lyon) wrote :
tags: added: arm testcases
tags: added: testcase
removed: testcases
Richard Henderson (rth)
Changed in qemu:
assignee: nobody → Richard Henderson (rth)
Revision history for this message
Alex Bennée (ajbennee) wrote :

I bisected a chunk of the errors to:

  commit c6fb8c0cf704c4a1a48c3e99e995ad4c58150dab (refs/bisect/bad)
  Author: Richard Henderson <email address hidden>
  Date: Mon Feb 25 11:42:35 2019 -0800

      tcg/i386: Support INDEX_op_extract2_{i32,i64}

      Signed-off-by: Richard Henderson <email address hidden>

Specifically I think when tcg_gen_deposit_i32 handles the if (ofs + len == 32) case.

Revision history for this message
Alex Bennée (ajbennee) wrote :

Fixed by:

Subject: [PATCH for-4.1] tcg: Fix constant folding of INDEX_op_extract2_i32
Date: Tue, 9 Jul 2019 14:19:00 +0200
Message-Id: <email address hidden>

Changed in qemu:
status: New → In Progress
Revision history for this message
Christophe Lyon (christophe-lyon) wrote :

I confirm this patch fixes the problem I reported. Thanks!

Changed in qemu:
status: In Progress → Fix Committed
Thomas Huth (th-huth)
Changed in qemu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.