Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682618 - >=www-client/firefox-66.0.2 with USE="lto pgo" fails to compile on arm with: sandbox memory corruption with free(0x000055a53c58b060): Invalid argument
Summary: >=www-client/firefox-66.0.2 with USE="lto pgo" fails to compile on arm with: ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-05 18:58 UTC by tt_1
Modified: 2019-05-04 14:06 UTC (History)
0 users

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


Attachments
compressed build log (firefox-66.0-arm-lto-failed-lto.log.gz,388.56 KB, application/gzip)
2019-04-05 18:58 UTC, tt_1
Details
emerge --info from cross-emerge (emerge-info,4.93 KB, text/plain)
2019-04-05 19:00 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-04-05 18:58:53 UTC
Created attachment 571992 [details]
compressed build log

from the build log: 

33:21.97 gmake[6]: Leaving directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-66.0.2/work/firefox-66.0.2/ff/browser/locales'
33:21.98 gmake[4]: Nothing to be done for 'tools'.
 * /var/tmp/portage/sys-apps/sandbox-2.17/work/sandbox-2.17/libsandbox/memory.c:free():63: failure (Invalid argument):
 * sandbox memory corruption with free(0x000055a53c58b060): Invalid argument
33:26.82 gmake[1]: Entering directory '/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-66.0.2/work/firefox-66.0.2/ff'
33:26.82 rm -f jarlog/en-US.log


the pgo useflag is normally masked, I unmasked it for testing.
Comment 1 tt_1 2019-04-05 19:00:10 UTC
Created attachment 571994 [details]
emerge --info from cross-emerge
Comment 2 tt_1 2019-04-05 19:01:34 UTC
I'll try again with FEATURES="-sandbox -usersandbox"
Comment 3 tt_1 2019-04-06 18:23:17 UTC
Is it possible that this doesn't work, simply because the train-run needs to execute the firefox binary build in the first place? And since this is a cross-compile attempt, it's never going to work? Executing armhf binary with amd64 sandbox?
Comment 4 tt_1 2019-05-03 20:38:20 UTC
Alright, closing as cantfix. pgo needs a native cpu for the training runs, a cross-compile is impossible.
Comment 5 Thomas Deutschmann gentoo-dev Security 2019-05-04 14:06:50 UTC
Keeping it open. When PGO don't work when cross-compiling, we have to add a check (we have tc-is-cross-compiler).