Status: New
Owner: ----

New issue 3694 by [email protected]: Segmentation fault in CopyCharsUnsigned() with g++ 4.9.2
https://code.google.com/p/v8/issues/detail?id=3694

The current implementation of CopyCharsUnsigned() in src/utils.h makes x86_64 g++ 4.9.2 emit movdqa instructions for unaligned addresses.

I'm not entirely sure if g++ is to blame here or if there is a pointer aliasing bug in V8 but replacing this line:

    while (dest < limit) *dest++ = static_cast<sinkchar>(*src++);

With a byte-for-byte copy fixes the issue.

I've only seen the SIGSEGV happen in calls to Factory::NewStringFromTwoByte() and only with a source and destination of type uint16_t.

Tested with the current HEAD and v3.29.93.1.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to