[Bug 273291] www/firefox: Crashes on start after upgrading from 116.0.3_1,2 to 117.0,2
Date: Tue, 12 Sep 2023 11:31:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273291 --- Comment #26 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> --- (In reply to Tatsuki Makino from comment #24) Currently, confirmed that -O0 in CFLAGS fixed the crash even with working profile and cache, but slow. It would be llvm13/clang13 problem with optimization, which bites firefox 117 but not 116 and earlier. I'll report back if -O1 works or not. Now building with -O1. Some details: First, I've tested clearling (actually, moved) cache. It is still under ~/.cache/mozilla/firefox. It didn't help even with blank profile. As I'm not sure how I can force -O0, to surely pick within poudriere build, added "CFLAGS+= -O0" line in www/firefox/Makefile, which failed because "-O0 -O3" in the commandline invoked by make. Maybe the latter "-O3" was used. Next, turned OPTIMIZED_CFLAGS off, with reverting the above-mentioned change. This binary crashes, maybe because actually "-O2" was used. So I've turned OPTIMIZED_CFLAGS on again, and patched Mk/bsd.gecko.mk with the patch below. With this, "-O2 -O0" was used. This worked with blank profile and cache. So made both blank again and copied working ones there, still works! But slow. Now -O3 and -O2 are known to crash. So buiding with -O1, modifying the patch below. Looking into running poudriere build log, "-O2 -O1" is used. --- a/Mk/bsd.gecko.mk +++ b/Mk/bsd.gecko.mk @@ -213,7 +213,7 @@ MOZ_EXPORT+= MOZ_GOOGLE_SAFEBROWSING_API_KEY=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8 . if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+= -O3 +CFLAGS+= -O0 MOZ_EXPORT+= MOZ_OPTIMIZE_FLAGS="${CFLAGS:M-O*}" MOZ_OPTIONS+= --enable-optimize . else -- You are receiving this mail because: You are the assignee for the bug.