FS#76036 - [qemu-system-sparc] Trap 0x02 (Illegal Instruction) while interrupts disabled

Attached to Project: Arch Linux
Opened by Jesus (jj93) - Tuesday, 27 September 2022, 20:19 GMT
Last edited by David Runge (dvzrv) - Saturday, 01 October 2022, 12:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

The program fails to execute even without any arguments.

The error message:

qemu: fatal: Trap 0x02 (Illegal Instruction) while interrupts disabled, Error state
pc: 00000000 npc: 00000004
%g0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%o0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%l0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%i0-7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
%f00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
%f24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
psr: 040000c0 (icc: ---- SPE: SP-) wim: 00000001
fsr: 00000000 y: 00000000

[1] 6561 IOT instruction (core dumped) qemu-system-sparc

The back trace from the core dump:

#0 0x00007ffff6dd149c in () at /usr/lib/libc.so.6
#1 0x00007ffff6d81958 in raise () at /usr/lib/libc.so.6
#2 0x00007ffff6d6b53d in abort () at /usr/lib/libc.so.6
#3 0x00005555558a783f in cpu_abort ()
#4 0x000055555588298b in sparc_cpu_do_interrupt ()
#5 0x000055555591311c in cpu_exec ()
#6 0x0000555555927439 in ()
#7 0x0000555555abb928 in ()
#8 0x00007ffff6dcf74d in () at /usr/lib/libc.so.6
#9 0x00007ffff6e51700 in () at /usr/lib/libc.so.6

Additional info:
* package version(s) 7.1.0-5

Steps to reproduce:

Just run qemu-system-sparc binary without any additional arguments is enough to reproduce the error.
This task depends upon

Closed by  David Runge (dvzrv)
Saturday, 01 October 2022, 12:12 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with qemu 7.1.0-6
Comment by Toolybird (Toolybird) - Friday, 30 September 2022, 00:51 GMT Comment by David Runge (dvzrv) - Friday, 30 September 2022, 07:15 GMT
@jj93: Thanks for the ticket!

Given that in https://bbs.archlinux.org/viewtopic.php?id=280015 you claim to have built qemu yourself, can you please provide your build instructions, etc.? Without this, it is going to be hard to debug.
Comment by David Runge (dvzrv) - Friday, 30 September 2022, 07:48 GMT Comment by David Runge (dvzrv) - Friday, 30 September 2022, 09:30 GMT
Please check whether qemu 7.1.0-6 in [testing] fixes your issue.
Comment by David Runge (dvzrv) - Saturday, 01 October 2022, 12:12 GMT
Can't reproduce with 7.1.0-6.

Loading...