Bug: hanging stat()/open() on ttys in 8.10.1 ?
Bug: hanging stat()/open() on ttys in 8.10.1 ?
- Subject: Bug: hanging stat()/open() on ttys in 8.10.1 ?
- From: Phil Regnauld <email@hidden>
- Date: Mon, 10 Sep 2007 22:27:36 +0200
Hi,
I'm having the following problem on a stock 8.10.1 Darwin Kernel (OS X 10.4.10):
Darwin macbook 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
... in short, for the past few months I've been experiencing the situation
where suddenly, allocation of new ttys will hang. Opening a new Terminal.app
window will hang the entire application. Trying to open an xterm or any
other application which allocates a tty hangs. The funny thing is,
only a _particular_ tty will cause the problem, not all ttys.
For example, I have ttys allocated up to ttyr2, then I try to open a new
terminal, which hangs. Access to ttyr3 will hang whichever application attempts
to access it - stat, open, ... will fail, but opening the next tty ttyr4
will succeed.
This happens randomly, sometimes with days in between, sometimes weeks.
Today it happened twice.
I've tried to correllate this to some installed piece of software or kext,
to no avail.
Output from ktrace on "ls -l /dev":
17427 ls RET getuid 0
17427 ls CALL lstat(0x3002b0,0x3002bc)
17427 ls NAMI "/dev/ttyr2"
(hangs here)
Output from ktrace on "ps ax":
17191 ps NAMI "/dev/ptyr1"
17191 ps RET lstat 0
17191 ps CALL lstat(0xbffff2fb,0xbffff400)
17191 ps NAMI "/dev/ttyr2"
(hangs here)
Attempt to open new xterm:
17174 xterm RET close 0
17174 xterm CALL read(0x9,0xbfffef84,0x418)
17174 xterm RET read RESTART
17174 xterm PSIG SIGTERM SIG_DFL
(hangs here)
... I can do "echo /dev/*", and get the list -- but any attempt to view
any info about the file hangs that process. Hard reboot required (reboot -q
at least).
Any idea on how to debug this ?
Thanks,
Phil
Index Refs Address Size Wired Name (Version) <Linked Against>
1 1 0x0 0x0 0x0 com.apple.kernel (8.10.1)
2 34 0x0 0x0 0x0 com.apple.kpi.bsd (8.10.1)
3 52 0x0 0x0 0x0 com.apple.kpi.iokit (8.10.1)
4 56 0x0 0x0 0x0 com.apple.kpi.libkern (8.10.1)
5 49 0x0 0x0 0x0 com.apple.kpi.mach (8.10.1)
6 25 0x0 0x0 0x0 com.apple.kpi.unsupported (8.10.1)
7 1 0x0 0x0 0x0 com.apple.iokit.IONVRAMFamily (8.10.1)
8 1 0x0 0x0 0x0 com.apple.driver.AppleNMI (8.10.1)
9 1 0x0 0x0 0x0 com.apple.iokit.IOSystemManagementFamily (8.10.1)
10 1 0x0 0x0 0x0 com.apple.iokit.ApplePlatformFamily (8.10.1)
11 47 0x0 0x0 0x0 com.apple.kernel.6.0 (7.9.9)
12 1 0x0 0x0 0x0 com.apple.kernel.bsd (7.9.9)
13 1 0x0 0x0 0x0 com.apple.kernel.iokit (7.9.9)
14 1 0x0 0x0 0x0 com.apple.kernel.libkern (7.9.9)
15 1 0x0 0x0 0x0 com.apple.kernel.mach (7.9.9)
16 16 0x584000 0x10000 0xf000 com.apple.iokit.IOPCIFamily (2.2) <11>
17 10 0x67c000 0x4000 0x3000 com.apple.iokit.IOACPIFamily (1.2.0) <11>
18 3 0x680000 0x3e000 0x3d000 com.apple.driver.AppleACPIPlatform (1.0.10) <17 16 11 6 3>
19 7 0x53a000 0x33000 0x32000 com.apple.iokit.IOHIDFamily (1.4.11) <6 5 4 3 2>
20 0 0x786000 0x5000 0x4000 com.apple.BootCache (27) <6 5 4 3 2>
21 0 0x984000 0x4000 0x3000 com.apple.driver.AppleIntelCPUPowerManagement (1.0.2) <11 6 4 3 2>
22 0 0x725000 0x3000 0x2000 com.apple.driver.AppleAPIC (1.2.0) <11>
23 2 0x82c000 0x3000 0x2000 com.apple.iokit.IOSMBusFamily (1.0.1) <5 4 3>
24 0 0x8f9000 0x5000 0x4000 com.apple.driver.AppleACPIEC (1.0.10) <23 18 17 11>
25 0 0x8f5000 0x4000 0x3000 com.apple.driver.AppleSMBIOS (1.0.12) <11>
26 0 0x8f1000 0x4000 0x3000 com.apple.driver.AppleACPIButtons (1.0.10) <19 18 17 6 5 4 3 2>
28 0 0x981000 0x3000 0x2000 com.apple.driver.AppleHPET (1.0.0d1) <17 6 5 4 3>
29 0 0x872000 0x5000 0x4000 com.apple.driver.AppleRTC (1.0.3) <17 5 4 3 2>
30 1 0x988000 0x3000 0x2000 com.apple.driver.AppleEFIRuntime (1.0.1) <17 6 5 4 3>
31 0 0x842000 0x3000 0x2000 com.apple.driver.AppleACPIPCI (1.0.10) <18 17 16 11>
32 0 0x82f000 0x6000 0x5000 com.apple.driver.AppleSmartBatteryManager (111.8.0) <23 5 4 3 2>
33 0 0x9b0000 0x6000 0x5000 com.apple.driver.AppleEFINVRAM (1.0.2) <30 11 5 4 3>
34 4 0x70d000 0x16000 0x15000 com.apple.iokit.IONetworkingFamily (1.5.1) <6 5 4 3 2>
35 6 0x609000 0x16000 0x15000 com.apple.iokit.IOStorageFamily (1.5.1) <6 5 4 3 2>
37 0 0x9b6000 0x3f000 0x3e000 com.apple.iokit.AppleYukon (1.0.11b2) <34 17 16 5 4 3 2>
38 14 0x519000 0x21000 0x20000 com.apple.iokit.IOUSBFamily (2.7.5) <6 5 4 3>
39 0 0x91e000 0xe000 0xd000 com.apple.driver.AppleUSBUHCI (2.7.5) <38 16 5 4 3>
40 0 0x98b000 0x12000 0x11000 com.apple.driver.AppleUSBEHCI (2.7.5) <38 16 5 4 3>
41 5 0x636000 0x32000 0x31000 com.apple.iokit.IOFireWireFamily (2.5.7) <5 4 3>
42 0 0x8c5000 0x19000 0x18000 com.apple.driver.AppleFWOHCI (2.9.6) <41 16 6 5 4 3>
43 0 0x582000 0x2000 0x1000 com.apple.iokit.IOUSBUserClient (2.7.6) <38 11>
44 0 0x96c000 0x9000 0x8000 com.apple.driver.AppleUSBHub (2.7.5) <38 11>
45 2 0x61f000 0xd000 0xc000 com.apple.iokit.IOATAFamily (1.7.1f4) <5 4 3 2>
46 0 0x90c000 0x8000 0x7000 com.apple.driver.AppleIntelPIIXATA (1.16) <45 16 11>
47 2 0x835000 0x6000 0x5000 com.apple.iokit.IOAHCIFamily (1.0.3) <5 4 3 2>
48 0 0x83b000 0x7000 0x6000 com.apple.driver.AppleAHCIPort (1.0.7) <47 16 5 4 3 2>
49 0 0x8e2000 0xf000 0xe000 com.apple.iokit.IOAHCIBlockStorage (1.0.6) <47 35 11>
50 4 0x6c1000 0x17000 0x16000 com.apple.iokit.IOSCSIArchitectureModelFamily (1.5.4) <11>
51 0 0x6d8000 0x4000 0x3000 com.apple.iokit.IOATAPIProtocolTransport (1.5.1) <50 45 11>
53 0 0x906000 0x6000 0x5000 com.apple.iokit.SCSITaskUserClient (1.5.4) <50 35 11>
54 2 0x92c000 0x8000 0x7000 com.apple.iokit.IOCDStorageFamily (1.4) <35 5 4 3>
55 1 0x934000 0x5000 0x4000 com.apple.iokit.IODVDStorageFamily (1.4) <54 35 5 4 3>
56 1 0x939000 0x16000 0x15000 com.apple.iokit.IOSCSIBlockCommandsDevice (1.5.4) <50 35 11>
57 0 0x94f000 0x12000 0x11000 com.apple.iokit.IOSCSIMultimediaCommandsDevice (1.5.4) <56 55 54 50 35 11>
58 0 0x845000 0x3000 0x2000 com.apple.driver.AppleUSBComposite (2.7.5) <38 11>
59 0 0x979000 0x2000 0x1000 com.apple.driver.AppleUSBMergeNub (2.7.5) <38 11>
60 2 0x56d000 0x5000 0x4000 com.apple.iokit.IOUSBHIDDriver (2.7.5) <38 19 11>
61 0 0x572000 0x3000 0x2000 com.apple.driver.AppleUSBTCKeyboard (1.5.2b1) <60 38 19 11>
63 0 0x9ae000 0x2000 0x1000 com.apple.driver.AppleUSBTCKeyEventDriver (1.5.2b1) <19 11>
64 0 0x728000 0x18000 0x17000 com.apple.driver.AppleUSBTrackpad (1.5.2b1) <38 19 11>
65 3 0x740000 0x34000 0x33000 com.apple.iokit.IOBluetoothFamily (1.9f8) <11>
66 1 0x774000 0x5000 0x4000 com.apple.driver.AppleUSBBluetoothHCIController (1.9f8) <65 38 11>
67 0 0x78b000 0x3000 0x2000 com.apple.driver.CSRUSBBluetoothHCIController (1.9f8) <66 65 11>
68 4 0x594000 0x1b000 0x1a000 com.apple.iokit.IOGraphicsFamily (1.4.7) <16 6 5 4 3>
69 3 0x5af000 0xf000 0xe000 com.apple.iokit.IONDRVSupport (1.4.7) <68 16 6 5 4 3>
70 0 0x914000 0x4000 0x3000 com.parallels.kext.ConnectUSB (3.0.0) <38 11 6 5 4 3>
71 0 0x975000 0x4000 0x3000 com.apple.driver.AppleBacklight (1.4.2) <69 68 16 11 5 4 3>
72 0 0x9f5000 0x3000 0x2000 com.apple.driver.AppleLPC (1.2.1) <16 5 4 3>
73 1 0x6ee000 0xe000 0xd000 com.apple.driver.IOPlatformPluginFamily (2.7.1d6) <11>
74 4 0x6fc000 0x8000 0x7000 com.apple.driver.AppleSMC (1.1.1d2) <17 6 5 4 3>
75 0 0x704000 0x9000 0x8000 com.apple.driver.ACPI_SMC_PlatformPlugin (2.7.1d6) <74 73 17 16 11 5 4 3>
76 2 0x668000 0xf000 0xe000 com.apple.iokit.IOFireWireAVC (1.9.7) <41 11>
77 1 0x78e000 0x2000 0x1000 com.apple.kext.OSvKernDSPLib (1.0) <5 4>
78 4 0x790000 0x17000 0x16000 com.apple.iokit.IOAudioFamily (1.6.0b7) <77 38 11>
79 1 0x877000 0x4b000 0x4a000 com.apple.driver.AppleFWAudio (2.1.0fc9) <78 76 41 11>
80 0 0x8c2000 0x3000 0x2000 com.apple.driver.AppleMLANAudio (2.1.0fc9) <79 76 41 11>
81 0 0x99d000 0x5000 0x4000 com.apple.kext.AppleSMCLMU (1.3.5d6) <74 5 4 3>
82 0 0x8de000 0x4000 0x3000 com.apple.driver.AudioIPCDriver (1.0.0) <78 5 4 3 2>
83 0 0x97b000 0x6000 0x5000 com.apple.driver.SMCMotionSensor (2.0.2d1) <74 5 4 3>
84 2 0x6e1000 0x6000 0x5000 com.apple.iokit.IOHDAFamily (1.3.3a1) <5 4 3 2>
85 0 0x6e7000 0x7000 0x6000 com.apple.driver.AppleHDAController (1.3.3a1) <84 16 5 4 3 2>
86 1 0x851000 0x1f000 0x1e000 com.apple.iokit.IO80211Family (162.1) <34 6 5 4 3 2>
87 0 0x9f8000 0x89000 0x88000 com.apple.driver.AirPort.Atheros (235.9.3) <86 34 16 6 5 4 3 2>
88 0 0x5be000 0x4b000 0x4a000 com.apple.ATIRadeonX1000 (4.5.6) <69 68 16 11 6 5 4 3 2>
90 0 0x964000 0x8000 0x7000 com.apple.iokit.IOFireWireIP (1.5.4) <41 34 6 5 4 3 2>
91 0 0x779000 0x4000 0x3000 com.apple.driver.AppleIRController (74) <60 38 19 11>
92 0 0x961000 0x3000 0x2000 com.apple.Dont_Steal_Mac_OS_X (6.0.1) <74 6 4 3 2>
93 0 0x918000 0x6000 0x5000 com.parallels.kext.Pvsnet (3.0) <5 4 3 2>
94 0 0x7a7000 0x4d000 0x4c000 com.apple.driver.AppleHDA (1.3.3a1) <84 78 5 4 3 2>
95 0 0x7f4000 0x38000 0x37000 com.apple.kext.ATY_Wormy (4.5.6) <69 68 5 4 3 2>
96 0 0x6dc000 0x5000 0x4000 com.apple.driver.AppleHWSensor (1.5.5d2) <11>
98 0 0x4b394000 0x63000 0x62000 com.vmware.kext.vmmon (1.0) <11 5 4 3 2>
99 0 0x4b417000 0xa000 0x9000 com.vmware.kext.vmci (1.0) <5 4 3 2>
100 1 0x575000 0x9000 0x8000 com.apple.iokit.IOSerialFamily (9.0.0d30) <6 5 4 3 2>
101 0 0x77d000 0x9000 0x8000 com.apple.iokit.IOBluetoothSerialManager (1.9f8) <100 11>
102 0 0x8fe000 0x8000 0x7000 com.apple.filesystems.ntfs (1.2.1) <4 2>
103 0 0x4b572000 0x5000 0x4000 com.vmware.kext.vmioplug (1.0) <38 19 5 4 3>
104 0 0x4b57b000 0x8000 0x7000 com.vmware.kext.vmnet (1.0) <11 5 4 3 2>
106 0 0x9a2000 0xc000 0xb000 com.apple.driver.IOBluetoothSCOAudioDriver (1.9f8) <78 65 11>
107 0 0x4bde8000 0x6f000 0x6e000 com.cisco.nke.ipsec (2.0.1) <4 2>
108 0 0x4bd51000 0x6000 0x5000 foo.tun (1.0) <11 6 4 2>
109 0 0x4bd27000 0x2000 0x1000 com.increw.kext.speedit (0.32) <11 4 3 2>
110 0 0x4bcef000 0x6000 0x5000 foo.tap (1.0) <11 6 4 2>
111 0 0x4be5f000 0xf000 0xe000 org.virtualbox.kext.VBoxDrv (1.4.1) <11 6 5 4 3 2>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden