| Summary: | net-libs/nodejs-6.7.0: 2967419 Segmentation fault in .../work/node-v6.7.0/out/Release/mksnapshot --startup_src .../work/node-v6.7.0/out/Release/obj.target/v8_snapshot/geni/snapshot | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Anton Kochkov <anton.kochkov> |
| Component: | Current packages | Assignee: | Jeroen Roovers (RETIRED) <jer> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | damien.thebault, hardened, hydrapolic, jstein |
| Priority: | Normal | Keywords: | NeedPatch |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://bugs.gentoo.org/show_bug.cgi?id=603730 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
nodejs_build.log.gz
hardened-nodejs-4.4.6-build.log hardened-nodejs-4.6.1-build.log hardened-nodejs-7.0.0-build.log.gz hardened-emerge-info.txt |
||
|
Description
Anton Kochkov
2016-10-05 13:19:36 UTC
Created attachment 449228 [details]
nodejs_build.log.gz
Works here: net-libs/nodejs-6.7.0::gentoo was built with the following: USE="npm snapshot ssl -debug -doc -icu -test" ABI_X86="64" CPU_FLAGS_X86="sse2" PYTHON_TARGETS="python2_7" Try setting different MAKEOPTS. (In reply to Tomáš Mózes from comment #2) > Works here: > > net-libs/nodejs-6.7.0::gentoo was built with the following: > USE="npm snapshot ssl -debug -doc -icu -test" ABI_X86="64" > CPU_FLAGS_X86="sse2" PYTHON_TARGETS="python2_7" > > Try setting different MAKEOPTS. MAKEOPTS="-j1" - still same error. It's unrelated. I have the issue as well on my hardened gentoo. 4.4.1 worked apparently fine. 4.4.6 segfaults on mksnapshot. 4.6.1 segfaults on mksnapshot. 7.0.0 segfaults on mksnapshot. I tried with MAKEOPTS="-j1" and got the same result. Created attachment 452270 [details]
hardened-nodejs-4.4.6-build.log
Created attachment 452272 [details]
hardened-nodejs-4.6.1-build.log
Created attachment 452274 [details]
hardened-nodejs-7.0.0-build.log.gz
Created attachment 452276 [details]
hardened-emerge-info.txt
Not much changed I bet, but it reproduces also on net-libs/nodejs-7.2.0. Still reproduced on nodejs 7.4.0, but the following workaround [1] allowed me to install it anyway (to not have vulnerability GLSA 201612-43 [2] on my system). [1] https://bugs.gentoo.org/show_bug.cgi?id=539342#c4 [2] https://security.gentoo.org/glsa/201612-43 Still in 7.9.0 ``` ector_protocol_json.h" LD_LIBRARY_PATH=/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/lib.host:/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/src; mkdir -p /var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/obj.target/v8_snapshot/geni; "/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/mksnapshot" --startup_src "/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" "" <--- Last few GCs ---> [3736333:0xf347414f260] 21241353229 ms: Mark-sweep 0.1 (3.0) -> 0.1 (3.0) MB, 0.2 / 0.0 ms allocation failure GC in old space requested [3736333:0xf347414f260] 21241353229 ms: Mark-sweep 0.1 (3.0) -> 0.1 (3.0) MB, 0.2 / 0.0 ms last resort [3736333:0xf347414f260] 21241353229 ms: Mark-sweep 0.1 (3.0) -> 0.1 (3.0) MB, 0.2 / 0.0 ms last resort <--- JS stacktrace ---> # # Fatal javascript OOM in CALL_AND_RETRY_LAST # /bin/sh: line 1: 3736333 Illegal instruction "/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/mksnapshot" --startup_src "/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" "" make: *** [deps/v8/src/v8_snapshot.target.mk:13: /var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 132 make: *** Waiting for unfinished jobs.... make: Leaving directory '/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0/out' * ERROR: net-libs/nodejs-7.9.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-libs/nodejs-7.9.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-7.9.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-7.9.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-7.9.0/temp/environment'. * Working directory: '/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0' * S: '/var/tmp/portage/net-libs/nodejs-7.9.0/work/node-v7.9.0' ``` Still in 8.1.0: LD_LIBRARY_PATH=/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/lib.host:/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/src; mkdir -p /var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/obj.target/v8_snapshot/geni; "/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/mksnapshot" --startup_src "/var/tmp/portage/net-libs/nodejs-8.1. 0/work/node-v8.1.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" "" <--- Last few GCs ---> [2670228:0xc711eb65c80] 2197169569 ms: Mark-sweep 0.1 (3.0) -> 0.1 (3.0) MB, 0.3 / 0.0 ms allocation failure GC in old space requested [2670228:0xc711eb65c80] 2197169569 ms: Mark-sweep 0.1 (3.0) -> 0.1 (3.0) MB, 0.2 / 0.0 ms last resort [2670228:0xc711eb65c80] 2197169569 ms: Mark-sweep 0.1 (3.0) -> 0.1 (3.0) MB, 0.2 / 0.0 ms last resort <--- JS stacktrace ---> # # Fatal javascript OOM in CALL_AND_RETRY_LAST # /bin/sh: line 1: 2670228 Illegal instruction "/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/mksnapshot" --startup_src "/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc" "" make: *** [deps/v8/src/v8_snapshot.target.mk:13: /var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 132 make: *** Waiting for unfinished jobs.... rm 0160c75d03e666b2da9efdea33bf816603f4dadd.intermediate make: Leaving directory '/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0/out' * ERROR: net-libs/nodejs-8.1.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-libs/nodejs-8.1.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-8.1.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-8.1.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-8.1.0/temp/environment'. * Working directory: '/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0' * S: '/var/tmp/portage/net-libs/nodejs-8.1.0/work/node-v8.1.0' I had a look at this the last time I upgraded. Because the ebuild does include "pax-mark m [...] mksnapshot". After digging a little bit, it appears that I was using PT_PAX instead of XATTR_PAX, and this was the problem because PT_PAX is deprecated. I migrated to XATTR_PAX, with the help of the wiki: https://wiki.gentoo.org/wiki/Hardened/PaX_flag_migration_from_PT_PAX_to_XATTR_PAX Now the elfix tests are passing without any error. And I can install nodejs (e.g. 7.7.2) without any mksnapshot issue. For me this is resolved. Maybe you can have a look to see if it's the same problem for you ? (In reply to Damien Thébault from comment #13) > For me this is resolved. > Maybe you can have a look to see if it's the same problem for you ? This worked for me with 8.1.2. Thanks! Note for everyone with the same problem (copy from another bug): 0. emerge -a net-libs/nodejs 1. paxctl -xm /var/tmp/portage/net-libs/nodejs-8.5.0/work/node-8.5.0/out/Release/mksnapshot 2. ebuild /usr/portage/net-libs/nodejs/nodejs-8.5.0.ebuild merge I think this bug has at least some common elements with this: https://bugs.gentoo.org/579712 I think this one can be closed, since the grsecurity kernels are now unavailable. |