Bug 683333 - Core dump occurs when start VM with mem much larger than host's mem
Summary: Core dump occurs when start VM with mem much larger than host's mem
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-09 06:57 UTC by Mike Cao
Modified: 2015-11-23 03:34 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-11 14:07:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Mike Cao 2011-03-09 06:57:39 UTC
Description of problem:


Version-Release number of selected component (if applicable):
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.148.el6.x86_64
# uname -r
2.6.32-118.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.find a 10GB or less memory host
2.start VM with 200GB mem
eg:<commandLine> -m 200G
  
Actual results:
Failed to allocate 549755813888 B: Cannot allocate memory
Aborted (core dumped)

Expected results:
qemu-kvm process quit w/o core dump

Additional info:
(gdb) bt
#0  0x00000036158329e5 in raise () from /lib64/libc.so.6
#1  0x00000036158341c5 in abort () from /lib64/libc.so.6
#2  0x0000000000482929 in qemu_memalign (alignment=2097152, size=549755813888)
    at osdep.c:112
#3  0x00000000004eaed9 in qemu_ram_alloc (dev=<value optimized out>, 
    name=<value optimized out>, size=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/exec.c:2724
#4  0x000000000045239e in pc_init1 (ram_size=3758096384, 
    boot_device=0x7fff42df25b0 "c", kernel_filename=0x0, 
    kernel_cmdline=0x63bf42 "", initrd_filename=0x0, 
    cpu_model=0x62bce1 "cpu64-rhel6", pci_enabled=1)
    at /usr/src/debug/qemu-kvm-0.12.1.2/hw/pc.c:1111
#5  0x000000000040e541 in main (argc=<value optimized out>, 
    argv=<value optimized out>, envp=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6649

Comment 2 Luiz Capitulino 2011-03-11 14:07:23 UTC
That's the expected behavior. The core is generated because the code calls abort() and not because of a segfault.

Closing as NOTABUG.


Note You need to log in before you can comment on or make changes to this bug.