-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net-libs/nodejs (14.14.0) dumps core on node_mksnapshot #1
Comments
This time I tried building with "debug" and got more info about what may be going wrong.
I'm thinking now that the problem may have to do with memory alignment? Very strange. But I'm glad the debug checks caught something before where the release build dumps core. |
More details about the first assertion failure I'm hitting in the debug build:
I'm going to try reducing the optimization to -O0 to get more info. |
Compiling with "-O0" gave me the same assertion failure, but with a few values that were optimized out. Here's that backtrace:
|
Some good news: I have patches to get past this bug. It has to do with 64-bit PowerPC big-endian using function descriptors, like AIX, but unlike 32-bit PPC or ppc64le. I'm working on a pull request to submit upstream, as well as an .ebuild with a patch for building within Gentoo. But I need to fix one remaining bug (at least): the V8 PowerPC code gen backend generates FP to int rounding instructions that are only available in Power ISA v2.03 and newer CPUs, which doesn't include PowerPC 970. More details here: ibmruntimes/node#30 |
I figured out how to fix this with a patch, which I need to upstream, so I'll close my local bug now. |
I'm currently trying to figure out why I can't emerge Node.js on my G5. I'm pretty sure the code generator recognizes that I have Altivec but is generating instructions that my G5 can't execute. Here's the crash I'm seeing.
LD_LIBRARY_PATH=/var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/lib.host:/var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/obj/gen; "/var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/node_mksnapshot" "/var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/obj/gen/node_snapshot.cc"
/bin/sh: line 1: 21783 Segmentation fault (core dumped) "/var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/node_mksnapshot" "/var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/obj/gen/node_snapshot.cc"
make: *** [node.target.mk:26: /var/tmp/portage/net-libs/nodejs-14.14.0/work/node-v14.14.0/out/Release/obj/gen/node_snapshot.cc] Error 139
The stack backtrace only goes up to where it executes the generated code.
I'll append to this bug once I have more idea what's going on. I need to fix this in order to build Firefox as well as Chromium.
The text was updated successfully, but these errors were encountered: