Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619528 - dev-util/electron: node binary breaks after merge phase
Summary: dev-util/electron: node binary breaks after merge phase
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-24 09:12 UTC by Sora Lee
Modified: 2017-06-01 11:20 UTC (History)
2 users (show)

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


Attachments
Build Log (xz archive) (build.log.xz,417.42 KB, application/x-xz)
2017-05-25 09:28 UTC, Sora Lee
Details
System Info (system.info,16.64 KB, text/plain)
2017-05-25 09:29 UTC, Sora Lee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sora Lee 2017-05-24 09:12:29 UTC
Emerging dev-util/electron-1.3.13-r1 succeeds without errors, however attempting to use the /usr/lib/electron-1.3/node binary results in a segmentation fault. I have stepped through the ebuild process manually, and the binary in question has no issues when being run from inside the image directory; it is only after it is merged to the live system that issues arise. A similar thing seems to be happening on other versions of electron too.

System Info: https://drive.google.com/open?id=0B2yhQ3O4tL3kNkgxdGFjRzJtY0U
Build Log: https://drive.google.com/open?id=0B2yhQ3O4tL3kQmJWdTVabmY0NFk
Files:
Comment 1 Jonas Stein gentoo-dev 2017-05-24 18:58:13 UTC
Please attach the two files (compressed, if large). The developers use tools which rely on attachments and we do not want to depend on third party servers.
Comment 2 Sora Lee 2017-05-25 09:28:55 UTC
Created attachment 474210 [details]
Build Log (xz archive)
Comment 3 Sora Lee 2017-05-25 09:29:32 UTC
Created attachment 474212 [details]
System Info
Comment 4 Sora Lee 2017-05-25 09:48:53 UTC
Apologies for that, I hadn't used the attachment feature before. I also have an archive of the working directory if it's needed, although it's too big to upload as an attachment.
Comment 5 Sora Lee 2017-05-25 10:08:40 UTC
As a side note, I wouldn't be surprised if there were issues with other files in the package too; I am unable to run any electron based app, even pre-compiled ones (e.g. AppImages). So far I've tested Hyper, Gitkraken, Discord, and Atom without success.
Comment 6 Elvis Pranskevichus 2017-05-25 13:44:00 UTC
Have you tried a newer GCC version?  Given that you're on Ryzen I wouldn't be surprised that there's a mis-compilation issue somewhere.
Comment 7 Sora Lee 2017-05-26 10:58:57 UTC
(In reply to Elvis Pranskevichus from comment #6)
> Have you tried a newer GCC version?  Given that you're on Ryzen I wouldn't
> be surprised that there's a mis-compilation issue somewhere.

Yes, I've tried gcc-6.3.0 and changed to --march=znver1, however it makes no difference.
Comment 8 Sora Lee 2017-05-26 11:00:41 UTC
I just realised that I called node when testing the working directory, not ./node, so I was probably using my nodejs version of the binary instead (i.e., the binary was probably corrupted even before it was merged to the live system).
Comment 9 Sora Lee 2017-06-01 11:19:52 UTC
For some reason I didn't notice the message when emerging electron the first time, but it looks like grkernsec is the the issue here.
Comment 10 Sora Lee 2017-06-01 11:20:25 UTC
For some reason I didn't notice the message when emerging electron the first time, but it looks like grkernsec is the the issue here.