<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - WKWebView evaluateJavaScript: crash."
href="https://bugs.webkit.org/show_bug.cgi?id=166617">166617</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>WKWebView evaluateJavaScript: crash.
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Other
</td>
</tr>
<tr>
<th>Hardware</th>
<td>iPhone / iPad
</td>
</tr>
<tr>
<th>OS</th>
<td>iOS 10
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>JavaScriptCore
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>njaiswal@vera.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=297846" name="attach_297846" title="Image will show the backtrace of the crashing thread and backtrace before crash.">attachment 297846</a> <a href="attachment.cgi?id=297846&action=edit" title="Image will show the backtrace of the crashing thread and backtrace before crash.">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>