From: Andreas Florath Subject: BUG: xend cores when creating a VM with 16MByte RAM Date: Mon, 03 Aug 2009 21:11:10 +0200 Message-ID: <4A77364E.9080808@flonatel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hello! When creating a VM with 16MByte xend cores with Program received signal SIGBUS, Bus error. [Switching to Thread 0xb45ffb90 (LWP 27606)] 0xb7ecf6af in memset () from /lib/libc.so.6 and a stack trace like the one in the attachment. (detected during a run of xm-test '16_create_smallmem_neg') xend should throw / return some error - but must not core. Environment: xen-unstable i386 Debian 5.0.1 Kind regards Andreas P.S.: Started some deeper analyse of this problem which leads me to some hints that 'mmap(2)' does not work - which I cannot believe. (Some more notes and stack traces to my (possible wrong) analyse can be found in my notebook [1].) [1] http://87.230.77.133/blog/?p=3D42 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (gdb) bt #0 0xb7f446af in memset () from /lib/libc.so.6 #1 0xb7ad4d6e in xc_dom_alloc_segment (dom=3D0x9efd9c0, seg=3D0x9efdb80, name=3D0xb7adc763 "kernel", start=3D3238002688, size=3D9732096) at xc_dom_core.c:424 #2 0xb7ad4e48 in xc_dom_build_image (dom=3D0x9efd9c0) at xc_dom_core.c:7= 30 #3 0xb7ad7267 in xc_linux_build_internal (dom=3D0x9efd9c0, xc_handle=3D, domid=3D, mem_mb=3D16, flags=3D0, store_evtchn=3D1, store_mfn=3D0xb495468c, console_evtchn=3D2, console_mfn=3D0xb4954688) at xc_dom_compat_linux.c:47 #4 0xb7ad734c in xc_dom_linux_build (xc_handle=3D8, dom=3D0=C3=979efd9c0= , domid=3D198, mem_mb=3D16, image_name=3D0=C3=979ebcfbc =E2=80=9C/boot/vmli= nuz-2.6.30-rc3-tip=E2=80=9D, initrd_name=3D0=C3=979eb1a54 =E2=80=9C/data/xu-add-bridge-to-kernel-config-01/tools/xm-test/ramdisk/in= itrd.img=E2=80=9D, flags=3D0, store_evtchn=3D1, store_mfn=3D0xb495468c, console_evtchn=3D2, console_mfn=3D0xb4954688)= at xc_dom_compat_linux.c:145 #5 0xb7b01ffb in pyxc_linux_build (self=3D0xb7e51340, args=3D0xb7e9102c, kwds=3D0=C3=979ecf68c) at xen/lowlevel/xc/xc.c:441 #6 0=C3=970805d477 in PyObject_Call () #7 0=C3=97080ccbef in PyEval_EvalFrameEx () #8 0=C3=97080d0685 in PyEval_EvalCodeEx () #9 0=C3=9708117171 in ?? () #10 0=C3=970995d6e0 in ?? () #11 0=C3=97099569bc in ?? () #12 0=C3=9700000000 in ?? ()