gcc crashes in hppa emulation

Bug #1880287 reported by Helge Deller
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Richard Henderson

Bug Description

There seems to be a translation bug in the qemu-hppa (qemu v5.0.0) emulation:
A stripped down testcase (taken from Linux kernel build) is attached.

In there is "a.sh", a shell script which calls gcc-9 (fails with both debian gcc-9.3.0-11 or gcc-9.3.0-12). and "a.iii", the preprocessed source.

When starting a.sh, in the emulation gcc crashes with segfault.
On real hardware gcc succeeds to compile the source.

In a hppa-user chroot running "apt update && apt install gcc-9" should be sufficient to get the needed reproducer environment.

Tags: linux-user tcg
Revision history for this message
Helge Deller (hdeller) wrote :
Revision history for this message
Helge Deller (hdeller) wrote :

Test still crashes the VM and chroot with up-to-date debian chroot, including updated gcc-9.3.0-14.

tags: added: linux-user
Revision history for this message
Helge Deller (hdeller) wrote :

Sven Schnelle (<email address hidden>) noticed that increasing
-#define TCG_MAX_TEMPS 512
+#define TCG_MAX_TEMPS 1024
in include/tcg/tcg.h prevents fixes that crash.

tags: added: tcg
Revision history for this message
Richard Henderson (rth) wrote :

Thanks for the debugging. Failure to free temporaries.

Changed in qemu:
status: New → In Progress
assignee: nobody → Richard Henderson (rth)
Richard Henderson (rth)
Changed in qemu:
status: In Progress → Fix Committed
Revision history for this message
Laurent Vivier (laurent-vivier) wrote :
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