shared networking stops working until host OS reboot

Discussion in 'Parallels Desktop for Mac' started by mykmelez, Nov 5, 2006.

  1. mykmelez

    mykmelez Member

    Messages:
    29
    On my MacBook Pro with Mac OS X 10.4.8 and Parallels build 1970, shared networking stops working after a couple of days, and it won't start working again until I reboot the computer.

    Before it stops working, it works just fine, and I can roam between my home and work wireless networks with ease. But once it stops, nothing except a reboot gets it working again, including restarting networking on the guest OSes (Windows XP and Ubuntu 6.10), restarting the guest OSes, restarting Parallels, and logging out and then back in again.

    I also tried pressing the "Renew DHCP Lease" button for the Parallels Host-Guest and Parallels NAT network connections in the System Preferences -> Network panel.

    When I press those buttons after shared networking has stopped working, the IP address field and other fields go blank (presumably because the panel fails to get a response from the DHCP server). But when shared networking is working, pressing those buttons results in no change (presumably because the panel gets a response from the DHCP server with identical values for all the fields).

    I'd try restarting networking on the host OS, but I haven't been able to figure out how to do that. Anything else I can do? Is there a known bug causing this problem?
     
  2. mykmelez

    mykmelez Member

    Messages:
    29
    Update: it looks like the problem is that pvsnatd is crashing sometimes when I wake up my computer. Here's a sample crash:

    Code:
    **********
    
    Host Name:      myk-melezs-computer-2
    Date/Time:      2006-11-13 10:20:53.669 -0800
    OS Version:     10.4.8 (Build 8L2127)
    Report Version: 4
    
    Command: pvsnatd
    Path:    /Library/StartupItems/Parallels/pvsnatd
    Parent:  launchd [1]
    
    Version: ??? (???)
    
    PID:    168
    Thread: 0
    
    Exception:  EXC_BAD_ACCESS (0x0001)
    Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
    
    Thread 0 Crashed:
    0   pvsnatd                     0x00003fa6 dns_port_expired + 26
    1   pvsnatd                     0x00008c63 pollset_poll + 122
    2   pvsnatd                     0x0000a65e nat_main + 512
    3   pvsnatd                     0x0000abe7 main + 1072
    4   pvsnatd                     0x000024aa _start + 228 (crt.c:272)
    5   pvsnatd                     0x000023c5 start + 41
    
    Thread 1:
    0   libSystem.B.dylib           0x900bc6dc semop + 12
    1   libSystem.B.dylib           0x90023d87 _pthread_body + 84
    
    Thread 2:
    0   libSystem.B.dylib           0x90009857 mach_msg_trap + 7
    1   com.apple.CoreFoundation    0x9082869a CFRunLoopRunSpecific + 2014
    2   com.apple.CoreFoundation    0x90839577 CFRunLoopRun + 60
    3   pvsnatd                     0x0000985a nat_runloop_thread + 282
    4   libSystem.B.dylib           0x90023d87 _pthread_body + 84
    
    Thread 0 crashed with X86 Thread State (32-bit):
      eax: 0x0b02fa0a    ebx: 0x0001b270 ecx: 0x003038e4 edx: 0x00000000
      edi: 0x00303890    esi: 0x003038e4 ebp: 0xbffffcb8 esp: 0xbffffc90
       ss: 0x0000001f    efl: 0x00010286 eip: 0x00003fa6  cs: 0x00000017
       ds: 0x0000001f     es: 0x0000001f  fs: 0x00000000  gs: 0x00000037
    
    Binary Images Description:
        0x1000 -     0xafff pvsnatd         /Library/StartupItems/Parallels/pvsnatd
    0x8fe00000 - 0x8fe49fff dyld 46.9       /usr/lib/dyld
    0x90000000 - 0x9016ffff libSystem.B.dylib       /usr/lib/libSystem.B.dylib
    0x901bf000 - 0x901c1fff libmathCommon.A.dylib   /usr/lib/system/libmathCommon.A.dylib
    0x90806000 - 0x908cefff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x9090e000 - 0x90a01fff libicucore.A.dylib      /usr/lib/libicucore.A.dylib
    0x90a51000 - 0x90ad0fff libobjc.A.dylib         /usr/lib/libobjc.A.dylib
    0x90af9000 - 0x90b5dfff libstdc++.6.dylib       /usr/lib/libstdc++.6.dylib
    0x90bcc000 - 0x90bd3fff libgcc_s.1.dylib        /usr/lib/libgcc_s.1.dylib
    0x90bd8000 - 0x90c4bfff com.apple.framework.IOKit 1.4.6 (???)   /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90c60000 - 0x90c72fff libauto.dylib   /usr/lib/libauto.dylib
    0x9114a000 - 0x91158fff libz.1.dylib    /usr/lib/libz.1.dylib
    0x91407000 - 0x9142dfff com.apple.SystemConfiguration 1.8.6     /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    
     
  3. mykmelez

    mykmelez Member

    Messages:
    29
    Note: running the following command in a terminal got pvsnatd and shared networking working again:

    sudo /Library/StartupItems/Paralells/pvsnatd

    But it didn't work immediately. I had to kill the process and restart it a couple times before it started working. It's unclear whether that's actually necessary or was just an artifact of the various things I was doing to try to get it working again.
     
  4. eightball

    eightball Bit poster

    Messages:
    1
    A small revision to your instructions -- this worked for me, from the Terminal:

    sudo /Library/StartupItems/Parallels/pvsnatd stop
    [wait]
    sudo /Library/StartupItems/Parallels/pvsnatd start
     
  5. MicroDev

    MicroDev Hunter

    Messages:
    122
    For me, it just dies by using it. Sometimes it won't even remain stable for an hour. Even after a full reboot, if I pass a lot of data through the interface eventually it dies and has to be bounced as described above. At least it hasn't corrupted files like it used to...

    BTW, when this happens the entire VM has to be killed because XP will never shutdown otherwise. Any attempt to access the failed interface from any application (Explorer, etc.) will cause the application to hang.
     
  6. serv

    serv Forum Maven

    Messages:
    817
    mykmelez,

    Thanks for the stack trace! This problem will be fixed in the next public release.


    MicroDev,

    Can you please describe the problem you're seing in more detail. Your /Library/Logs/CrashReporter/pvsnatd.crash.log would help a lot.
    Do you have to restart both pvsnatd and Parallels? Actually, whatever happens to pvsnatd there's no chance VM gets corrupted unless it runs buggy software because the same thing can happen on the physical network. Can you describe the steps how to reproduce it?
     
  7. MicroDev

    MicroDev Hunter

    Messages:
    122
    The order of events are:
    1) Working along saving changes to text files that live in the Mac OS local disk
    2) During a save (at seemingly random points), the write fails and the app hangs
    3) Any attempt to kill the app fails
    4) Any attempt to access the shared volume causes the accessing app to hang
    5) Any attempt to shutdown Windows hangs at the point of disconnecting from the network
    6) Telling PWS to shut-off results in PWS crashing
    7) Restarting PWS does not fix the issue - you have to bounce pvsnatd first

    How much of the log do you want? It crashes consistently. Here's the latest header:
    **********

    Host Name: MacBook-Pro-17
    Date/Time: 2006-11-17 12:25:26.690 -0500
    OS Version: 10.4.8 (Build 8L2127)
    Report Version: 4

    Command: Parallels
    Path: /Applications/Parallels/Parallels.app/Contents/MacOS/Parallels
    Parent: WindowServer [62]

    Version: 2.2 (2.2.1970.0)

    PID: 399
    Thread: 3

    Exception: EXC_BAD_INSTRUCTION (0x0002)
    Code[0]: 0x0000000d
    Code[1]: 0x00000000


    I'm typically using PL-SQL Developer and just typing text into program source files and occasionally saving. At some random point, the network drops and the application hangs. Any attempt to get to the shared volume from any application (including explorer) causes a hang. I can't kill the hung processes and any attempt a reboot results in a hang of Explorer (which can be killed) and then another hang during 'Disconnecting from network'. I then have to 'turn-off' the virtual machine which usually results in a PWS crash. My changes prior to the hang are not written to disk when I reopen the VM for an undetermined amount of time. In other words, if I saved a few times and then it hangs, the previous saves are often (but not always) not written to the Mac OS disk.

    Setup:
    Mac
    • All sharing is off (no SMB sharing, no mounted network volumes)
    • Some other Mac apps may be running (but I've found no consistent pattern - i.e., Mail or something else running when the crash occurs)
    • Disk checks clean
    • Accessing the LAN via Apple Airport Xtreme
    • Network is served by a mix of 100Mb and 1Gb backbone elements. Airport is in the 100Mb zone and servers are in the 1Gb zone (not that it should matter)

    PWS
    • Share home folder
    • Map Z: drive to that folder
    • Access the files on it during normal work (all text based source code interactions)

    I occasionally issue commands to the database during the process (e.g., compile, etc.) but I can't see how sending instructions via port 1521 could have any affect unless the Oracle random port is somehow overstepping the Parallels port (which I can't see how).

    If I use SMB networking, however, this problem never occurs. I'm not running any special firewall software or Norton type stuff either - just Trend corporate anti-virus so the installation of Windows is pretty basic with only a few apps (PLSD and a few database utilities). The crash occurs typically with nothing running but PLSD (which is about all I ever use under Windows). I doubt the problem is with PLSD because Explorer will hang also and because SMB doesn't cause this problem with PLSD or Explorer.

    One relevant item I left out - Cisco VPN 4.8.0 is installed (but not active).
     
    Last edited: Nov 17, 2006
  8. AlfredPerlstein

    AlfredPerlstein Bit poster

    Messages:
    1
    Me too!

    I have the same problem, restarting '/Library/StartupItems/Parallels/pvsnatd' fixed it for me too.

    /Library/Logs/CrashReporter/pvsnatd.crash.log has this:

    **********

    Host Name: Macintosh-4
    Date/Time: 2007-01-04 12:21:00.380 -0500
    OS Version: 10.4.8 (Build 8N1051)
    Report Version: 4

    Command: pvsnatd
    Path: /Library/StartupItems/Parallels/pvsnatd
    Parent: launchd [1]

    Version: ??? (???)

    PID: 175
    Thread: 0

    Exception: EXC_BAD_ACCESS (0x0001)
    Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

    Thread 0 Crashed:
    0 pvsnatd 0x00003fa6 dns_port_expired + 26
    1 pvsnatd 0x00008c63 pollset_poll + 122
    2 pvsnatd 0x0000a65e nat_main + 512
    3 pvsnatd 0x0000abe7 main + 1072
    4 pvsnatd 0x000024aa _start + 228 (crt.c:272)
    5 pvsnatd 0x000023c5 start + 41

    Thread 1:
    0 libSystem.B.dylib 0x900bc6dc semop + 12
    1 libSystem.B.dylib 0x90023d87 _pthread_body + 84

    Thread 2:
    0 libSystem.B.dylib 0x90009857 mach_msg_trap + 7
    1 com.apple.CoreFoundation 0x9082b2f3 CFRunLoopRunSpecific + 2014
    2 com.apple.CoreFoundation 0x9083c1c8 CFRunLoopRun + 60
    3 pvsnatd 0x0000985a nat_runloop_thread + 282
    4 libSystem.B.dylib 0x90023d87 _pthread_body + 84

    Thread 0 crashed with X86 Thread State (32-bit):
    eax: 0xb9bc45cf ebx: 0x0001b270 ecx: 0x00302204 edx: 0x00000000
    edi: 0x003021b0 esi: 0x00302204 ebp: 0xbffffcb8 esp: 0xbffffc90
    ss: 0x0000001f efl: 0x00010286 eip: 0x00003fa6 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037

    Binary Images Description:
    0x1000 - 0xafff pvsnatd /Library/StartupItems/Parallels/pvsnatd
    0x8fe00000 - 0x8fe49fff dyld 46.9 /usr/lib/dyld
    0x90000000 - 0x9016ffff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901bf000 - 0x901c1fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.
    dylib
    0x90809000 - 0x908d1fff com.apple.CoreFoundation 6.4.6 (368.27) /System/Library/
    Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x90911000 - 0x90a04fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a54000 - 0x90ad3fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90afc000 - 0x90b60fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x90bcf000 - 0x90bd6fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x90bdb000 - 0x90c4efff com.apple.framework.IOKit 1.4.6 (???) /System/Library/
    Frameworks/IOKit.framework/Versions/A/IOKit
    0x90c63000 - 0x90c75fff libauto.dylib /usr/lib/libauto.dylib
    0x91154000 - 0x91162fff libz.1.dylib /usr/lib/libz.1.dylib
    0x91411000 - 0x91437fff com.apple.SystemConfiguration 1.8.6 /System/Library/
    Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration


    :eek: :eek: :eek:
     

Share This Page