Bug 72865 - emulators/vmware3 crashes on 5.3-STABLE
Summary: emulators/vmware3 crashes on 5.3-STABLE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-19 09:00 UTC by Mohacsi Janos
Modified: 2006-05-01 12:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mohacsi Janos 2004-10-19 09:00:52 UTC
	The vmware3 port (version 3.2.1.2242_9,1) is crashing on 5.3-STABLE.
While it was working on 5.3-BETA4 FreeBSD 5.3-BETA4 #3: Sun Sep 12 20:30:09 CEST 2004. You can start the vmware3 and you can configure, but when you push 
power-on, then whole system crashes. I did not see any panic message...:(
I tried a virtual windows 98 environment. 

Of course I reinstalled the vmware3 after the system upgrade. What else should
I upgrade?

Fix: 

I can try to debug it, if I get hints.
How-To-Repeat: 	Install vmware3 on FreeBSD 5.3-STABLE. Try to start. You will see crash.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-10-27 16:08:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-emulation

Ask emulation-list for help
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2004-12-06 15:50:57 UTC
Responsible Changed
From-To: freebsd-emulation->emulation
Comment 3 Kirill Bezzubets 2005-01-26 12:19:21 UTC
With GENERIC kernel and PIO4 ata mode panic is:

rtc: 100 > kern.hz: Timing will be inaccurate, please increase hz.
ad2: TIMEOUT - WRITE_MUL retrying (2 retries left) LBA=1187007
ad2: FAILURE - ATA_IDENTIFY timed out
ad2: FAILURE - ATA_IDENTIFY timed out
ad2: WARNING - removed from configuration
ata1-master: FAILURE - WRITE_MUL timed out
panic: softdep_unlock: lock not held

Similar with UDMA.

Dmesg from GENERIC is:

CPU: Intel(R) Pentium(R) 4 CPU 1.90GHz (1904.33-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf12  Stepping = 2
   Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 268369920 (255 MB)
avail memory = 252960768 (241 MB)
ACPI APIC Table: <AMIINT INTEL845>
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT INTEL845> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82845 host to AGP bridge> mem 0xe0000000-0xe03fffff at device  
0.0 o
n pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib2
rl0: <RealTek 8139 10/100BaseTX> port 0xbc00-0xbcff mem  
0xdfeeff00-0xdfeeffff ir
q 18 at device 2.0 on pci3
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:30:4f:06:e0:3a
rl0: [GIANT-LOCKED]
pci3: <display, VGA> at device 4.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH2 UDMA100 controller> port  
0xfc00-0xfc0f,0x376,0x170-0x177,0x
3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xd800-0xd81f  
irq 19
  at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xdc00-0xdc1f  
irq 23
  at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
acpi_button1: <Sleep Button> on acpi0
fdc0: <floppy drive controller> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6  
drq 2 o
n acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on  
acpi0
sio0: type 16550A
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1904330744 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ata1-master: DMA limited to UDMA33, non-ATA66 cable or device
ad2: 38166MB <ST340014A/8.01> [77545/16/63] at ata1-master UDMA33

FIX:

Not sure what option/device did the trick, but, anyway, it works now.

# cat /sys/i386/conf/kernel-config.patch

--- /sys/i386/conf/GENERIC      Sun Oct 24 22:02:52 2004
+++ /sys/i386/conf/SALESERV     Wed Jan 26 14:40:07 2005
@@ -1,28 +1,7 @@
-#
-# GENERIC -- Generic kernel configuration file for FreeBSD/i386
-#
-# For more information on this file, please read the handbook section on
-# Kernel Configuration Files:
-#
-#     
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-con
-#
-# The handbook is also available locally in /usr/share/doc/handbook
-# if you've installed the doc distribution, otherwise always see the
-# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
-# latest information.
-#
-# An exhaustive list of options and more detailed explanations of the
-# device lines is also present in the ../../conf/NOTES and NOTES files.
-# If you are in doubt as to the purpose or necessity of a line, check  
first
-# in NOTES.
-#
-# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.413.2.6.2.2 2004/10/24 18:02:52  
scott

  machine                i386
-cpu            I486_CPU
-cpu            I586_CPU
  cpu            I686_CPU
-ident          GENERIC
+ident          SALESERV

  # To statically compile in device wiring instead of /boot/device.hints
  #hints         "GENERIC.hints"         # Default places to look for  
devices.
@@ -38,7 +17,6 @@
  options        NFSCLIENT               # Network Filesystem Client
  options        NFSSERVER               # Network Filesystem Server
  options        NFS_ROOT                # NFS usable as /, requires  
NFSCLIENT
-options        MSDOSFS                 # MSDOS Filesystem
  options        CD9660                  # ISO 9660 Filesystem
  options        PROCFS                  # Process filesystem (requires  
PSEUDOFS)
  options        PSEUDOFS                # Pseudo-filesystem framework
@@ -52,17 +30,47 @@
  options        SYSVSEM                 # SYSV-style semaphores
  options        _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time  
extension
  options        KBD_INSTALL_CDEV        # install a CDEV entry in /dev
-options        AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
-                                       # output.  Adds ~128k to driver.
-options        AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
-                                       # output.  Adds ~215k to driver.
-options        ADAPTIVE_GIANT          # Giant mutex is adaptive.

-device         apic            # I/O APIC
+options        INVARIANT_SUPPORT
+
+
+options        CD9660_ICONV
+
+options        IPSEC
+options        IPSEC_ESP
+options        IPSEC_DEBUG
+
+options        NETSMB
+options        NETSMBCRYPTO
+options        LIBMCHAIN
+options        LIBICONV
+options        SMBFS
+
+options        VFS_AIO
+
+options        IPSEC
+options        IPSEC_ESP
+options        IPSEC_DEBUG
+options        IPFIREWALL
+options        IPFIREWALL_VERBOSE
+options        IPFIREWALL_VERBOSE_LIMIT=10000
+options        IPFIREWALL_DEFAULT_TO_ACCEPT
+options                IPFIREWALL_FORWARD
+
+options        IPDIVERT
+
+options        DUMMYNET
+options        BRIDGE
+
+maxusers       192
+
+options        HZ=2000
+
+# device               apic            # I/O APIC

  # Bus support.  Do not remove isa, even if you have no isa slots
  device         isa
-device         eisa
+# device               eisa
  device         pci

  # Floppy drives
@@ -78,25 +86,6 @@
  options        ATA_STATIC_ID   # Static device numbering

  # SCSI Controllers
-device         ahb             # EISA AHA1742 family
-device         ahc             # AHA2940 and onboard AIC7xxx devices
-device         ahd             # AHA39320/29320 and onboard AIC79xx  
devices
-device         amd             # AMD 53C974 (Tekram DC-390(T))
-device         isp             # Qlogic family
-device         mpt             # LSI-Logic MPT-Fusion
-#device                ncr             # NCR/Symbios Logic
-device         sym             # NCR/Symbios Logic (newer chipsets  
+ those of `
-device         trm             # Tekram DC395U/UW/F DC315U adapters
-
-device         adv             # Advansys SCSI adapters
-device         adw             # Advansys wide SCSI adapters
-device         aha             # Adaptec 154x SCSI adapters
-device         aic             # Adaptec 15[012]x SCSI adapters,  
AIC-6[23]60.
-device         bt              # Buslogic/Mylex MultiMaster SCSI adapters
-
-device         ncv             # NCR 53C500
-device         nsp             # Workbit Ninja SCSI-3
-device         stg             # TMC 18C30/18C50

  # SCSI peripherals
  device         scbus           # SCSI bus (required for SCSI)
@@ -108,23 +97,8 @@
  device         ses             # SCSI Environmental Services (and SAF-TE)

  # RAID controllers interfaced to the SCSI subsystem
-device         amr             # AMI MegaRAID
-device         asr             # DPT SmartRAID V, VI and Adaptec SCSI RAID
-device         ciss            # Compaq Smart RAID 5*
-device         dpt             # DPT Smartcache III, IV - See NOTES for  
options
-device         hptmv           # Highpoint RocketRAID 182x
-device         iir             # Intel Integrated RAID
-device         ips             # IBM (Adaptec) ServeRAID
-device         mly             # Mylex AcceleRAID/eXtremeRAID
-device         twa             # 3ware 9000 series PATA/SATA RAID

  # RAID controllers
-device         aac             # Adaptec FSA RAID
-device         aacp            # SCSI passthrough for aac (requires CAM)
-device         ida             # Compaq Smart RAID
-device         mlx             # Mylex DAC960 family
-device         pst             # Promise Supertrak SX6000
-device         twe             # 3ware ATA RAID

  # atkbdc0 controls both the keyboard and the PS/2 mouse
  device         atkbdc          # AT keyboard controller
@@ -218,16 +192,6 @@
  device         sn              # SMC's 9000 series of Ethernet chips
  device         xe              # Xircom pccard Ethernet

-# ISA devices that use the old ISA shims
-#device                le
-
-# Wireless NIC cards
-device         wlan            # 802.11 support
-device         an              # Aironet 4500/4800 802.11 wireless NICs.
-device         awi             # BayStack 660 and others
-device         wi              # WaveLAN/Intersil/Symbol 802.11 wireless  
NICs.
-#device                wl              # Older non 802.11 Wavelan  
wireless NIC.
-
  # Pseudo devices.
  device         loop            # Network loopback
  device         mem             # Memory and kernel memory devices
@@ -266,7 +230,3 @@
  device         kue             # Kawasaki LSI USB Ethernet
  device         rue             # RealTek RTL8150 USB Ethernet

-# FireWire support
-device         firewire        # FireWire bus code
-device         sbp             # SCSI over FireWire (Requires scbus and  
da)
-device         fwe             # Ethernet over FireWire (non-standard!)
Comment 4 sebastien.bourdeauducq 2005-08-02 14:34:50 UTC
Same problem with 5.4-RELEASE and similar hardware.

FreeBSD 5.4-RELEASE #9: Wed Jul 20 16:29:10 CEST 2005
    seb@oasis:/usr/src/sys/i386/compile/MYKERNEL
WARNING: debug.mpsafenet forced to 0 as netnatm requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 2.40GHz (2400.10-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 259850240 (247 MB)
avail memory = 244625408 (233 MB)
ACPI APIC Table: <A M I  OEMAPIC >
ioapic0 <Version 2.0> irqs 0-23 on motherboard
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <A M I OEMRSDT> on motherboard
acpi0: Power Button (fixed)
acpi_ec0: <Embedded Controller: GPE 0x1c> port 0x66,0x62 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82845G (845G GMCH) SVGA controller> mem 
0xdff80000-0xdfffffff,0xd0000000-0xd7ffffff irq 16 at device 2.0 on pci0
agp0: detected 8060k stolen memory
agp0: aperture size is 128M
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xdf20-0xdf3f irq 16 
at device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xdf40-0xdf5f irq 19 
at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xdf80-0xdf9f irq 18 
at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xdff7bc00-0xdff7bfff irq 23 at 
device 29.7 on pci0
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <EHCI (generic) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
umass0: Cypress Semiconductor USB2.0 Storage Device, rev 2.00/0.01, addr 2
umass0: Get Max Lun not supported (STALLED)
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xc800-0xc8ff mem 
0xdfdff000-0xdfdfffff irq 17 at device 12.0 on pci1
sis0: Silicon Revision: DP83816A
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:03:0d:07:3d:62
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> port 
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pcm0: <Intel ICH4 (82801DB)> port 0xe100-0xe13f,0xe000-0xe0ff at device 31.5 
on pci0
pcm0: <VIA Technologies VIA1612A AC97 Codec>
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
acpi_button1: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
acpi_lid0: <Control Method Lid Switch> on acpi0
orm0: <ISA Option ROM> at iomem 0xcc800-0xcd7ff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ugen0: vendor 0x1110 product 0x9010, rev 1.10/40.00, addr 2
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 2400100104 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding disabled, default to 
accept, logging disabled
ad0: 38204MB <SAMSUNG MP0402H/UC100-14> [77622/16/63] at ata0-master UDMA100
acd0: CDRW <SAMSUNG CDRW/DVD SN-324F/U200> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: driver "vmmon" used unreserved major device number 200
vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570 
(3.2.x mvm) $
vmmon: Module vmmon: initialized
Comment 5 Alexander Leidinger freebsd_committer freebsd_triage 2005-12-29 16:07:40 UTC
State Changed
From-To: open->feedback

Does this problem persists with FreeBSD 6.0 and a recent VMWare? 
Did you made sure, you recompiled the VMWare kernel modules?
Comment 6 Alexander Leidinger freebsd_committer freebsd_triage 2006-05-01 12:58:03 UTC
State Changed
From-To: feedback->closed

The vmware port prints a message related to this at install time and 
suggests some things. If this doesn't solve your problem please 
open a new PR in which you describe the behavior of the system 
for each of the suggestions.