SIGSEGV - segmentation violation - [UITextSelectionView textSelectionViewActivated:]

Originator:stevjerbs
Number:rdar://19796494 Date Originated:11-Feb-2015
Status:Open Resolved:No
Product:iOS SDK Product Version:iOS 8.1.2 (12B440)
Classification:Crash Reproducible:Unable
 
Summary:
App may crash internally when pasting and/or selecting within a contenteditable div in a UIWebView with the following trace:

"StackTrace" : [
  "#0  Instanote                           0X0018036B +[Logging signalHandler:]",
  "#1  Instanote                           0X0015C7ED signalHandler()",
  "#2  libsystem_platform.dylib            0X3633587B _sigtramp()",
  "#3  UIKit                               0X2B785929 -[UITextSelectionView textSelectionViewActivated:]",
  "#4  CoreFoundation                      0X28175C61 <redacted>()",
  "#5  CoreFoundation                      0X280D16D5 _CFXNotificationPost()",
  "#6  Foundation                          0X28E03189 -[NSNotificationCenter postNotificationName:object:userInfo:]",
  "#7  Foundation                          0X28E07CEF -[NSNotificationCenter postNotificationName:object:]",
  "#8  UIKit                               0X2B7857F3 -[UITextSelectionView activate]",
  "#9  UIKit                               0X2BC337C3 -[UIDictationLandingView showCursor]",
  "#10 UIKit                               0X2BC34047 -[UIDictationLandingView stopLanding]",
  "#11 UIKit                               0X2BC0984F -[UIDictationController cancelDictation]",
  "#12 UIKit                               0X2B6B97AF -[UIKeyboardImpl prepareForSelectionChange]",
  "#13 UIKit                               0X2B9F08F9 -[UIWebDocumentView paste:]",
  "#14 UIKit                               0X2BADD399 -[UICalloutBar buttonPressed:]",
  "#15 Foundation                          0X28EC2F99 __NSFireDelayedPerform()",
  "#16 CoreFoundation                      0X28183C87 <redacted>()",
  "#17 CoreFoundation                      0X28183803 <redacted>()",
  "#18 CoreFoundation                      0X28181A53 <redacted>()",
  "#19 CoreFoundation                      0X280CF3C1 CFRunLoopRunSpecific()",
  "#20 CoreFoundation                      0X280CF1D3 CFRunLoopRunInMode()",
  "#21 GraphicsServices                    0X2F4A40A9 GSEventRunModal()",
  "#22 UIKit                               0X2B6DEFA1 UIApplicationMain()",
  "#23 Instanote                           0X000D2867 main()",
  "#24 libdyld.dylib                       0X361F5AAF <redacted>()"
]

Steps to Reproduce:
Paste some text of any length into a contenteditable div in a UIWebView. Immediately attempt to select text. There is a chance an exception may occur internally on the UIWebBrowserView.

Expected Results:
App shouldn't crash internally when pasting and selecting

Actual Results:
App crashes internally when pasting and selecting

Version:
iOS 8.1.2 (12B440)

Notes:
We were not able to reproduce this in a basic app.

Configuration:
iPad 4, 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!