Thanks ! it works :-).

在2022年10月3日星期一 UTC+8 03:02:54<da...@haresign.com> 写道:

> You need -DV8_ENABLE_SANDBOX.
>
> You can look at the BUILD.gn file to figure out how the default values 
> look.
>
> [image: v8.png]
>
> v8/BUILD.gn at main · v8/v8 <https://github.com/v8/v8/blob/main/BUILD.gn>
> github.com <https://github.com/v8/v8/blob/main/BUILD.gn>
> <https://github.com/v8/v8/blob/main/BUILD.gn>
>
> There’s an option you can enable when you build v8 so that it spits out a 
> v8-gn.h that you can include to ensure you have the correct defines when 
> you build the embedder side code.
>
> [image: v8.png]
>
> v8/BUILD.gn at 15f44a326bb6af662ce32e75333276373be94728 · v8/v8 
> <https://github.com/v8/v8/blob/15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331>
> github.com 
> <https://github.com/v8/v8/blob/15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331>
>
> <https://github.com/v8/v8/blob/15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331>
>
>
> On Oct 2, 2022, at 14:39, theratliter theratliter <thera...@gmail.com> 
> wrote:
>
> Oh, sorry, i mean i compile my code with  -DV8_COMPRESS_POINTERS and 
> compile V8 with default config, but it still crash. I encountered this 
> error long time ago and it can be fixed with  -DV8_COMPRESS_POINTERS, but 
> it does not work in V8 10.8. I print the value of V8_COMPRESS_POINTERS, it 
> shows 1. it maybe related to my PC or compiler ?
>
>
> 在2022年10月3日星期一 UTC+8 02:26:10<Ben Noordhuis> 写道:
>
>> On Sun, Oct 2, 2022 at 5:49 PM theratliter theratliter 
>> <thera...@gmail.com> wrote: 
>> > 
>> > Hi, i compile V8(10.8) with -DV8_COMPRESS_POINTERS, but when i run the 
>> code it crashes with the error as follows. 
>> > ``` 
>> > Embedder-vs-V8 build configuration mismatch. On embedder side sandbox 
>> is DISABLED while on V8 side it's ENABLED. 
>> > ``` 
>> > Does anybody know why ? thanks! 
>>
>> Compile your own code with -DV8_COMPRESS_POINTERS to fix that. 
>>
>> Pointer compression changes the layout of objects in memory. Embedder 
>> and engine have to agree on the object layout, otherwise things go 
>> boom. 
>>
> -- 
> -- 
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to v8-users+u...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/v8-users/6c5b48f1-9172-4af0-a7ff-d48fbdcaa999n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/v8-users/6c5b48f1-9172-4af0-a7ff-d48fbdcaa999n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/e557ea9f-7287-4a57-a105-f522e51ee03en%40googlegroups.com.

Reply via email to