Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-08 Thread 'Igor Sheludko' via v8-users
Hello, Compilation errors are totally not expected and `treat_warnings_as_errors=false` shouldn't be necessary. Did you run `gclient sync`? > I also noticed that the v8_monolithic is only in the release configuration. Does that mean the debug build of v8_monolithic is not supported well? The file

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-07 Thread dong tommy
Hi Igor and all, Does anyone get a chance to try the Hello World with the debug version of *libv8_monolith.a from 12.3.x or 12.4.x?* On Mon, May 6, 2024 at 11:11 AM dong tommy wrote: > I also noticed that the v8_monolithic is only in the release > configuration. Does that mean the debug build

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-05 Thread dong tommy
I also noticed that the v8_monolithic is only in the release configuration. Does that mean the debug build of v8_monolithic is not supported well? ... 'arm64.release.sample': 'release_arm64_sample', 'x64.release.sample': 'release_x64_sample', ... 'release_arm64_sample': [ 'release', 'arm64',

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-04 Thread dong tommy
Corrected the step 4: g++ samples/hello-world.cc -o hello-world \ -I. -I./include \ -L./out.gn/x64.debug/obj -lv8_monolith -ldl \ -std=c++17 -pthread -std=c++17 -fno-rtti -g The same crash occurs: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-04 Thread dong tommy
Update some steps: - Before step 2, I did "ninja -C out.gn/x64.debug -t clean". - Correct the copy issue step 4: 4. g++ samples/hello-world.cc -o hello-world \ -I. -I./include \ -L./out.gn/x64.debug/obj -lv8_monolith -lv8_libbase -lv8_libplatform -ldl \ -std=c++17 -pthread -std=c++17 -DV8_C

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-04 Thread dong tommy
Thanks Igor! I followed your suggestion to test `tools/dev/gm.py x64.optdebug.check` on macOS 13. However, I got some warnings, such as: In file included from ../../src/compiler/turboshaft/wasm-optimize-phase.cc:8: ../../src/compiler/turboshaft/branch-elimination-reducer.h:348:28: error: variabl

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-03 Thread 'Igor Sheludko' via v8-users
I tried exactly the V8 version you mentioned (12.3.219) and I tried it with your GN args too. All good. On Fri, May 3, 2024 at 5:34 PM dong tommy wrote: > Hi ish..., may I know which version of v8 you are using? > > 在2024年5月3日星期五 UTC+8 23:14:05 写道: > >> Hello, >> >> I tried to build both the ori

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-03 Thread dong tommy
Hi ish..., may I know which version of v8 you are using? 在2024年5月3日星期五 UTC+8 23:14:05 写道: > Hello, > > I tried to build both the original HelloWorld and the one with your > modifications on Linux and on MacOS. No crashes. > Something must be wrong with your build environment. > Maybe try to clea

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-03 Thread dong tommy
Thanks ish..., the release build for me is good, the crash only occurred for the debug build with 12.3.219. Anyway, let's try your method. Thanks again! 在2024年5月3日星期五 UTC+8 23:14:05 写道: > Hello, > > I tried to build both the original HelloWorld and the one with your > modifications on Linux and

Re: [v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-03 Thread 'Igor Sheludko' via v8-users
Hello, I tried to build both the original HelloWorld and the one with your modifications on Linux and on MacOS. No crashes. Something must be wrong with your build environment. Maybe try to clean the build dir and start from scratch using a more standard set of gn args: `tools/dev/gm.py x64.optdeb

[v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-02 Thread dong tommy
Even without any change for Hello World, I still get the below crash when exiting with v8 12.3.x: * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT) * frame #0: 0x0001003b2ad0 hello-world`v8::internal::Isolate::Exit(this=0x00010001) a

[v8-users] Re: check failed on EscapableHandleScope::Escape on v8 12.3.219

2024-05-02 Thread dong tommy
The args are: 'is_debug = true', 'enable_iterator_debugging = true', 'symbol_level = 1', 'target_cpu = "x64"', 'is_component_build = false', 'is_chrome_branded = false', 'treat_warnings_as_errors = false', 'is_clang = true', 'use_glib = false', 'use_custom_libcxx = false', 'use_custom_lib