Port-RISCV archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Panic while compiling



Hi,

I've been playing with running riscv64 in qemu - so far, it has been a very clean and easy experience. Thanks!

I decided to start a bulk package build, and things were running quite a bit faster than I'd imagine that an emulation rightly should (although distcc certainly helps). However, it paniced while compiling lang/llvm :(

This is using current built from late 28-May-2023 sources.

Anything I should try, or any data I should collect and share?

Thanks,
John Klos



[ 84185.5241669] Mutex error: mutex_vector_enter,476: locking against myself

[ 84185.5241669] lock address : ffffffe17f500938
[ 84185.5241669] current cpu  :                  0
[ 84185.5241669] current lwp  : 0xffffffe17ee38300
[ 84185.5241669] owner field : 0x0000000000000150 wait/spin: 0/1

[ 84185.5241669] panic: lock error: Mutex: mutex_vector_enter,476: locking against myself: lock 0xffffffe17f500938 cpu 0 l
wp 0xffffffe17ee38300
[ 84185.5241669] cpu0: Begin traceback...
[ 84185.5241669] have_addr: true
[ 84185.5241669] addr: ffffffc12c36f3f0
[ 84185.5241669] count: 65535
[ 84185.5241669] modif:
[ 84185.5241669] trace fp ffffffc12c36f3f0
[ 84185.5241669] fp ffffffc12c36f430 vpanic() at ffffffc0002fb032 netbsd:vpanic+0x114 [ 84185.5241669] fp ffffffc12c36f450 panic() at ffffffc0002fb0d4 netbsd:panic+0x24 [ 84185.5241669] fp ffffffc12c36f550 lockdebug_abort() at ffffffc0002f1b4a netbsd:lockdebug_abort+0xbc [ 84185.5241669] fp ffffffc12c36f570 lddone() at ffffffc00009e5ca netbsd:lddone+0x20 [ 84185.5241669] fp ffffffc12c36f5b0 ld_virtio_vq_done() at ffffffc0003ebb24 netbsd:ld_virtio_vq_done+0x30 [ 84185.5241669] fp ffffffc12c36f5f0 virtio_vq_intr() at ffffffc0003e9b3e netbsd:virtio_vq_intr+0x34 [ 84185.5241669] fp ffffffc12c36f620 virtio_mmio_intr() at ffffffc00019c65c netbsd:virtio_mmio_intr+0x6c [ 84185.5241669] fp ffffffc12c36f680 plic_intr() at ffffffc00000fe46 netbsd:plic_intr+0x6e [ 84185.5241669] fp ffffffc12c36f6e0 intc_intr_handler() at ffffffc000010b88 netbsd:intc_intr_handler+0x66 [ 84185.5241669] tf ffffffc12c36f6e0 exception_kernexit() at ffffffc0000033f2 netbsd:cpu_exception_handler+0x9a
[ 84185.5241669] ---- trapframe 0xffffffc12c36f6e0 (280 bytes) ----
[ 84185.5241669] Trapframe @ 0xffffffc12c36f6e0 (cause=9 (interrupt), status=0x120, pc=0xffffffc0003eb7ca, va=0xffffffe17d
a9f8e0):
[ 84185.5241669] ra =0xffffffc0003eb7ca sp =0xffffffc12c36f7f8 gp =0xffffffc000922600 [ 84185.5241669] tp =0xffffffc12c36f858 t0 = 0x200 t1 = 0x5 t2 = 0x14 [ 84185.5241669] s0 =0xffffffc12c36f858 s1 =0xffffffe17f500780 a0 =0xffffffe17f500780 a1 =0xffffffe147e0a280 [ 84185.5241669] a2 = 0 a3 =0xffffffffffffffff a4 = 0x3e a5 =0xffffffc0003eb7a6 [ 84185.5241669] a6 = 0 a7 = 0xf423f s2 =0xffffffe147e0a280 s3 =0xffffffe17f3b8c00 [ 84185.5241669] s4 =0xffffffe17f500938 s5 =0xffffffc0006143b0 s6 = 0x23 s7 = 0xc [ 84185.5241669] s8 = 0x100000 s9 =0xffffffe17da9f8e0 s10=0xffffffc0006b58c8 s11=0xffffffc0006b5868 [ 84185.5241669] t3 = 0xbe78 t4 = 0xbe7840 t5 = 0 t6 = 0x10000
[ 84185.5241669] ------------------------------------------------
[ 84185.5241669] fp ffffffc12c36f858 ld_virtio_start() at ffffffc0003eb7ca netbsd:ld_virtio_start+0x24 [ 84185.5241669] fp ffffffc12c36f888 ld_diskstart() at ffffffc00009e026 netbsd:ld_diskstart+0x98 [ 84185.5241669] fp ffffffc12c36f8f8 dk_start() at ffffffc00036c620 netbsd:dk_start+0xde [ 84185.5241669] fp ffffffc12c36f938 spec_strategy() at ffffffc00036aef0 netbsd:spec_strategy+0x5e [ 84185.5241669] fp ffffffc12c36f978 VOP_STRATEGY() at ffffffc00035fa04 netbsd:VOP_STRATEGY+0x30 [ 84185.5241669] fp ffffffc12c36f9d8 dkstart() at ffffffc00036d69c netbsd:dkstart+0xda [ 84185.5241669] fp ffffffc12c36fa18 spec_strategy() at ffffffc00036aef0 netbsd:spec_strategy+0x5e [ 84185.5241669] fp ffffffc12c36fa58 VOP_STRATEGY() at ffffffc00035fa04 netbsd:VOP_STRATEGY+0x30 [ 84185.5241669] fp ffffffc12c36fb18 genfs_do_io() at ffffffc000361924 netbsd:genfs_do_io+0x15e [ 84185.5241669] fp ffffffc12c36fd78 genfs_do_putpages() at ffffffc0003633ca netbsd:genfs_do_putpages+0x648 [ 84185.5241669] fp ffffffc12c36fdc8 VOP_PUTPAGES() at ffffffc00035fd3c netbsd:VOP_PUTPAGES+0x38 [ 84185.5241669] fp ffffffc12c36fe18 ffs_full_fsync() at ffffffc000233ac8 netbsd:ffs_full_fsync+0x11c [ 84185.5241669] fp ffffffc12c36fe68 VOP_FSYNC() at ffffffc00035efb4 netbsd:VOP_FSYNC+0x3a [ 84185.5241669] fp ffffffc12c36fee8 sched_sync() at ffffffc000349e88 netbsd:sched_sync+0x160 [ 84185.5241669] fp 0000000000000000 exception_kernexit() at ffffffc000003450 netbsd:exception_kernexit+0x5e
[ 84185.5241669] cpu0: End traceback...
[ 84185.5241669] rebooting...




Home | Main Index | Thread Index | Old Index