qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1751674] Re: qemu-system-arm segmentation fault trying


From: Peter Maydell
Subject: [Qemu-devel] [Bug 1751674] Re: qemu-system-arm segmentation fault trying to dump VM memory
Date: Thu, 15 Mar 2018 14:46:58 -0000

What's happening here is that the memory range you're asking to dump
(physaddrs 0 to 0x3fffffff) includes a lot of devices, including the
interrupt controller, which is at 0x1e000000. There's a longstanding bug
in the GIC code where it will crash if you try to access its per-CPU
register bank from some context that isn't a guest CPU (including the
monitor or the QEMU gdb stub), because it doesn't know which CPU's
version of the registers you wanted. That's what you've run into here.

However, I suspect you didn't really want to try to take a memory dump of a 
pile of devices. The RAM in the vexpress-a9 board starts at 0x60000000, so if 
you wanted the RAM then try
  pmemsave 0x60000000 0x9fffffff memory.dmp

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1751674

Title:
  qemu-system-arm segmentation fault trying to dump VM memory

Status in QEMU:
  New

Bug description:
  Qemu segfaults trying to generate a VM memory dump:

  $ QEMU_AUDIO_DRV=none qemu-git-src/arm-softmmu/qemu-system-arm -M vexpress-a9 
-smp 4 -m 1024 -machine secure=off,dump-guest-core=on -kernel 
linux-4.9.75/arch/arm/boot/zImage -append "root=/dev/mmcblk0 rw rootfstype=ext4 
mem=1024M net.ifnames=0 console=ttyAMA0" -dtb vexpress-v2p-ca9.dtb -sd 
armv7-hd.qcow2 -netdev tap,ifname=tap_armv7,script=no,downscript=no,id=net0 
-device virtio-net-device,mac=00:AA:AD:BB:FF:02,netdev=net0  -monitor stdio 
-serial vc  -loadvm SS0
  QEMU 2.11.50 monitor - type 'help' for more information
  (qemu) pmemsave 0 0x3FFFFFFF memory.dmp
  Segmentation fault (core dumped)

  $ git rev-parse HEAD
  b384cd95eb9c6f73ad84ed1bb0717a26e29cc78f

  It's the second time I try to submit this bug, I think last time it
  failed because the attached core dump size (400M compressed). Have a
  look if you can get that file, otherwise I will try to update this
  ticket once it's created:

  (Error ID: OOPS-65553b72bc14be693eb1e37814ff9267)

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1751674/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]