qemu-system-riscv64 sbi_trap_error powering down VM riscv64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Incomplete
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Host OS: Focal, 20.04(5.
QEMU: 1:4.2-3ubuntu6.8
OpenSBI: 0.8.1
Affected Series: Focal/Groovy Both 5.4/5.8 kernels
Upon powering off a Groovy VM ( GNU/Linux 5.8.0-7-generic riscv64 ) an sbi_trap_error will occur halting the VM. I have not tried an older version of OSBI.
root@riscv64-
Powering off.
[ 134.931728] reboot: Power down
sbi_trap_error: hart0: trap handler failed (error -2)
sbi_trap_error: hart0: mcause=
sbi_trap_error: hart0: mepc=0x00000000
sbi_trap_error: hart0: ra=0x0000000080
sbi_trap_error: hart0: gp=0xffffffe001
sbi_trap_error: hart0: s0=0x0000000080
sbi_trap_error: hart0: a0=0x0000000000
sbi_trap_error: hart0: a2=0x0000000080
sbi_trap_error: hart0: a4=0x0000000000
sbi_trap_error: hart0: a6=0x0000000000
sbi_trap_error: hart0: s2=0x0000000000
sbi_trap_error: hart0: s4=0x0000000000
sbi_trap_error: hart0: s6=0x0000000000
sbi_trap_error: hart0: s8=0x0000000000
sbi_trap_error: hart0: s10=0x000000000
sbi_trap_error: hart0: t0=0x0000000000
sbi_trap_error: hart0: t2=0x0000000000
sbi_trap_error: hart0: t4=0x0000000000
sbi_trap_error: hart0: t6=0x0000000000
root@riscv64-
Stopping Session 1 of user root.
[ OK ] Removed slice system-
[ OK ] Stopped target Graphical Interface.
[ OK ] Stopped target Multi-User System.
[ OK ] Stopped target Login Prompts.
[ OK ] Stopped target Host and Network Name Lookups.
[ OK ] Stopped target Timers.
[ OK ] Stopped Daily apt upgrade and clean activities.
[ OK ] Stopped Daily apt download activities.
[ OK ] Stopped Periodic ext4 Onli…ata Check for All Filesystems.
[ OK ] Stopped Discard unused blocks once a week.
[ OK ] Stopped Daily rotation of log files.
[ OK ] Stopped Message of the Day.
[ OK ] Stopped Daily Cleanup of Temporary Directories.
[ OK ] Stopped target System Time Synchronized.
[ OK ] Stopped target System Time Set.
[ OK ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
Stopping Regular background program processing daemon...
Stopping Getty on tty1...
Stopping Dispatcher daemon for systemd-networkd...
Stopping System Logging Service...
Stopping Serial Getty on ttyS0...
Stopping Load/Save Random Seed...
[ OK ] Stopped Regular background program processing daemon.
[ OK ] Stopped Dispatcher daemon for systemd-networkd.
[ OK ] Stopped System Logging Service.
[ OK ] Stopped Serial Getty on ttyS0.
[ OK ] Stopped Getty on tty1.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Session 1 of user root.
[ OK ] Removed slice system-getty.slice.
[ OK ] Removed slice system-
Stopping User Login Management...
Stopping User Manager for UID 0...
[ OK ] Stopped User Login Management.
[ OK ] Stopped User Manager for UID 0.
Stopping User Runtime Directory /run/user/0...
[ OK ] Unmounted /run/user/0.
[ OK ] Stopped User Runtime Directory /run/user/0.
[ OK ] Removed slice User Slice of UID 0.
[ OK ] Reached target Unmount All Filesystems.
Stopping D-Bus System Message Bus...
Stopping Permit User Sessions...
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Basic System.
[ OK ] Stopped target Network.
[ OK ] Stopped target Paths.
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Sockets.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
[ OK ] Stopped target Local Encrypted Volumes.
[ OK ] Stopped Dispatch Password …ts to Console Directory Watch.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Stopped target Swap.
[ OK ] Closed Syslog Socket.
Stopping Network Name Resolution...
Stopping Network Time Synchronization...
Stopping Update UTMP about System Boot/Shutdown...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Network Name Resolution.
Stopping Network Service...
[ OK ] Stopped Network Service.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Apply Kernel Variables.
[ OK ] Stopped Load Kernel Modules.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Create System Users.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Finished Power-Off.
[ OK ] Reached target Power-Off.
[ 77.560831] reboot: Power down
sbi_trap_error: hart0: trap handler failed (error -2)
sbi_trap_error: hart0: mcause=
sbi_trap_error: hart0: mepc=0x00000000
sbi_trap_error: hart0: ra=0x0000000080
sbi_trap_error: hart0: gp=0xffffffe001
sbi_trap_error: hart0: s0=0x0000000080
sbi_trap_error: hart0: a0=0x0000000000
sbi_trap_error: hart0: a2=0x0000000080
sbi_trap_error: hart0: a4=0x0000000000
sbi_trap_error: hart0: a6=0x0000000000
sbi_trap_error: hart0: s2=0x0000000000
sbi_trap_error: hart0: s4=0x0000000000
sbi_trap_error: hart0: s6=0x0000000000
sbi_trap_error: hart0: s8=0x0000000000
sbi_trap_error: hart0: s10=0x000000000
sbi_trap_error: hart0: t0=0x0000000000
sbi_trap_error: hart0: t2=0x0000000000
sbi_trap_error: hart0: t4=0x0000000000
sbi_trap_error: hart0: t6=0x0000000000
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1905067
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.