Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QEMU] Lbrowser crashes in KVM-virtualized Loongnix #24

Open
KatyushaScarlet opened this issue Dec 9, 2023 · 1 comment
Open

[QEMU] Lbrowser crashes in KVM-virtualized Loongnix #24

KatyushaScarlet opened this issue Dec 9, 2023 · 1 comment
Labels

Comments

@KatyushaScarlet
Copy link

KatyushaScarlet commented Dec 9, 2023

Environment

  • Device: THTF L860-T2 Laptop (L71) with 3A5000M
  • System: AOSC OS (loongarch64) with kernel 6.7.0
  • QEMU: 8.1.3
  • VM: Loongnix 20.5
  • lbrowser: 3.2.2211.3-1.stable

Status

lbrowser crashed with "Illegal instruction" output only.

QEMU command

qemu-system-loongarch64 -m 4G \
 -cpu la464-loongarch-cpu \
 -M virt \
 -smp 4 \
 -bios QEMU_EFI_8.1.fd \
 -serial stdio \
 -device virtio-gpu-pci \
 -device nec-usb-xhci,id=xhci,addr=0x1b \
 -device usb-tablet,id=tablet,bus=xhci.0,port=1 \
 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 \
 -net nic,model=virtio \
 -net user,hostfwd=tcp::10021-:22 \
 -hda Loongnix-20.5.mate.gui.loongarch64.cn.qcow2 \
 --accel kvm

Debug Info

loongson@loongson-pc:~/Desktop$ gdb /usr/bin/lbrowser core
GNU gdb (Loongnix 8.1.50-1.lnd.vec.6) 8.1.50.20190122-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "loongarch64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/usr/bin/lbrowser": not in executable format: file format not recognized
[New LWP 10658]
[New LWP 10663]
Core was generated by `/opt/apps/lbrowser'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x000000aab06d4304 in ?? ()
[Current thread is 1 (LWP 10658)]
(gdb) x/30i 0x000000aab06d4304
=> 0xaab06d4304:	vldi	$vr0,0
   0xaab06d4308:	vinsgr2vr.d	$vr0,$r4,0x0
   0xaab06d430c:	alsl.d	$r7,$r24,$r26,0x2
   0xaab06d4310:	vinsgr2vr.d	$vr0,$r7,0x1
   0xaab06d4314:	alsl.d	$r24,$r27,$r25,0x2
   0xaab06d4318:	addi.d	$r7,$r0,1(0x1)
   0xaab06d431c:	blt	$r6,$r7,24(0x18) # 0xaab06d4334
   0xaab06d4320:	vst	$vr0,$r22,0
   0xaab06d4324:	pcaddu18i	$r1,-25(0xfffe7)
   0xaab06d4328:	jirl	$r1,$r1,77084(0x12d1c)
   0xaab06d432c:	vld	$vr0,$r22,0
   0xaab06d4330:	ld.d	$r5,$r23,0
   0xaab06d4334:	vst	$vr0,$r23,0
   0xaab06d4338:	st.d	$r24,$r23,16(0x10)
   0xaab06d433c:	beqz	$r5,16(0x10) # 0xaab06d434c
   0xaab06d4340:	move	$r4,$r5
   0xaab06d4344:	pcaddu18i	$r1,266(0x10a)
   0xaab06d4348:	jirl	$r1,$r1,-72572(0x2e484)
   0xaab06d434c:	move	$r3,$r22
   0xaab06d4350:	ld.d	$r23,$r3,24(0x18)
   0xaab06d4354:	ld.d	$r24,$r3,32(0x20)
   0xaab06d4358:	ld.d	$r25,$r3,40(0x28)
   0xaab06d435c:	ld.d	$r26,$r3,48(0x30)
@xen0n xen0n changed the title [QEMU] lbrowser crash on loongnix in qemu with kvm acceleration [QEMU] Lbrowser crashes in KVM-virtualized Loongnix Dec 9, 2023
@MingcongBai
Copy link
Member

该问题可能不止 lbrowser 一处,我们启动 Arch Linux 虚拟机跑 pacman -Syu 到最后也是 SIGILL 了

图片

甚至崩得没法 logout

此时 AOSC OS 的内核已经打了 KVM LSX/LASX 相关补丁了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants