Date: Tue, 12 Sep 2023 11:31:30 +0000 From: bugzilla-noreply@freebsd.org To: gecko@FreeBSD.org Subject: [Bug 273291] www/firefox: Crashes on start after upgrading from 116.0.3_1,2 to 117.0,2 Message-ID: <bug-273291-21738-qDlBnXA1Cz@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-273291-21738@https.bugs.freebsd.org/bugzilla/> References: <bug-273291-21738@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273291 --- 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+=3D -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 chang= e. 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 copi= ed 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+=3D=20=20 MOZ_GOOGLE_SAFEBROWSING_API_KEY=3DAIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8 . if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -CFLAGS+=3D -O3 +CFLAGS+=3D -O0 MOZ_EXPORT+=3D MOZ_OPTIMIZE_FLAGS=3D"${CFLAGS:M-O*}" MOZ_OPTIONS+=3D --enable-optimize . else --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273291-21738-qDlBnXA1Cz>