0 Replies Latest reply: Jul 12, 2012 5:45 PM by Jeffrey Corbets
Jeffrey Corbets Level 1 Level 1 (5 points)

Hi everyone,

 

I am trying to get AirPrint to play nicely with a printer that is connected to a G4 Mac Mini running Mac OS X Server 10.4.11.  I have no problem making the printer visible to the iOS devices.  Unfortunately, when any of the iOS devices print to any of the printers on the Mac Mini server (including the USB-based Canon Pixma IP4600 and a cups-pdf printer that drops a PDF in a shared directory), cupsd simply crashes.  I have checked the /var/spool/cups directory and a a PDF file from the iOS device exists (and can be printed using the Preview app on the Mac Mini server), but the job control file is empty (0 bytes).

 

Output from the crash reporter log:

Host Name:      Cobalt
Date/Time:      2012-07-10 20:17:50.086 -0700
OS Version:     10.4.11 (Build 8S2169)
Report Version: 4


Command: cupsd
Path:    /usr/sbin/cupsd
Parent:  launchd [1]


Version: ??? (???)


PID:    6257
Thread: 0


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


Thread 0 Crashed:
0   libcups.2.dylib                    0x91b8b6c4 ippWriteIO + 2544
1   libcups.2.dylib                    0x91b8b6a8 ippWriteIO + 2516
2   libcups.2.dylib                    0x91b8b6d0 ippWriteIO + 2556
3   cupsd                              0x0001c270 0x1000 + 111216
4   cupsd                              0x00016bf4 0x1000 + 89076
5   cupsd                              0x00014c84 0x1000 + 81028
6   cupsd                              0x000032b0 0x1000 + 8880
7   cupsd                              0x00002024 0x1000 + 4132
8   cupsd                              0x00025938 0x1000 + 149816


Thread 1:
0   libSystem.B.dylib                  0x9000b5a8 mach_msg_trap + 8
1   libSystem.B.dylib                  0x9000b4fc mach_msg + 60
2   com.apple.CoreFoundation           0x9080a644 CFRunLoopRunSpecific + 1660
3   com.apple.CoreFoundation           0x9081b244 CFRunLoopRun + 56
4   cupsd                              0x000122c8 0x1000 + 70344
5   libSystem.B.dylib                  0x9002c768 _pthread_body + 96


Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000091b8b6c4 srr1: 0x000000000200f030                        vrsave: 0x0000000000000000
    cr: 0x44044244          xer: 0x0000000000000001   lr: 0x0000000091b8b6a8  ctr: 0x0000000090133440
    r0: 0x0000000091b8b6a8   r1: 0x00000000bffdfdb0   r2: 0x0000000000000000   r3: 0x000000000182b000
    r4: 0x000000000001c360   r5: 0x0000000000000001   r6: 0x00000000003185e0   r7: 0x000000000a6d6564
    r8: 0x0000000069612d73   r9: 0x00000000697a6534  r10: 0x000000000000013b  r11: 0x0000000000039ad4
   r12: 0x000000000182b141  r13: 0x00000000000320b4  r14: 0x00000000000320b4  r15: 0x0000000000000001
   r16: 0x00000000bffe7e78  r17: 0x0000000000000000  r18: 0x000000000001c360  r19: 0x00000000003185e0
   r20: 0x000000000182b000  r21: 0x00000000bffe7e78  r22: 0x00000000bffdfde8  r23: 0x0000000000008000
   r24: 0x0000000000000000  r25: 0x0000000000318600  r26: 0x0000000000008000  r27: 0x0000000000000000
   r28: 0x0000000000000000  r29: 0x0000000000318614  r30: 0x00000000bffdfdfa  r31: 0x0000000091b8ace8


Binary Images Description:
    0x1000 -    0x38fff cupsd           /usr/sbin/cupsd
  0x405000 -   0x4f3fff libxml2.2.dylib           /usr/lib/libxml2.2.dylib
0x8fe00000 - 0x8fe50fff dyld 46.16          /usr/lib/dyld
0x90000000 - 0x901c0fff libSystem.B.dylib           /usr/lib/libSystem.B.dylib
0x90218000 - 0x9021dfff libmathCommon.A.dylib           /usr/lib/system/libmathCommon.A.dylib
0x9021f000 - 0x90261fff com.apple.CoreText 1.1.3 (???)          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
0x90289000 - 0x9036dfff ATS           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x90396000 - 0x90758fff com.apple.CoreGraphics 1.258.85 (???)          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907e7000 - 0x908befff com.apple.CoreFoundation 6.4.11 (368.35)          /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90905000 - 0x90905fff com.apple.CoreServices 10.4 (???)          /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90907000 - 0x90a10fff libicucore.A.dylib           /usr/lib/libicucore.A.dylib
0x90a61000 - 0x90ae4fff libobjc.A.dylib           /usr/lib/libobjc.A.dylib
0x90b0d000 - 0x90b7ffff libstdc++.6.dylib           /usr/lib/libstdc++.6.dylib
0x90bf2000 - 0x90bfdfff libgcc_s.1.dylib           /usr/lib/libgcc_s.1.dylib
0x90c02000 - 0x90c77fff com.apple.framework.IOKit 1.4.8 (???)          /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90c8d000 - 0x90ca1fff libauto.dylib           /usr/lib/libauto.dylib
0x90ca7000 - 0x90f72fff com.apple.CoreServices.CarbonCore 682.31 (682.32)          /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90fcf000 - 0x91048fff com.apple.CoreServices.OSServices 4.1          /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x9108b000 - 0x910ccfff com.apple.CFNetwork 129.24          /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x910e0000 - 0x910f4fff com.apple.WebServices 1.1.3 (1.1.0)          /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x91100000 - 0x91192fff com.apple.SearchKit 1.0.8          /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x911ce000 - 0x911eefff com.apple.Metadata 10.4.4 (121.36)          /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x911fb000 - 0x9120afff libz.1.dylib           /usr/lib/libz.1.dylib
0x9120d000 - 0x913c2fff com.apple.security 4.5.2 (29774)          /System/Library/Frameworks/Security.framework/Versions/A/Security
0x914bf000 - 0x914c8fff com.apple.DiskArbitration 2.1.2          /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x914cf000 - 0x914d7fff libbsm.dylib           /usr/lib/libbsm.dylib
0x914db000 - 0x91503fff com.apple.SystemConfiguration 1.8.6          /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x915d8000 - 0x915d8fff com.apple.ApplicationServices 10.4 (???)          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x915da000 - 0x9160dfff com.apple.AE 316.3          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x91623000 - 0x91700fff com.apple.ColorSync 4.4.13          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x9173f000 - 0x917c0fff com.apple.print.framework.PrintCore 4.6 (177.13)          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917fd000 - 0x918affff com.apple.QD 3.10.28 (???)          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x918e4000 - 0x9193afff com.apple.HIServices 1.5.2 (???)          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x91962000 - 0x9197cfff com.apple.LangAnalysis 1.6.3          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x9198a000 - 0x919aafff com.apple.FindByContent 1.5          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x919b7000 - 0x919f3fff com.apple.LaunchServices 183.1          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x91a0b000 - 0x91a19fff com.apple.speech.synthesis.framework 3.5          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x91a21000 - 0x91a60fff com.apple.ImageIO.framework 1.5.9          /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a75000 - 0x91b38fff libcrypto.0.9.7.dylib           /usr/lib/libcrypto.0.9.7.dylib
0x91b83000 - 0x91b98fff libcups.2.dylib           /usr/lib/libcups.2.dylib
0x91b9d000 - 0x91bbdfff libJPEG.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x91bc2000 - 0x91c22fff libJP2.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x91c34000 - 0x91c38fff libGIF.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x91c3a000 - 0x91ca7fff libRaw.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib
0x91cac000 - 0x91cc8fff libPng.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x91ccd000 - 0x91ccffff libRadiance.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x91dde000 - 0x91e1ffff libTIFF.dylib           /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x91e25000 - 0x91e25fff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1)          /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x91e27000 - 0x91f0dfff com.apple.vImage 2.5          /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x91f15000 - 0x91f34fff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1)          /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x91fa0000 - 0x9202cfff libvMisc.dylib           /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x92038000 - 0x920cffff libvDSP.dylib           /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x920e8000 - 0x92695fff libBLAS.dylib           /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x926c8000 - 0x929f3fff libLAPACK.dylib           /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x92a23000 - 0x92b12fff libiconv.2.dylib           /usr/lib/libiconv.2.dylib
0x92bdd000 - 0x92e19fff com.apple.Foundation 6.4.12 (567.42)          /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x936ba000 - 0x936d3fff com.apple.DirectoryService.Framework 3.3          /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
0x94e98000 - 0x94ea7fff com.apple.DSObjCWrappers.Framework 1.1          /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWrappers
0x96930000 - 0x96940fff libpam.1.dylib           /usr/lib/libpam.1.dylib
0x975d3000 - 0x975d8fff libPrintServiceQuota.dylib           /usr/lib/libPrintServiceQuota.dylib

 

The CUPS error log contains only the following (log level set to debug):

===== Tuesday, July 10, 2012 8:17:45 PM US/Pacific =====
D [10/Jul/2012:20:17:45 -0700] UpdateCUPSBrowse: Refused 97 bytes from 192.168.1.2
D [10/Jul/2012:20:17:46 -0700] UpdateCUPSBrowse: Refused 116 bytes from 192.168.1.2
D [10/Jul/2012:20:17:47 -0700] ReadClient: 16 POST / HTTP/1.1
D [10/Jul/2012:20:17:47 -0700] ProcessIPPRequest: 16 status_code=1
D [10/Jul/2012:20:17:47 -0700] ReadClient: 16 POST / HTTP/1.1
D [10/Jul/2012:20:17:47 -0700] ProcessIPPRequest: 16 status_code=1
D [10/Jul/2012:20:17:47 -0700] ReadClient: 16 POST / HTTP/1.1
D [10/Jul/2012:20:17:47 -0700] ProcessIPPRequest: 16 status_code=1
D [10/Jul/2012:20:17:48 -0700] AcceptClient: 17 from 192.168.1.7:631.
D [10/Jul/2012:20:17:48 -0700] ReadClient: 17 POST /printers/Woodstock HTTP/1.1
D [10/Jul/2012:20:17:48 -0700] ProcessIPPRequest: 17 status_code=0
D [10/Jul/2012:20:17:48 -0700] ReadClient: 17 POST /printers/Woodstock HTTP/1.1
D [10/Jul/2012:20:17:48 -0700] ProcessIPPRequest: 17 status_code=1
D [10/Jul/2012:20:17:48 -0700] ReadClient: 17 POST /printers/Woodstock HTTP/1.1
D [10/Jul/2012:20:17:49 -0700] AcceptClient: 19 from 192.168.1.7:631.
D [10/Jul/2012:20:17:49 -0700] ReadClient: 19 POST /printers/Woodstock HTTP/1.1
D [10/Jul/2012:20:17:49 -0700] ProcessIPPRequest: 19 status_code=1
D [10/Jul/2012:20:17:49 -0700] ReadClient: 19 POST /printers/Woodstock HTTP/1.1
D [10/Jul/2012:20:17:49 -0700] ProcessIPPRequest: 19 status_code=1
D [10/Jul/2012:20:17:49 -0700] print_job: request file type is application/pdf.
D [10/Jul/2012:20:17:49 -0700] check_quotas: requesting-user-name = 'guest'
D [10/Jul/2012:20:17:49 -0700] print_job: requesting-user-name = 'guest'
D [10/Jul/2012:20:17:49 -0700] Adding default job-sheets values "none,none"...
I [10/Jul/2012:20:17:49 -0700] Adding start banner page "none" to job 118.
I [10/Jul/2012:20:17:49 -0700] Adding end banner page "none" to job 118.
I [10/Jul/2012:20:17:49 -0700] Job 118 queued on 'Woodstock' by 'guest'.
D [10/Jul/2012:20:17:49 -0700] Job 118 hold_until = 0
===== Tuesday, July 10, 2012 8:17:53 PM US/Pacific =====

 

What am I missing to get the server to accept the PDF file from the iOS device and print it?

 

Thanks,

Jeff


Mac OS X (10.4.11), Server