Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460784 - net-libs/nodejs-0.9.12 with dev-lang/v8-3.15.11.15 - segmentation fault in .../work/node-v0.9.12/out/Release/mksnapshot
Summary: net-libs/nodejs-0.9.12 with dev-lang/v8-3.15.11.15 - segmentation fault in .....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-08 16:08 UTC by Coacher
Modified: 2013-03-14 02:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo,5.00 KB, text/plain)
2013-03-08 16:09 UTC, Coacher
Details
build.log (build.log,179.52 KB, text/plain)
2013-03-08 16:10 UTC, Coacher
Details
node-0.10.0.ebuild (node-0.10.0.ebuild,1.47 KB, text/plain)
2013-03-12 03:31 UTC, Johan Bergström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2013-03-08 16:08:48 UTC
Subject says it all: build fails with segfault.

Reproducible: Always
Comment 1 Coacher 2013-03-08 16:09:21 UTC
Created attachment 341310 [details]
emerge --info
Comment 2 Coacher 2013-03-08 16:10:17 UTC
Created attachment 341312 [details]
build.log
Comment 3 Johan Bergström 2013-03-10 22:25:20 UTC
As of 0.9.12 we don't actually use shared v8 libraries anymore, but the bundled one. This because upstream uses 3.14 and a couple of other things. See for instance bug 455788.

The only 'major' difference I find between your setup and mine is that you're using a hardened setup. I'll check the gentoo-x86 v8 for patches. If you know anything about that, it would be appreciated.

Do you have any other useful information, for instance the output in snapshot.log referenced by the build?
Comment 4 Johan Bergström 2013-03-11 21:52:36 UTC
Possibly related: http://code.google.com/p/v8/issues/detail?id=2195

Can you cd into the workdir and try building a debug build? (./configure --debug && make)

Also, if possible, please verify the stack trace with gdb as the upstream bug post did.
Comment 5 Mike Gilbert gentoo-dev 2013-03-11 21:53:01 UTC
You need to pax-mark the mksnapshot binary (disable MPROTECT) partway through the build process, or disable the v8 snapshot feature.

See bug 454720, and the v8 ebuild for details.
Comment 6 Johan Bergström 2013-03-12 03:31:46 UTC
Created attachment 341770 [details]
node-0.10.0.ebuild

Attached is an ebuild with a suggested fix from floppym (thank you). I based it on top of the most current node 0.10.0 ebuild. Please try it out and see if it works for you (did for me).
Comment 7 Coacher 2013-03-12 21:26:18 UTC
(In reply to comment #3)
> Do you have any other useful information, for instance the output in
> snapshot.log referenced by the build?

work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I have no snapshot.log file though it is mentioned in build.log
Comment 8 Johan Bergström 2013-03-12 21:43:16 UTC
(In reply to comment #7)
> (In reply to comment #3)
> > Do you have any other useful information, for instance the output in
> > snapshot.log referenced by the build?
> 
> work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I
> have no snapshot.log file though it is mentioned in build.log

Let me know if the attached ebuild compiles for you.
Comment 9 Coacher 2013-03-12 21:48:47 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #3)
> > > Do you have any other useful information, for instance the output in
> > > snapshot.log referenced by the build?
> > 
> > work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I
> > have no snapshot.log file though it is mentioned in build.log
> 
> Let me know if the attached ebuild compiles for you.

Compiling it now. Give me 10-15 minutes and I'll give you the results.
Comment 10 Coacher 2013-03-12 21:58:26 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #3)
> > > Do you have any other useful information, for instance the output in
> > > snapshot.log referenced by the build?
> > 
> > work/node-v0.9.12/out/Release/obj.target/v8_snapshot/geni/ dir is empty. I
> > have no snapshot.log file though it is mentioned in build.log
> 
> Let me know if the attached ebuild compiles for you.

I've just finished compiling the ebuild you've attached and everything seems to work fine. Thank you.
Comment 11 Johan Bergström 2013-03-12 21:59:04 UTC
(In reply to comment #10)
> I've just finished compiling the ebuild you've attached and everything seems
> to work fine. Thank you.

Great news. Lets get nodejs 0.10.0 in the tree.
Comment 12 Patrick Lauer gentoo-dev 2013-03-14 02:39:44 UTC
+  14 Mar 2013; Patrick Lauer <patrick@gentoo.org> +nodejs-0.10.0.ebuild:
+  Bump, fixes #460784 #461654