You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Breakpoint trap error in mksnapshot while building debug on ARM64 #15395
I am attempting to build the 8.5.0 release for Fedora. The Fedora build system compiles Node.js for aarch64, armv7hl, i686, ppc64, ppc64le and x86_64. We build both the release and debug builds of Node.js, renaming /usr/bin/node to /usr/bin/node_g for the debug version.
Starting with 8.5.0, the aarch64/arm64 build is failing consistently with the following error:
changed the title [-]Breakpoint trap error on ARM64 in mksnapshot while building debug on ARM64[/-][+]Breakpoint trap error in mksnapshot while building debug on ARM64[/+]on Sep 13, 2017
This actually seems like an assertion in generated code fired. The patch being provided simply turns off debug-mode assertions. I don't think that should be the fix.
@planglois If the fix is back-ported to 6.2, we'll pick it up automatically. If not, we can float it if you open a pull request. 801e61a is an example of what back-ports in our tree look like.
Activity
[-]Breakpoint trap error on ARM64 in mksnapshot while building debug on ARM64[/-][+]Breakpoint trap error in mksnapshot while building debug on ARM64[/+]bnoordhuis commentedon Sep 18, 2017
I'm reasonably sure it's caused by https://github.com/nodejs/node/blob/v8.5.0/deps/v8/src/arm64/macro-assembler-arm64.cc#L4372 - V8 tries to store a pointer to the printf() function from libc in the snapshot (the core dump of the runtime.)
Does this patch sidestep the issue? Failing that, does commenting out that line help?
sgallagher commentedon Sep 19, 2017
I can confirm that the patch above allows the debug build to complete successfully: https://koji.fedoraproject.org/koji/taskinfo?taskID=21968956
bnoordhuis commentedon Sep 20, 2017
Happy to hear that. Can I ask you to file a bug report over at https://bugs.chromium.org/p/v8/issues/list? This code is not directly under our control.
bnoordhuis commentedon Oct 15, 2017
I'll go ahead and close this out. @sgallagher If you opened a V8 issue, can you post the link here? Thanks.
sgallagher commentedon Oct 16, 2017
@bnoordhuis Sorry, I've had that on my TODO list for weeks and I kept forgetting to file it. I've just done so: https://bugs.chromium.org/p/v8/issues/detail?id=6939
hashseed commentedon Oct 17, 2017
This actually seems like an assertion in generated code fired. The patch being provided simply turns off debug-mode assertions. I don't think that should be the fix.
planglois commentedon Oct 24, 2017
Hello, we've now merged a fix for this, you should be able to enable assertions inside the snapshot now! Should the patch be cherry-picked for node?
bnoordhuis commentedon Oct 24, 2017
@planglois If the fix is back-ported to 6.2, we'll pick it up automatically. If not, we can float it if you open a pull request. 801e61a is an example of what back-ports in our tree look like.
Disable debug builds on aarch64 due to nodejs/node#15395