WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 146297
Address Sanitizer does not play well with memcpy in JSC::MachineThreads::tryCopyOtherThreadStack.
https://bugs.webkit.org/show_bug.cgi?id=146297
Summary
Address Sanitizer does not play well with memcpy in JSC::MachineThreads::tryC...
Keith Miller
Reported
2015-06-24 16:48:10 PDT
WebViews inside apps built with Address sanitizer will sometimes crash in JSC::MachineThreads::tryCopyOtherThreadStack.
Attachments
Patch
(3.71 KB, patch)
2015-06-24 17:04 PDT
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Patch
(3.93 KB, patch)
2015-06-25 10:30 PDT
,
Keith Miller
msaboff
: review+
Details
Formatted Diff
Diff
Patch
(3.94 KB, patch)
2015-06-25 11:31 PDT
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2015-06-24 17:04:58 PDT
Created
attachment 255530
[details]
Patch
Alexey Proskuryakov
Comment 2
2015-06-24 22:07:51 PDT
Comment on
attachment 255530
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255530&action=review
> Source/JavaScriptCore/heap/MachineStackMarker.cpp:543 > +// Since we cannot blacklist the system memcpy we must use our own naive implementation,
There is no context here to understand that blackisting is about ASan. Please update the comment to make it clear that this is needed to use ASan with both instrumented and non-instrumented builds.
Keith Miller
Comment 3
2015-06-25 10:30:50 PDT
Created
attachment 255563
[details]
Patch Updated comments do note that blacklisting was related to ASan.
Keith Miller
Comment 4
2015-06-25 10:50:04 PDT
rdar://problem/21330174
Michael Saboff
Comment 5
2015-06-25 11:00:00 PDT
Comment on
attachment 255563
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=255563&action=review
r=me with a couple of comments.
> Source/JavaScriptCore/ChangeLog:3 > + Address Sanitizer finds a problem in JavaScriptCore.
Change the bug title to reflect the issue.
> Source/JavaScriptCore/heap/MachineStackMarker.cpp:522 > +void copyMemory(void*, const void*, size_t);
Don't think this declaration serves much purpose with the definition below.
Keith Miller
Comment 6
2015-06-25 11:31:02 PDT
Created
attachment 255565
[details]
Patch Removed the declaration for copyMemory changed the patch name to be more descriptive.
WebKit Commit Bot
Comment 7
2015-06-25 12:23:13 PDT
Comment on
attachment 255565
[details]
Patch Clearing flags on attachment: 255565 Committed
r185957
: <
http://trac.webkit.org/changeset/185957
>
WebKit Commit Bot
Comment 8
2015-06-25 12:23:17 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