You are not logged in.

#1 2022-09-26 16:16:38

jj93
Member
Registered: 2022-09-26
Posts: 3

[SOLVED] Core dump when emulating SPARC with QEMU

Hi,

I have unsucessfully tried to use qemu-system-sparc on my system.

The program fails to execute even without any arguments (when it should at least reach openbios shell).

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

I have briefly taken a look at some of those functions and search several things on google up to page 3. Couldn't find anything meaningful, other than old posts and issues.

I'm afraid troubleshooting this is beyond my skills.

I built my own QEMU from source and it opens correctly up to openbios, no aborts. I did have issues installing solaris afterwards but that may be because of the quick&dirty build. I reviewed the arch package build but there's some many options it's hard to tell.

Should I open a bug report?

Last edited by jj93 (2022-10-03 11:44:34)

Offline

#2 2022-09-27 14:11:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,559

Re: [SOLVED] Core dump when emulating SPARC with QEMU

Same error on my system, a bug report seems a good idea.

Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-09-27 20:21:56

jj93
Member
Registered: 2022-09-26
Posts: 3

Re: [SOLVED] Core dump when emulating SPARC with QEMU

Thank you.

I created the bug report.

Time to wait now.

Offline

#4 2022-10-01 12:44:37

jj93
Member
Registered: 2022-09-26
Posts: 3

Re: [SOLVED] Core dump when emulating SPARC with QEMU

I just reviewed this again. The update (v7.1.0-6) the maintainers released fixed the issue.

Offline

#5 2022-10-02 09:53:20

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,559

Re: [SOLVED] Core dump when emulating SPARC with QEMU

great, please prepend [Solved] to the thread title .
(Edft first post in the thread. there's a character limit for title, you may have to shorten exisitng title if it gets to long)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB