Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Fri, 7 Dec 2007 22:48:52 +0700 Eugene Grosbein wrote: > There is FreeBSD box that was 6.2-STABLE before, now it became > 7.0-BETA3 via source upgrade. The kernel has 'options COMPAT_FREEBSD6' How did you upgrade the OS? Did you use "make delete-old-libs"? Did you install compat-6x? > compiled in. However, qemu-0.8.2s.20061225_1 stopped to work, Seems to be a rather old qemu version... > it dumps core when started with an error: > Fatal error 'Cannot allocate red zone for initial thread' at line 384 in > file /usr/local/obj/src/lib/libthr/thread/thr_init.c (errno = 12) > ktrace shows that freebsd6_mmap() syscall fails: > 22114 qemu CALL > freebsd6_mmap(0xbf9ff000,0x1000,PROT_NONE,MAP_ANON,0x,0,0,0) > 22114 qemu RET freebsd6_mmap -1 errno 12 Cannot allocate memory > Is it a bug in kernel's COMPAT_FREEBSD6 feature? > Rebuilding of qemu requires downloading and building of gcc-3.4 > that's what I would avoid to do. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Sat, Dec 08, 2007 at 11:22:52AM +0700, Eugene Grosbein wrote: > On Fri, Dec 07, 2007 at 11:52:54AM -0500, Daniel Eischen wrote: > > > You have to either rebuild/install _no_ ports, or rebuild _all_ > > ports (portupgrade -af). You now seem to have applications > > or libraries that are linked to multiple FreeBSD library versions > > (e.g., libc.so.6 and libc.so.7, libthr.so.2 and libthr.so.3, > > etc) and that doesn't work and is not supported. > > But I do not see this: > > # ldd `which qemu` > /usr/local/bin/qemu: > libm.so.4 => /lib/libm.so.4 (0x4815c000) > libz.so.3 => /lib/libz.so.3 (0x48172000) > libSDL.so.11 => /usr/local/lib/libSDL.so.11 (0x48183000) > libutil.so.5 => /lib/libutil.so.5 (0x481e8000) > libpthread.so.2 => /lib/libpthread.so.2 (0x481f5000) RELENG_6 libpthread > libc.so.6 => /lib/libc.so.6 (0x4821c000) RELENG_6 libc > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x4830f000) > libm.so.5 => /lib/libm.so.5 (0x483fc000) > libggi.so.2 => /usr/local/lib/libggi.so.2 (0x48411000) > libgii.so.1 => /usr/local/lib/libgii.so.1 (0x484ab000) > libgg.so.1 => /usr/local/lib/libgg.so.1 (0x484c7000) > libvga.so.1 => /usr/local/lib/libvga.so.1 (0x484d) > libvgl.so.5 => /usr/lib/libvgl.so.5 (0x48523000) > libaa.so.1 => /usr/local/lib/libaa.so.1 (0x4852b000) > libusbhid.so.3 => /usr/lib/libusbhid.so.3 (0x48542000) > libthr.so.3 => /lib/libthr.so.3 (0x48546000) RELENG_7 libpthread > libc.so.7 => /lib/libc.so.7 (0x48558000) RELENG_7 libc > libncurses.so.7 => /lib/libncurses.so.7 (0x4864c000) > libvgagl.so.1 => /usr/local/lib/libvgagl.so.1 (0x4868e000) > libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x4869d000) > libXxf86dga.so.1 => /usr/X11R6/lib/libXxf86dga.so.1 (0x486a2000) > libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x486a8000) > libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x486b6000) > libXdmcp.so.6 => /usr/X11R6/lib/libXdmcp.so.6 (0x487a4000) > librpcsvc.so.4 => /usr/lib/librpcsvc.so.4 (0x487a9000) > libXau.so.6 => /usr/X11R6/lib/libXau.so.6 (0x487b1000) > librpcsvc.so.3 => /usr/lib/librpcsvc.so.3 (0x487b4000) > > Eugene Grosbein > ___ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "[EMAIL PROTECTED]" pgpOlKyxMxBpx.pgp Description: PGP signature
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Sat, Dec 08, 2007 at 08:02:06AM +0200, Kostik Belousov wrote: > > > > libpthread.so.2 => /lib/libpthread.so.2 (0x481f5000) > > > RELENG_6 libpthread > > > > libc.so.6 => /lib/libc.so.6 (0x4821c000) > > > RELENG_6 libc > > > > [skip] > > > > > > libthr.so.3 => /lib/libthr.so.3 (0x48546000) > > > RELENG_7 libpthread > > > > libc.so.7 => /lib/libc.so.7 (0x48558000) > > > RELENG_7 libc > > > > Thank you. Now I wonder, how such thing may happen > > if qemu was built under 6.2 where there were no > > libthr.so.3 and libc.so.7? > Most likely, you have rebuilt some library that brough in the dependencies. > Check with readelf -d (look for NEEDED tags). $ readelf -d `which qemu` | grep NEEDED 0x0001 (NEEDED) Shared library: [libm.so.4] 0x0001 (NEEDED) Shared library: [libz.so.3] 0x0001 (NEEDED) Shared library: [libSDL.so.11] 0x0001 (NEEDED) Shared library: [libutil.so.5] 0x0001 (NEEDED) Shared library: [libpthread.so.2] 0x0001 (NEEDED) Shared library: [libc.so.6] Well, libSDL.so.11 is a culprit here. I'll try to get older version to /usr/local/lib/compat and use libmap.conf to resolve this. Eugene Grosbein ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Sat, Dec 08, 2007 at 07:45:52AM +0200, Kostik Belousov wrote: > > But I do not see this: > > > > # ldd `which qemu` > > /usr/local/bin/qemu: [skip] > > libpthread.so.2 => /lib/libpthread.so.2 (0x481f5000) > RELENG_6 libpthread > > libc.so.6 => /lib/libc.so.6 (0x4821c000) > RELENG_6 libc [skip] > > libthr.so.3 => /lib/libthr.so.3 (0x48546000) > RELENG_7 libpthread > > libc.so.7 => /lib/libc.so.7 (0x48558000) > RELENG_7 libc Thank you. Now I wonder, how such thing may happen if qemu was built under 6.2 where there were no libthr.so.3 and libc.so.7? Eugene Grosbein ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Sat, Dec 08, 2007 at 12:55:37PM +0700, Eugene Grosbein wrote: > On Sat, Dec 08, 2007 at 07:45:52AM +0200, Kostik Belousov wrote: > > > > But I do not see this: > > > > > > # ldd `which qemu` > > > /usr/local/bin/qemu: > > [skip] > > > > libpthread.so.2 => /lib/libpthread.so.2 (0x481f5000) > > RELENG_6 libpthread > > > libc.so.6 => /lib/libc.so.6 (0x4821c000) > > RELENG_6 libc > > [skip] > > > > libthr.so.3 => /lib/libthr.so.3 (0x48546000) > > RELENG_7 libpthread > > > libc.so.7 => /lib/libc.so.7 (0x48558000) > > RELENG_7 libc > > Thank you. Now I wonder, how such thing may happen > if qemu was built under 6.2 where there were no > libthr.so.3 and libc.so.7? Most likely, you have rebuilt some library that brough in the dependencies. Check with readelf -d (look for NEEDED tags). pgpQUnKv20prN.pgp Description: PGP signature
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
>> There is FreeBSD box that was 6.2-STABLE before, now it became >> 7.0-BETA3 via source upgrade. The kernel has 'options COMPAT_FREEBSD6' > How did you upgrade the OS? Did you use "make delete-old-libs"? > Did you install compat-6x? No, I've tried now: install compat-6x port and ran "make delete-old-libs", no change - the same error (ldd shows, that qemu uses libs from /usr/local/lib/compat now). Eugene Grosbein ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Fri, Dec 07, 2007 at 11:52:54AM -0500, Daniel Eischen wrote: > You have to either rebuild/install _no_ ports, or rebuild _all_ > ports (portupgrade -af). You now seem to have applications > or libraries that are linked to multiple FreeBSD library versions > (e.g., libc.so.6 and libc.so.7, libthr.so.2 and libthr.so.3, > etc) and that doesn't work and is not supported. But I do not see this: # ldd `which qemu` /usr/local/bin/qemu: libm.so.4 => /lib/libm.so.4 (0x4815c000) libz.so.3 => /lib/libz.so.3 (0x48172000) libSDL.so.11 => /usr/local/lib/libSDL.so.11 (0x48183000) libutil.so.5 => /lib/libutil.so.5 (0x481e8000) libpthread.so.2 => /lib/libpthread.so.2 (0x481f5000) libc.so.6 => /lib/libc.so.6 (0x4821c000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x4830f000) libm.so.5 => /lib/libm.so.5 (0x483fc000) libggi.so.2 => /usr/local/lib/libggi.so.2 (0x48411000) libgii.so.1 => /usr/local/lib/libgii.so.1 (0x484ab000) libgg.so.1 => /usr/local/lib/libgg.so.1 (0x484c7000) libvga.so.1 => /usr/local/lib/libvga.so.1 (0x484d) libvgl.so.5 => /usr/lib/libvgl.so.5 (0x48523000) libaa.so.1 => /usr/local/lib/libaa.so.1 (0x4852b000) libusbhid.so.3 => /usr/lib/libusbhid.so.3 (0x48542000) libthr.so.3 => /lib/libthr.so.3 (0x48546000) libc.so.7 => /lib/libc.so.7 (0x48558000) libncurses.so.7 => /lib/libncurses.so.7 (0x4864c000) libvgagl.so.1 => /usr/local/lib/libvgagl.so.1 (0x4868e000) libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x4869d000) libXxf86dga.so.1 => /usr/X11R6/lib/libXxf86dga.so.1 (0x486a2000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x486a8000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x486b6000) libXdmcp.so.6 => /usr/X11R6/lib/libXdmcp.so.6 (0x487a4000) librpcsvc.so.4 => /usr/lib/librpcsvc.so.4 (0x487a9000) libXau.so.6 => /usr/X11R6/lib/libXau.so.6 (0x487b1000) librpcsvc.so.3 => /usr/lib/librpcsvc.so.3 (0x487b4000) Eugene Grosbein ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: qemu: freebsd6_mmap -1 errno 12 Cannot allocate memory
On Fri, 7 Dec 2007, Boris Samorodov wrote: On Fri, 7 Dec 2007 22:48:52 +0700 Eugene Grosbein wrote: There is FreeBSD box that was 6.2-STABLE before, now it became 7.0-BETA3 via source upgrade. The kernel has 'options COMPAT_FREEBSD6' How did you upgrade the OS? Did you use "make delete-old-libs"? Did you install compat-6x? compiled in. However, qemu-0.8.2s.20061225_1 stopped to work, Seems to be a rather old qemu version... it dumps core when started with an error: Fatal error 'Cannot allocate red zone for initial thread' at line 384 in file /usr/local/obj/src/lib/libthr/thread/thr_init.c (errno = 12) You have to either rebuild/install _no_ ports, or rebuild _all_ ports (portupgrade -af). You now seem to have applications or libraries that are linked to multiple FreeBSD library versions (e.g., libc.so.6 and libc.so.7, libthr.so.2 and libthr.so.3, etc) and that doesn't work and is not supported. -- DE ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"