NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
qemu-system-riscv64 error, Could not allocate dynamic translator buffer
Hi,
This qemu command runs on FreeBSD and OpenBSD.
qemu-system-riscv64 -machine spike_v1.10 -kernel bbl -nographic
On a 2GB RAM NetBSD 8.0/amd64 VM on VirtualBox 5.1.38 running on
Ubuntu 16.04.5 LTS
bash-4.4# ktruss /usr/pkg/bin/qemu-system-riscv64 -machine spike_v1.10
-kernel bbl -nographic > e
Could not allocate dynamic translator buffer
bash-4.4# ktruss /usr/pkg/bin/qemu-system-riscv64 -machine spike_v1.10
-kernel bbl -nographic > ktruss.err
Could not allocate dynamic translator buffer
bash-4.4# ktrace /usr/pkg/bin/qemu-system-riscv64 -machine spike_v1.10
-kernel bbl -nographic
Could not allocate dynamic translator buffer
bash-4.4# kdump ktrace.out > kdump.out
bash-4.4# uname -a
NetBSD localhost 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC
2018 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC
amd64
bash-4.4# vmstat
procs memory page disks faults cpu
r b avm fre flt re pi po fr sr w0 c0 in sy cs us sy id
0 0 88936 1883472 208 0 0 0 0 0 13 0 16 549 66 1 1 98
bash-4.4# ulimit -a
time (-t seconds ) unlimited
file (-f blocks ) unlimited
data (-d kbytes ) 262144
stack (-s kbytes ) 4096
coredump (-c blocks ) unlimited
memory (-m kbytes ) 2010852
locked memory (-l kbytes ) 670284
thread (-r threads ) 1024
process (-p processes ) 1024
nofiles (-n descriptors) 1024
vmemory (-v kbytes ) unlimited
sbsize (-b bytes ) unlimited
#
The complete log of ktrace+kdump and ktruss are at
https://github.com/hakrdinesh/e/blob/master/nb/ktruss.out
and
https://github.com/hakrdinesh/e/blob/master/nb/kdump.out
ktruss reports ...
725 1 qemu-system-risc mmap(0, 0x1000, 0x3, 0x1002,
0xffffffff, 0, 0) = 0x7421f67ea000
725 1 qemu-system-risc access("/usr/pkg/share/qemu", 0x4) = 0
725 1 qemu-system-risc mmap(0, 0x7000, 0x3, 0x1002,
0xffffffff, 0, 0) = 0x7421f67e3000
725 1 qemu-system-risc mmap(0, 0x7000, 0x3, 0x1002,
0xffffffff, 0, 0) = 0x7421f67dc000
725 1 qemu-system-risc mmap(0, 0x81000, 0x3, 0x1002,
0xffffffff, 0, 0) = 0x7421f675b000
725 1 qemu-system-risc mmap(0, 0x2000000, 0x7, 0x1002,
0xffffffff, 0, 0) Err#13 EACCES
725 1 qemu-system-risc write(0x2, 0x7421f67f3000, 0x2d) = 45
"Could not allocate dynamic translator buffer\n"
kdump reports ...
107 1 qemu-system-risc CALL access(0x7b80e5ed6c80,4)
107 1 qemu-system-risc NAMI "/usr/pkg/share/qemu"
107 1 qemu-system-risc RET access 0
107 1 qemu-system-risc CALL
mmap(0,0x7000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
107 1 qemu-system-risc RET mmap 135793543385088/0x7b80e5ea9000
107 1 qemu-system-risc CALL
mmap(0,0x7000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
107 1 qemu-system-risc RET mmap 135793543356416/0x7b80e5ea2000
107 1 qemu-system-risc CALL
mmap(0,0x81000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
107 1 qemu-system-risc RET mmap 135793542828032/0x7b80e5e21000
107 1 qemu-system-risc CALL
mmap(0,0x2000000,PROT_READ|PROT_WRITE|PROT_EXEC,0x1002<PRIVATE,ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0)
107 1 qemu-system-risc RET mmap -1 errno 13 Permission denied
107 1 qemu-system-risc CALL write(2,0x7b80e5eb9000,0x2d)
107 1 qemu-system-risc GIO fd 2 wrote 45 bytes
"Could not allocate dynamic translator buffer\n"
How would I fix this?
Thank.
Regards,
Dinesh
Home |
Main Index |
Thread Index |
Old Index