App crashed while UIWebView doing spell check

Originator:arjun.sohaney
Number:rdar://23235185 Date Originated:23-Oct-2015 10:30 AM
Status:OPEN Resolved:
Product:iOS SDK Product Version:iPhone OS Version 8.4.1 (Build 12H321)
Classification:Crash Reproducible:Unable
 
Summary:
My UIWebView shows a login page. The app crashed while UIWebView doing spell check on username field. I am not sure how the spell check started. Please find the stacktrace below - 

"StackTrace" : [
        "#0  MyApp                               0X00000001001A4AB4 +[Logging signalHandler:]",
        "#1  MyApp                               0X000000010017CD8C -[NSURL portByScheme]",
        "#2  libsystem_platform.dylib            0X000000019817C95C _sigtramp()",
        "#3  ProofReader                         0X0000000191FB8B34 ICspl()",
        "#4  ProofReader                         0X0000000191FB8B34 ICspl()",
        "#5  ProofReader                         0X0000000191FB77A4 PRIcs()",
        "#6  ProofReader                         0X0000000191FBEF20 PRword()",
        "#7  ProofReader                         0X0000000191FBEACC -[AppleSpell validateWordBuffer:length:connection:]",
        "#8  ProofReader                         0X0000000191FD0B50 -[AppleSpell validateWordBuffer:length:language:connection:sender:checkBase:checkDict:checkTemp:checkUser:checkNames:checkHyphens:checkIntercaps:checkOptions:depth:]",
        "#9  ProofReader                         0X0000000191FBDA6C -[AppleSpell validateWordBuffer:length:language:connection:sender:checkBase:checkDict:checkTemp:checkNames:checkHyphens:checkIntercaps:checkOptions:depth:]",
        "#10 ProofReader                         0X0000000191FB3618 -[AppleSpell spellServer:findMisspelledWordInString:range:languages:topLanguages:orthography:checkOrthography:mutableResults:offset:autocorrect:keyEventData:appIdentifier:wordCount:countOnly:correction:]",
        "#11 ProofReader                         0X0000000191FB2930 -[AppleSpell spellServer:findMisspelledWordInString:language:wordCount:countOnly:correction:]",
        "#12 UIKit                               0X000000018A9001EC -[UITextChecker _chunkAndFindMisspelledWordInString:language:learnedDictionaries:wordCount:correction:usingChecker:]",
        "#13 UIKit                               0X000000018A8FFDD8 -[UITextChecker checkSpellingOfString:startingAt:language:wrap:correction:]",
        "#14 UIKit                               0X000000018A8FFAAC -[UITextChecker rangeOfMisspelledWordInString:range:startingAt:wrap:language:]",
        "#15 UIKit                               0X000000018A9630C0 -[UIWebDocumentView checkSpellingOfString:]",
        "#16 CoreFoundation                      0X0000000185CB6050 <redacted>()",
        "#17 CoreFoundation                      0X0000000185BB1F9C -[NSInvocation invoke]",
        "#18 CoreFoundation                      0X0000000185BB6AD0 -[NSInvocation invokeWithTarget:]",
        "#19 WebKitLegacy                        0X0000000195909488 -[_WebSafeForwarder forwardInvocation:]",
        "#20 CoreFoundation                      0X0000000185CB3EC0 <redacted>()",
        "#21 CoreFoundation                      0X0000000185BB696C _CF_forwarding_prep_0()",
        "#22 CoreFoundation                      0X0000000185CB6050 <redacted>()",
        "#23 CoreFoundation                      0X0000000185BB1F9C -[NSInvocation invoke]",
        "#24 WebCore                             0X0000000194AADA60 <redacted>()",
        "#25 CoreFoundation                      0X0000000185C67F8C <redacted>()",
        "#26 CoreFoundation                      0X0000000185C67230 <redacted>()",
        "#27 CoreFoundation                      0X0000000185C652E0 <redacted>()",
        "#28 CoreFoundation                      0X0000000185B90F74 CFRunLoopRunSpecific()",
        "#29 GraphicsServices                    0X000000018F5F36FC GSEventRunModal()",
        "#30 UIKit                               0X000000018A792D94 UIApplicationMain()",
        "#31 CareAwareConnect                    0X000000010013CA1C -[LocationsRetriever .cxx_destruct]",
        "#32 libdyld.dylib                       0X0000000197FCEA08 <redacted>()"
      ]

Steps to Reproduce:
1) Launch an app with UIWebView showing some input field.
2) Try entering some miss-spelled word on input filed. Make sure its doing spell check.
3) The app will crash.

Expected Results:
The app shouldn't crash.

Actual Results:
The app crashed with SIGSEGV - segmentation violation in [AppleSpell validateWordBuffer:length:connection:].

Version:
iPhone OS Version 8.4.1 (Build 12H321)

Configuration:
iPhone 5s using WiFi

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!