[Top][All Lists]

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

[Qemu-commits] [qemu/qemu] 6b2699: hostmem: Fix qemu_opt_get_bool() cras

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 6b2699: hostmem: Fix qemu_opt_get_bool() crash in host_mem...
Date: Thu, 23 Jul 2015 08:00:07 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6b2699672d5b56f8c2902fb9db9879e8cafb2afe
  Author: Eduardo Habkost <address@hidden>
  Date:   2015-07-22 (Wed, 22 Jul 2015)

  Changed paths:
    M backends/hostmem.c

  Log Message:
  hostmem: Fix qemu_opt_get_bool() crash in host_memory_backend_init()

This fixes the following crash, introduced by commit

  $ gdb --args qemu-system-x86_64 -machine pc,mem-merge=off -object 
  Program received signal SIGABRT, Aborted.
  (gdb) bt
  #0  0x00007ffff253b8c7 in raise () at /lib64/libc.so.6
  #1  0x00007ffff253d52a in abort () at /lib64/libc.so.6
  #2  0x00007ffff253446d in __assert_fail_base () at /lib64/libc.so.6
  #3  0x00007ffff2534522 in  () at /lib64/libc.so.6
  #4  0x00005555558bb80a in qemu_opt_get_bool_helper (opts=0x55555621b650, 
address@hidden "mem-merge", address@hidden, address@hidden) at 
  #5  0x00005555558bbb5a in qemu_opt_get_bool (opts=<optimized out>, 
address@hidden "mem-merge", address@hidden) at qemu/util/qemu-option.c:398
  #6  0x0000555555720a24 in host_memory_backend_init (obj=0x5555562ac970) at 

Instead of using qemu_opt_get_bool(), that didn't work with
qemu_machine_opts for a long time, we can use the corresponding
MachineState fields.

Reviewed-by: Marcel Apfelbaum <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>

  Commit: 12e21eb088a51161c78ee39ed54ac56ebcff4243
  Author: Peter Maydell <address@hidden>
  Date:   2015-07-23 (Thu, 23 Jul 2015)

  Changed paths:
    M backends/hostmem.c

  Log Message:
  Merge remote-tracking branch 'remotes/ehabkost/tags/numa-pull-request' into 

NUMA queue, 2015-07-22

# gpg: Signature made Wed Jul 22 19:11:04 2015 BST using RSA key ID 984DC5A6
# gpg: Good signature from "Eduardo Habkost <address@hidden>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6

* remotes/ehabkost/tags/numa-pull-request:
  hostmem: Fix qemu_opt_get_bool() crash in host_memory_backend_init()

Signed-off-by: Peter Maydell <address@hidden>

Compare: https://github.com/qemu/qemu/compare/b69b30532e0a...12e21eb088a5

reply via email to

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