On Fri, Jul 16, 2010 at 17:17, Brad <b...@comstyle.com> wrote: > On Friday 16 July 2010 18:05:40 Christian Weisgerber wrote: >> What are we going to do with emulators/qemu-old? >> >> It is marked as only for i386 and powerpc. However, it also requires >> gcc3 to build and both of these archs now use gcc4. >> >> Do we simply want to remove the port? >> >> Do we want to build it with gcc3 from ports? That's easy enough, >> diff below. I don't use qemu, though, so I don't know if it actually >> works. > > If that is the case then also re-enable it on amd64. >
I'm having issues on i386 with the "new" qemu. I can create instances and even created a windows 7 instance using only 600MB of RAM. Problem comes when I try to give an instance more than 725M. On the Windows and Fedora 13 instances, I get a abort with a core dump. I'd been working with Frederico Schwindt, who told me that I appear to be out of memory, but I put all my ulimits to as high as they would go, and still crashed when I attempted to run: qemu -m 768 fedora13.img I built the "debug" flavor of qemu, and built ld.so with debugging as well. gdb /usr/local/bin/qemu qemu.core GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-openbsd4.7"... Core was generated by `qemu'. Program terminated with signal 6, Aborted. Reading symbols from /usr/lib/libpthread.so.12.1...done. Loaded symbols for /usr/lib/libpthread.so.12.1 Symbols already loaded for /usr/lib/libpthread.so.12.1 Reading symbols from /usr/lib/libutil.so.11.1...done. Loaded symbols for /usr/lib/libutil.so.11.1 Reading symbols from /usr/lib/libossaudio.so.3.1...done. Loaded symbols for /usr/lib/libossaudio.so.3.1 Reading symbols from /usr/local/lib/libSDL.so.8.0...done. Loaded symbols for /usr/local/lib/libSDL.so.8.0 Reading symbols from /usr/X11R6/lib/libX11.so.13.0...done. Loaded symbols for /usr/X11R6/lib/libX11.so.13.0 Reading symbols from /usr/lib/libm.so.5.2...done. Loaded symbols for /usr/lib/libm.so.5.2 Reading symbols from /usr/lib/libz.so.4.1...done. Loaded symbols for /usr/lib/libz.so.4.1 Reading symbols from /usr/lib/libc.so.56.0...done. Loaded symbols for /usr/lib/libc.so.56.0 Reading symbols from /usr/local/lib/libiconv.so.6.0...done. Loaded symbols for /usr/local/lib/libiconv.so.6.0 Reading symbols from /usr/lib/libsndio.so.3.3...done. Loaded symbols for /usr/lib/libsndio.so.3.3 Reading symbols from /usr/lib/libusbhid.so.3.0...done. Loaded symbols for /usr/lib/libusbhid.so.3.0 Reading symbols from /usr/X11R6/lib/libxcb.so.2.1...done. Loaded symbols for /usr/X11R6/lib/libxcb.so.2.1 Reading symbols from /usr/X11R6/lib/libpthread-stubs.so.0.0...done. Loaded symbols for /usr/X11R6/lib/libpthread-stubs.so.0.0 Reading symbols from /usr/X11R6/lib/libXau.so.9.0...done. Loaded symbols for /usr/X11R6/lib/libXau.so.9.0 Reading symbols from /usr/X11R6/lib/libXdmcp.so.10.0...done. Loaded symbols for /usr/X11R6/lib/libXdmcp.so.10.0 Reading symbols from /usr/libexec/ld.so...done. Loaded symbols for /usr/libexec/ld.so #0 0x065c359d in kill () from /usr/lib/libc.so.56.0 (gdb) bt #0 0x065c359d in kill () from /usr/lib/libc.so.56.0 #1 0x0661ad65 in abort () at /usr/src/lib/libc/stdlib/abort.c:68 #2 0x1c0661d5 in qemu_memalign (alignment=Could not find the frame base for "qemu_memalign". ) at osdep.c:55 #3 0x1c0661fa in qemu_vmalloc (size=837812224) at osdep.c:107 #4 0x1c0d2c5d in qemu_ram_alloc (size=837812224) at /usr/ports/pobj/qemu-0.12.4p0-debug/qemu-0.12.4/exec.c:2420 #5 0x1c03c97c in pc_init1 (ram_size=Variable "ram_size" is not available. ) at /usr/ports/pobj/qemu-0.12.4p0-debug/qemu-0.12.4/hw/pc.c:1033 #6 0x1c008c15 in main (argc=4, argv=0xcfbf4cb4, envp=Cannot access memory at address 0x8 ) at /usr/ports/pobj/qemu-0.12.4p0-debug/qemu-0.12.4/vl.c:5959 (gdb) I have 4 GB of memory (3500K are used, I'm okay with that), and I still have over 2 GB free. I'm not using swap, and I am at a loss. I am using a cvs pull from a few hours ago, and still have the issue. I build a GENERIC.MP with no modifications. OpenBSD 4.7-current (GENERIC.MP) #2: Fri Jul 16 16:16:44 CDT 2010 r...@openbsd-host.my.domain:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz ("GenuineIntel" 686-class) 2.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE real mem = 3707650048 (3535MB) avail mem = 3637014528 (3468MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/21/09, BIOS32 rev. 0 @ 0xffa10, SMBIOS rev. 2.4 @ 0xf6540 (57 entries) bios0: vendor Dell Inc. version "A19" date 12/21/2009 bios0: Dell Inc. Latitude E6500 acpi0 at bios0: rev 2 acpi0: tables DSDT FACP HPET DMAR APIC ASF! MCFG TCPA SLIC SSDT acpi0: wakeup devices PCI0(S4) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0) USB5(S0) USB6(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S4) RP02(S4) RP03(S4) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 266MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Duo CPU P8800 @ 2.66GHz ("GenuineIntel" 686-class) 2.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpiprt0 at acpi0: bus 3 (PCIE) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 11 (RP01) acpiprt3 at acpi0: bus 12 (RP02) acpiprt4 at acpi0: bus 13 (RP03) acpiprt5 at acpi0: bus 14 (RP04) acpiprt6 at acpi0: bus -1 (RP05) acpiprt7 at acpi0: bus -1 (RP06) acpiprt8 at acpi0: bus 0 (PCI0) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature 107 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: PBTN acpibtn2 at acpi0: SBTN acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "DELL KY26603" serial 5171 type LION oem "Sanyo" acpibat1 at acpi0: BAT1 not present acpivideo0 at acpi0: VID_ acpivout0 at acpivideo0: CRT_ acpivout1 at acpivideo0: LCD_ acpivout2 at acpivideo0: DVI_ acpivout3 at acpivideo0: DVI2 acpivout4 at acpivideo0: DP__ acpivout5 at acpivideo0: DP2_ acpivideo1 at acpi0: VID_ acpivout6 at acpivideo1: CRT_ acpivout7 at acpivideo1: LCD_ acpivout8 at acpivideo1: DP__ acpivout9 at acpivideo1: DP2_ acpivout10 at acpivideo1: DVI_ acpivout11 at acpivideo1: DVI2 acpivideo2 at acpi0: VID2 bios0: ROM list: 0xc0000/0xf800! 0xcf800/0x800 cpu0: Enhanced SpeedStep 2661 MHz: speeds: 2668, 2667, 2134, 1600, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 vga1 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xe0000000, size 0x10000000 inteldrm0 at vga1: apic 2 int 16 (irq 11) drm0 at inteldrm0 "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 2 int 22 (irq 10), address 00:26:b9:c5:4b:48 uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 2 int 20 (irq 7) uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 2 int 21 (irq 4) uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 2 int 22 (irq 10) ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 2 int 22 (irq 10) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: apic 2 int 21 (irq 4) azalia0: codecs: IDT 92HD71B7, Intel/0x2802, using IDT 92HD71B7 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 2 int 16 (irq 0) pci1 at ppb0 bus 11 ppb1 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 2 int 17 (irq 0) pci2 at ppb1 bus 12 "Broadcom BCM4315" rev 0x01 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 2 "Intel 82801I PCIE" rev 0x03: apic 2 int 18 (irq 0) pci3 at ppb2 bus 13 ppb3 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 2 int 19 (irq 0) pci4 at ppb3 bus 14 uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 2 int 20 (irq 7) uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 2 int 21 (irq 4) uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 2 int 22 (irq 10) ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 2 int 20 (irq 7) usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x93 pci5 at ppb4 bus 3 cbb0 at pci5 dev 1 function 0 "Ricoh 5C476 CardBus" rev 0xba: apic 2 int 19 (irq 10) "Ricoh 5C832 Firewire" rev 0x04 at pci5 dev 1 function 1 not configured sdhc0 at pci5 dev 1 function 2 "Ricoh 5C822 SD/MMC" rev 0x21: apic 2 int 18 (irq 11) sdmmc0 at sdhc0 "Ricoh 5C843 MMC" rev 0x11 at pci5 dev 1 function 3 not configured cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 4 device 0 cacheline 0x10, lattimer 0x20 pcmcia0 at cardslot0 pcib0 at pci0 dev 31 function 0 "Intel 82801IEM LPC" rev 0x03 ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x03: apic 2 int 19 (irq 10), AHCI 1.2 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD2500BEVS-2, 01.0> SCSI3 0/direct fixed sd0: 238475MB, 512 bytes/sec, 488397168 sec total cd0 at scsibus0 targ 1 lun 0: <TSSTcorp, DVD+-RW TS-U633A, DW10> ATAPI 5/cdrom removable ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x03: apic 2 int 17 (irq 3) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM spdmem1 at iic0 addr 0x52: 2GB DDR2 SDRAM non-parity PC2-6400CL5 SO-DIMM usb2 at uhci0: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb7 at uhci5: USB revision 1.0 uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support rum0 at uhub1 port 4 "Ralink 802.11 bg WLAN" rev 2.00/0.01 addr 2 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, address 00:0e:3b:1e:f0:14 uhidev0 at uhub5 port 2 configuration 1 interface 0 "Logitech USB Receiver" rev 2.00/57.01 addr 2 uhidev0: iclass 3/1 ums0 at uhidev0: 16 buttons, Z dir wsmouse0 at ums0 mux 0 uhidev1 at uhub5 port 2 configuration 1 interface 1 "Logitech USB Receiver" rev 2.00/57.01 addr 2 uhidev1: iclass 3/0, 17 report ids uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0 uhid1 at uhidev1 reportid 16: input=6, output=6, feature=0 uhid2 at uhidev1 reportid 17: input=19, output=19, feature=0 ugen0 at uhub4 port 1 "Broadcom Corp 5880" rev 1.10/1.01 addr 2 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root root on sd0a swap on sd0b dump on sd0b