Bug 166617 - WKWebView evaluateJavaScript: crash.
Summary: WKWebView evaluateJavaScript: crash.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-29 20:54 PST by Nilesh
Modified: 2017-01-02 18:48 PST (History)
1 user (show)

See Also:


Attachments
Image will show the backtrace of the crashing thread and backtrace before crash. (983.42 KB, image/png)
2016-12-29 20:54 PST, Nilesh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nilesh 2016-12-29 20:54:07 PST
Created attachment 297846 [details]
Image will show the backtrace of the crashing thread and backtrace before crash.

Scenario: While trying to evaluate javascript using "- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^ _Nullable)(_Nullable id, NSError * _Nullable error))completionHandler;" method. 

In result when i am trying to print the return value, the application crashes with below message.   

malloc: *** error for object 0x1704ae520: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

I am attaching the info image.
Comment 1 Alexey Proskuryakov 2017-01-02 18:48:35 PST
Can you provide a complete reproducible case? This is not enough information for an investigation.