On Wed, May 17, 2023 at 9:29 PM Matt Henkes <matt...@cypress.io> wrote: > > Hi all, I'm looking into a mksnapshot bus error which i have logged here: > https://bugs.chromium.org/p/v8/issues/detail?id=14007 > > I've been able to identify the commit that introduced the bug: > https://chromium.googlesource.com/v8/v8.git/+/91637c25fcdb199526a7060ceca858aeef16bd3d > > But i could really use some advice debugging the issue. What I'd really like > is to get a callstack from when the error is throw, but I haven't been > successful thus far. I'm building v8 in debug mode and have tried the > `--logAll` and `--trace` flags. The logfile doesn't seem to contain anything > readable the trace also seems to stop somewhere random, inside the parser > map? mksnapshot really has a ton of flags and it's hard to know exactly which > ones i should use. > > Is it possible to run mksnapshot through a debugger? I haven't been able to > find much with my google searches, but i have to assume you can. > > I'm new to v8 develop and would appreciate any help.
Yes, you can run it under a debugger but you'll need to pass the exact same command line arguments that the build scripts do. See the run_mksnapshot template in BUILD.gn. You should be able to find the exact stanza in out/x64.release/toolchain.ninja - it'll be something like "mksnapshot --turbo_instruction_scheduling --target_os=linux --target_arch=x64" etc. -- -- 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/CAHQurc8zq1c9JKa4DtJ6D8FCxUPVpm2hcp5E9uNq0TC2Ovcsug%40mail.gmail.com.