WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
157491
Crash beneath ObjCCallbackFunctionImpl::call
https://bugs.webkit.org/show_bug.cgi?id=157491
Summary
Crash beneath ObjCCallbackFunctionImpl::call
Michael Saboff
Reported
2016-05-09 14:48:57 PDT
It appears that some Promise builtin code is throwing an exception. The exception is still set in the VM when we later call tryUnwrapObjcObject() from ObjCCallbackFunctionImpl::call().
Attachments
Patch
(1.46 KB, patch)
2016-05-09 18:55 PDT
,
Michael Saboff
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Michael Saboff
Comment 1
2016-05-09 14:49:21 PDT
<
rdar://problem/25867374
>
Michael Saboff
Comment 2
2016-05-09 18:55:21 PDT
Created
attachment 278469
[details]
Patch
Saam Barati
Comment 3
2016-05-09 19:12:29 PDT
Comment on
attachment 278469
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=278469&action=review
> Source/JavaScriptCore/ChangeLog:11 > + Tried creating a test case, but I don't have source for the app. > + I can't seem to find the right combination of Promises and ObjC code.
What about just regular JS code? Like you have two schedules promises. The first throws The second should still run. Would we start running the second with an exception in the VM?
Michael Saboff
Comment 4
2016-05-09 19:17:15 PDT
(In reply to
comment #3
)
> Comment on
attachment 278469
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=278469&action=review
> > > Source/JavaScriptCore/ChangeLog:11 > > + Tried creating a test case, but I don't have source for the app. > > + I can't seem to find the right combination of Promises and ObjC code. > > What about just regular JS code? > Like you have two schedules promises. > The first throws > The second should still run. Would we start running the second with an > exception in the VM?
The bug here is when we try to invoke a callback that is an instance function on a wrapped ObjC object.
WebKit Commit Bot
Comment 5
2016-05-09 20:21:52 PDT
Comment on
attachment 278469
[details]
Patch Clearing flags on attachment: 278469 Committed
r200610
: <
http://trac.webkit.org/changeset/200610
>
WebKit Commit Bot
Comment 6
2016-05-09 20:21:56 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug