Skip to contentSkip to conversation

Assertion error when installing OpenBSD 6.3 in Linux 4.8.12

Qemu-devel Hristo Mihaylov 2 participants 2 messages Oct 13, 2018 – Oct 15, 2018

lore
Share & tools
lore
#0 lore raw

Hello,
I'm trying to install OpenBSD 6.3 on Arch Linux.

This is the start script I'm using:

```

#!/bin/sh

qemu-system-x86_64 \

    -enable-kvm \

    -m 2048 \

    -nic user,model=virtio \

    -drive file=openbsd63.qcow2,media=disk,if=virtio \

    -cdrom openbsd63.iso \

    -display gtk

```

Running ls on image and disk:

-rw-r--r-- 1 asthma asthma 336M Oct 7 07:53 openbsd63.iso

-rw-r--r-- 1 asthma asthma 193K Oct 10 22:00 openbsd63.qcow2

This is the crash output:

qemu-system-x86_64:
/build/qemu/src/qemu-3.0.0/include/exec/memory_ldst_cached.inc.h:85:
address_space_stw_le_cached: Assertion `addr < cache->len && 2 <= cache->len - addr' failed.

Running uname -a yields:

Linux dev 4.18.12.a-1-hardened #1 SMP PREEMPT Thu Oct 4 14:02:21 CEST 2018 x86_64 GNU/Linux

And the qemu version is: 3.0.0

Am I doing something wrong or is this a bug?

Regards,

Hristo Mihaylov

#1 lore raw
Quoted 11 lines · Hristo Mihaylov

Hello,
I'm trying to install OpenBSD 6.3 on Arch Linux.

This is the crash output:

qemu-system-x86_64:
/build/qemu/src/qemu-3.0.0/include/exec/memory_ldst_cached.inc.h:85:
address_space_stw_le_cached: Assertion `addr < cache->len && 2 <= cache->len - addr' failed.

Am I doing something wrong or is this a bug?

Hi; yes, this is a known bug (that affects OpenBSD guests using virtio networking). It's fixed in QEMU git master in commit db812c4073c77, and will be in the next (3.1) release as well as the next 3.0.x release.

thanks
-- PMM