Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 785751 - net-libs/nodejs-16*: segfaults on ppc64 (little-endian) compiling dev-qt/qtwebengine-5.15.2_p202104*
Summary: net-libs/nodejs-16*: segfaults on ppc64 (little-endian) compiling dev-qt/qtwe...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL: https://github.com/nodejs/node/issues...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-25 23:59 UTC by Georgy Yakovlev
Modified: 2021-05-13 15:30 UTC (History)
3 users (show)

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


Attachments
emerge --info output (emerge.info.txt,7.90 KB, text/plain)
2021-04-25 23:59 UTC, Georgy Yakovlev
Details
build log with nodejs-16 (qtwebengine-nodejs16-build.log.gz,124.50 KB, application/gzip)
2021-04-26 00:00 UTC, Georgy Yakovlev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2021-04-25 23:59:20 UTC
Created attachment 702531 [details]
emerge --info output

builds fine with nodejs-14 though.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2021-04-26 00:00:00 UTC
Created attachment 702534 [details]
build log with nodejs-16
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-04-26 00:02:00 UTC
added nodejs maintainers to CC for possible input.
Comment 3 Chiitoo gentoo-dev 2021-04-26 07:20:28 UTC
So far not able to re-produce this with 5.15.9999 on amd64.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2021-04-26 12:31:18 UTC
it does not look ppc64 specific to me.

testing 5.15.9999::qt with nodejs-16.0.0-r1::gentoo right now
Comment 5 Andreas Sturmlechner gentoo-dev 2021-04-26 15:51:10 UTC
dev-qt/qtwebengine-5.15.2_p20210406 built fine for me.
Comment 6 Georgy Yakovlev archtester gentoo-dev 2021-05-07 04:46:56 UTC
did some investigation, nodejs segfaults. so it is ppc64 specific after all.


> cd /var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210421/work/qtwebengine-5.15.2_p20210421_build/src/core/release
> 
> /var/tmp/portage/dev-qt/qtwebengine-5.15.2_p20210421/temp/python2.7/bin/python2 ../../../../qtwebengine-5.15.2_p20210421/src/3rdparty/chromium/third_party/devtools-frontend/src/third_party/typescript/ts_library.py --tsconfig_output_location gen/third_party/devtools-frontend/src/front_end/third_party/acorn/devtools_entrypoint-bundle-tsconfig-tsconfig.json --front_end_directory gen/third_party/devtools-frontend/src/front_end/third_party/acorn --sources gen/third_party/devtools-frontend/src/front_end/third_party/acorn/acorn.prebundle.ts



poll([{fd=3, events=POLLIN|POLLPRI}, {fd=5, events=POLLIN|POLLPRI}], 2, -1) = 2 ([{fd=3, revents=POLLHUP}, {fd=5, revents=POLLHUP}])
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_DUMPED, si_pid=1552178, si_uid=0, si_status=SIGSEGV, si_utime=290, si_stime=10} ---
close(3)                                = 0
close(5)                                = 0
wait4(1552178, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 1552178
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x3), ...}) = 0
write(1, "\n", 1
)                       = 1
write(1, "TypeScript compilation failed. Used tsconfig gen/third_party/devtools-frontend/src/front_end/third_party/acorn/devtools_entrypoint-bundle-tsconfig-tsconfig.json\n", 161TypeScript compilation failed. Used tsconfig gen/third_party/devtools-frontend/src/front_end/third_party/acorn/devtools_entrypoint-bundle-tsconfig-tsconfig.json



removing qt from CC
Comment 7 Larry the Git Cow gentoo-dev 2021-05-07 04:56:26 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcb65df76e91e7faaf4f5f5de57fdefabbe9ba2a

commit fcb65df76e91e7faaf4f5f5de57fdefabbe9ba2a
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-05-07 04:54:31 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-05-07 04:55:22 +0000

    profiles/arch/powerpc/ppc64: mask >=nodejs-16
    
    Bug: https://bugs.gentoo.org/785751
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/arch/powerpc/ppc64/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-07 11:04:32 UTC
I’m not really sure closing it helps given the issue is still real. It’s useful to have a place to discuss workarounds and such.

I try to use UPSTREAM for where it’s actually fixed there.
Comment 9 Georgy Yakovlev archtester gentoo-dev 2021-05-07 11:50:17 UTC
let's not close it yet as long as mask in profiles/* exists and there's no at least some workaround.

well, there is one, kinda, but it's impractical.
Comment 10 Georgy Yakovlev archtester gentoo-dev 2021-05-07 15:46:30 UTC
taking bug as agreed on IRC as there's nothing maintainers can do now besides waiting.
Comment 11 Larry the Git Cow gentoo-dev 2021-05-13 15:30:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0b1400e070c7874104ffbc5ef295ddc82c81b19

commit d0b1400e070c7874104ffbc5ef295ddc82c81b19
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-05-13 15:20:51 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-05-13 15:30:23 +0000

    profiles/arch/powerpc/ppc64: unmask nodejs-16
    
    Closes: https://bugs.gentoo.org/785751
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/arch/powerpc/ppc64/package.mask | 6 ------
 1 file changed, 6 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=569c31bc14956e0163a84bb6d9f2d6a26c1541b2

commit 569c31bc14956e0163a84bb6d9f2d6a26c1541b2
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-05-13 15:19:55 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-05-13 15:30:22 +0000

    net-libs/nodejs: add ppc64 segfault patch to 16.1.0
    
    Bug: https://bugs.gentoo.org/785751
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../files/nodejs-16.1.0-ppc64-segfault.patch       | 119 +++++++++++++++++++++
 net-libs/nodejs/nodejs-16.1.0.ebuild               |   1 +
 2 files changed, 120 insertions(+)