From nobody Fri Dec 08 07:58:21 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Smk6M0pBdz53Y2Z for ; Fri, 8 Dec 2023 07:58:35 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Smk6M0WmSz3SkW; Fri, 8 Dec 2023 07:58:35 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702022315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6QF662Sf83oF2cGCzQqdXC4+SSVBXZsbzGFwcaoAuC0=; b=djqZoysW9eoi2vgDQGRjZHajgRq5QZudXogpdpLlnm0eahUEC7SrOi0PiJ2GDUuGRYfSnE 9c2pzkaVE1fnbpws+ABNOyM2M/nxSK0la4kue8eiFB4cFjTCXVC5ZAwsUz7t5YihKQyAmJ BfFFcTUEbBlPj9VlXNE1er3gqsDqYSiosYjUtTJ9kP2hFgkG2IHEAXbth/QO29OWGUOJis KTICuyTZj4bZkxqXqxH1DnD1CASm+0fV3l3wgLy8FG9yBZ8XophoCay449j2WUCNH03Pea pPZxUCdpVHt/fTB6D9fcY56abt9QCOc6HbuOHuWkr9FKkeiR5DyWVz0hyBt1hQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702022315; a=rsa-sha256; cv=none; b=Ng4zHFiRHkkhnq0lMpBuZO4BVAP2OIthIHu43ESzFY2mC2UAnb4VdkeNqrzo0IEzqZVwi3 WGkrQwj5dhnrKrT33RU5ez/Pc3Ht0fzvnyUcdJkjBqL2az6OdnWSm9kyyPvA2qvZQDPe5y WgnFKDAakFCmmiIhtxYXpmpsH77NGNcb/VAgGw4ud8N5mcrEibbXXATaMvsnBlr0DFL+8l cuzC1YwuRg9Oi0+zyqkDubNEI6tWa+TA8k7Z0HM4Cdv7QriadUoy+s/X0YBru4aYXJ+nIu TYG6yF+PYowdNZ1OExqz67zHcjq4JMZm7Yg+abh+FuQ//oI44X/b/3jpopuIig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702022315; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6QF662Sf83oF2cGCzQqdXC4+SSVBXZsbzGFwcaoAuC0=; b=KsB9MLhU8dYzvGXMiDyy9gKKtu8pGkGPKXBwC4kd8O+xqTROuCvLewjRHBofw6wkJc1dch GF5bgFjcGONllsJRL+r8G3hshRY8XKCG2v9N261wqRhU7YQzDiCj9MO4cOT3bSYbj5bDYc vsm+HveXfF8dZjCpAU+t2OaPEIii/78T79iFTwaeHug0R/PzZ488EphvIgJtysmiuhuzVb UMCgzNiZ5wY6i7qPn5yU7E/LGmufzr5KjsihaioBhAp9SA85ODo90az1OMsSvAjv9Qd+MK cuZUSiJHNUqdSS+dYoixq5b9Bon8mmOKxFcNPF2m/T7TV7KkVqKBMjkg4CgGOA== Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Smk6L6Yb1z114t; Fri, 8 Dec 2023 07:58:34 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-423db8ab6e0so11076771cf.1; Thu, 07 Dec 2023 23:58:34 -0800 (PST) X-Gm-Message-State: AOJu0YzkxwYqSyb7bSe/j5z3/DQeDYD8yFvdFshmQ7KSX4sllbr7n8RM S+qYLUvzNrEHX0CX8s2Ptp5gHd/pR4T33DECGMo= X-Google-Smtp-Source: AGHT+IFnejAevgXMbu79M7YvWuapbdkkdgyMMhu+FWf+XAoNDNLri9jobN3oTYZLAcRsCPTF8jdo7agMW3IALQC4U+w= X-Received: by 2002:a05:622a:514:b0:423:93e6:e49f with SMTP id l20-20020a05622a051400b0042393e6e49fmr3938214qtx.14.1702022314011; Thu, 07 Dec 2023 23:58:34 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: <9518dc38-e44b-42ae-bf87-6039ac278ac8@FreeBSD.org> <46c52d37-36ec-45fc-8098-1029996c717c@FreeBSD.org> <2097084863.1871.1701797963768@localhost> <122857628.2905.1701855132840@localhost> <370237048.1624.1701868863773@localhost> <772988313.1608.1701870816598@localhost> In-Reply-To: From: Nuno Teixeira Date: Fri, 8 Dec 2023 07:58:21 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: firefox broken on arm64 To: Ronald Klop Cc: Jesper Schmitz Mouridsen , freebsd-arm@freebsd.org Content-Type: multipart/alternative; boundary="0000000000006d32c1060bfaf39f" --0000000000006d32c1060bfaf39f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable (...) https://hg.mozilla.org/integration/autoland/rev/d314be784675 fixes build. 120.0.1: Fixed a startup crash affecting Linux users on some aarch64 systems with page sizes other than 4KB. (bug 1866025 ) Tested with aslr enabled/disabled and webgl off, same problem. crash. I can do more tests at my rpi4 if needed, just tell me what to do and then I publish results. Cheers Nuno Teixeira escreveu no dia quinta, 7/12/2023 =C3= =A0(s) 11:06: > Compiling with patch at PR 275247 :) > > Nuno Teixeira escreveu no dia quarta, 6/12/2023 > =C3=A0(s) 14:07: > >> Nice, I'm following PR. >> >> Thanks! >> >> Ronald Klop escreveu no dia quarta, 6/12/2023 >> =C3=A0(s) 13:53: >> >>> BTW it also fails on the official pkg build servers. >>> >>> >>> https://portsfallout.com/fallout?port=3Dwww%2Ffirefox%24&maintainer=3D&= env=3Darm64&category=3D&flavor=3D >>> >>> Which also has a PR open: >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275247 (opened by >>> Jesper who is also in the cc of this mail-thread). >>> >>> Regards, >>> Ronald. >>> >>> >>> >>> *Van:* Ronald Klop >>> *Datum:* woensdag, 6 december 2023 14:21 >>> *Aan:* Nuno Teixeira >>> *CC:* Jesper Schmitz Mouridsen , >>> freebsd-arm@freebsd.org >>> *Onderwerp:* Re: firefox broken on arm64 >>> >>> >>> >>> The only clue I see in the log is: >>> >>> gmake[4]: Entering directory '/wrkdirs/usr/ports/www/firefox/work/.buil= d/mozglue/build' >>> mkdir -p '.deps/' >>> mozglue/build/dummy.o >>> /usr/local/bin/clang++15 -std=3Dgnu++17 -o dummy.o -c [...] /wrkdirs/us= r/ports/www/firefox/work/firefox-120.0.1/mozglue/build/dummy.cpp >>> In file included from Unified_cpp_mozglue_baseprofiler0.cpp:110: >>> In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-120.0= .1/mozglue/baseprofiler/core/platform.cpp:2492: >>> /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofile= r/core/platform-linux-android.cpp:125:69: error: expected ')' >>> aRegs.mR11 =3D reinterpret_cast
(mcontext.mc_gpregs.gp_x[11]; >>> ^ >>> /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofile= r/core/platform-linux-android.cpp:125:41: note: to match this '(' >>> aRegs.mR11 =3D reinterpret_cast
(mcontext.mc_gpregs.gp_x[11]; >>> ^ >>> gmake[4]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build= /mozglue/build' >>> >>> >>> But I have no experience in compiling Firefox on RPI4. And don't know w= hy this ')' is missing. Maybe just a little patch is needed. >>> >>> Regards, >>> Ronald. >>> >>> >>> >>> *Van:* Nuno Teixeira >>> *Datum:* woensdag, 6 december 2023 13:18 >>> *Aan:* Ronald Klop >>> *CC:* Jesper Schmitz Mouridsen , >>> freebsd-arm@freebsd.org >>> *Onderwerp:* Re: firefox broken on arm64 >>> >>> Tested on rpi4, current 1500004: Fails to build >>> >>> https://people.freebsd.org/~eduardo/logs/firefox-120.0.1%2C2.log >>> >>> Any clues? >>> >>> I remember compiling ok until about a month or so... >>> >>> Ronald Klop escreveu no dia quarta, 6/12/2023 >>> =C3=A0(s) 09:32: >>> >>>> Yes, I was triggered to this issue because it is mentioned in the >>>> release notes of 120.0.1. >>>> >>>> https://www.mozilla.org/en-US/firefox/120.0.1/releasenotes/ >>>> >>>> Regards, >>>> Ronald. >>>> >>>> >>>> *Van:* Nuno Teixeira >>>> *Datum:* dinsdag, 5 december 2023 21:43 >>>> *Aan:* Ronald Klop >>>> *CC:* Jesper Schmitz Mouridsen , >>>> freebsd-arm@freebsd.org >>>> *Onderwerp:* Re: firefox broken on arm64 >>>> >>>> Port is at 120.0.1 (rc1) and for what I understanded in mozilla PR, >>>> patch will be included in 120.0.1 release. >>>> If I had the time I will apply patch and try it on rpi4. >>>> >>>> Thanks >>>> >>>> Ronald Klop escreveu no dia ter=C3=A7a, 5/12/20= 23 >>>> =C3=A0(s) 17:39: >>>> >>>>> Could it be that you are experiencing this issue? >>>>> >>>>> Bug 1866025 - Firefox 120.0 segfaults at startup (Linux with 16KiB >>>>> pages) [1] >>>>> >>>>> Regards, >>>>> >>>>> Ronald. >>>>> >>>>> [1] https://bugzilla.mozilla.org/show_bug.cgi?id=3D1866025 >>>>> >>>>> >>>>> >>>>> *Van:* Jesper Schmitz Mouridsen >>>>> *Datum:* zondag, 3 december 2023 11:59 >>>>> *Aan:* freebsd-arm@freebsd.org >>>>> *Onderwerp:* Re: firefox broken on arm64 >>>>> >>>>> >>>>> >>>>> On 03.12.2023 09.38, void wrote: >>>>> > On Sun, Dec 03, 2023 at 08:34:21AM +0100, Jesper Schmitz Mouridsen >>>>> wrote: >>>>> >> >>>>> >> Just build firefox-esr-115.5.0_1,1 and firefox-116.0.3_1,2 the >>>>> first >> runs with aslr disabled, the latter signals 4. >>>>> >> >>>>> >> Any suggestions on what is going on are appreciated. >>>>> > >>>>> > What's the uname -aKU ? >>>>> >>>>> FreeBSD generic 14.0-RELEASE FreeBSD 14.0-RELEASE #0 >>>>> releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 09:12:14 UTC 2023 >>>>> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENER= IC >>>>> arm64 1400097 1400097 >>>>> >>>>> did you build from ports or poudriere? >>>>> From ports. >>>>> >>>>> If the >>>>> > latter, what's the /etc/make.conf contain? >>>>> > >>>>> > Please post sysctl -a | grep aslr >>>>> > >>>>> >>>>> kern.elf32.aslr.shared_page: 0 >>>>> kern.elf32.aslr.stack: 1 >>>>> kern.elf32.aslr.honor_sbrk: 0 >>>>> kern.elf32.aslr.pie_enable: 0 >>>>> kern.elf32.aslr.enable: 0 >>>>> kern.elf64.aslr.shared_page: 1 >>>>> kern.elf64.aslr.stack: 1 >>>>> kern.elf64.aslr.honor_sbrk: 0 >>>>> kern.elf64.aslr.pie_enable: 1 >>>>> kern.elf64.aslr.enable: 1 >>>>> vm.aslr_restarts: 256 >>>>> >>>>> I did the esr build to test the build setup, since also the pkg in th= e >>>>> official pkg repo behaves the same i.e the one before 115.5 since 115= .5 did >>>>> not hit the pkg repo yet, which works without aslr (set by proccontro= l) So >>>>> unless 116 introduces something which requires sysctl changes for the >>>>> building tool chain while building my test should be valid. >>>>> >>>>> Thanks >>>>> >>>>> /jsm >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Nuno Teixeira >>>> FreeBSD Committer (ports) >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Nuno Teixeira >>> FreeBSD Committer (ports) >>> >>> >>> >>> >>> >>> >>> >> >> >> -- >> Nuno Teixeira >> FreeBSD Committer (ports) >> > > > -- > Nuno Teixeira > FreeBSD Committer (ports) > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000006d32c1060bfaf39f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(...)


<= div>120.0.1: Fixed a startup crash affecting Linux users on some aarch64 sy= stems with page sizes other than 4KB. (bug 1866025)

Tested wi= th aslr enabled/disabled and webgl off, same problem. crash.

=
I can do more tests at my rpi4 if needed, just tell me what to d= o and then I publish results.

Cheers

<= div class=3D"gmail_quote">
Nuno Teixei= ra <eduardo@freebsd.org> e= screveu no dia quinta, 7/12/2023 =C3=A0(s) 11:06:
Compiling with patch at = PR 275247 :)

Nuno Teixeira <eduardo@freebsd.org> escreveu no dia quarta, 6/12/20= 23 =C3=A0(s) 14:07:
Nice, I'm following PR.

<= div>Thanks!

Ronald Klop <ronald-lists@klop.ws> escreveu no dia quarta, 6/= 12/2023 =C3=A0(s) 13:53:
BTW it also fails on the official pkg build servers.

https://portsfallout.com/fallout?port=3Dwww%2Ffirefox%24&maintainer=3D= &env=3Darm64&category=3D&flavor=3D

Which also has a PR open: https://bugs.freebsd.org/bugzilla/s= how_bug.cgi?id=3D275247 (opened by Jesper who is also in the cc of this= mail-thread).

Regards,
Ronald.

=C2=A0

Van: Ronald Klop <ronald-lists@klop.ws>
Datum: woensdag, 6 december 2023 14:21
Aan: Nuno Teixeira <eduardo@freebsd.org>
CC: Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org
Onderwerp: Re: firefox broken on arm64



The only clue I see in the log is:
gmake[4]: Entering directory '/wrkd=
irs/usr/ports/www/firefox/work/.build/mozglue/build'
mkdir -p '.deps/'
mozglue/build/dummy.o
/usr/local/bin/clang++15 -std=3Dgnu++17 -o dummy.o -c [...] /wrkdirs/usr/po=
rts/www/firefox/work/firefox-120.0.1/mozglue/build/dummy.cpp
In file included from Unified_cpp_mozglue_baseprofiler0.cpp:110:
In file included from /wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/m=
ozglue/baseprofiler/core/platform.cpp:2492:
/wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofiler/co=
re/platform-linux-android.cpp:125:69: error: expected ')'
  aRegs.mR11 =3D reinterpret_cast<Address>(mcontext.mc_gpregs.gp_x[11=
];
                                                                    ^
/wrkdirs/usr/ports/www/firefox/work/firefox-120.0.1/mozglue/baseprofiler/co=
re/platform-linux-android.cpp:125:41: note: to match this '('
  aRegs.mR11 =3D reinterpret_cast<Address>(mcontext.mc_gpregs.gp_x[11=
];
                                        ^
gmake[4]: Leaving directory '/wrkdirs/usr/ports/www/firefox/work/.build=
/mozglue/build'


But I have no experience in compiling Firefox on RPI4. And don't know w=
hy this ')' is missing. Maybe just a little patch is needed.
Regards,
Ronald.

=C2=A0

Van: Nuno Teixeira <eduardo@freebsd.org>
Datum: woensdag, 6 december 2023 13:18
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org
Onderwerp: Re: firefox broken on arm64

Tested on rpi4, current 1500004: Fails to build
=C2=A0
=C2=A0
Any clues?
=C2=A0
I remember compiling ok until about a month or so...
=C2=A0
Ronald Klop <ronald-lists@klop.ws> escreveu no dia quart= a, 6/12/2023 =C3=A0(s) 09:32:
Yes, I was triggered to this issue because it is mentioned in the rele= ase notes of 120.0.1.

https://www.mozilla.org/en-US/firefox/120.0.1/releasenotes/<= /a>

Regards,
Ronald.
=C2=A0

Van: Nuno Teixeira <eduardo@freebsd.org>
Datum: dinsdag, 5 december 2023 21:43
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: Jesper Schmitz Mouridsen <jsm@freebsd.org>, freebsd-arm@freebsd.org
Onderwerp: Re: firefox broken on arm64

Port is at 120.0.1 (rc1) and for what I understanded in mozilla PR, pa= tch will be included in 120.0.1 release.
If I had the time I will apply patch and try it on rpi4.
=C2=A0
Thanks
=C2=A0
Ronald Klop <ronald-lists@klop.ws> escreveu no dia ter= =C3=A7a, 5/12/2023 =C3=A0(s) 17:39:
Could it be that you are experiencing this issue?

Bug 1866025 - Firefox 120.0 segfaults at startup (Linux with 16= KiB pages) [1]

Regards,

Ronald.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=3D1866025
=C2=A0

Van: Jesper Schmitz Mouridsen <jsm@FreeBSD.org> Datum: zondag, 3 december 2023 11:59
Aan: freebsd-arm@freebsd.org
Onderwerp: Re: firefox broken on arm64



On 03.12.2023 09.38, void wrote:
> On Sun, Dec 03, 2023 at 08:34:21AM +0100, Jesper Schmitz Mouridsen wro= te:
>>
>> Just build firefox-esr-115.5.0_1,1=C2=A0 and firefox-116.0.3_1,2 t= he first >> runs with aslr disabled, the latter signals 4.
>>
>> Any suggestions on what is going on are appreciated.
>
> What's the uname -aKU ?

FreeBSD generic 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9= 716eee8ab4: Fri Nov 10 09:12:14 UTC 2023 root@releng1.nyi.freebsd.org:/usr/= obj/usr/src/arm64.aarch64/sys/GENERIC arm64 1400097 1400097

=C2=A0=C2=A0did you build from ports or poudriere?
=C2=A0From ports.

If the
> latter, what's the /etc/make.conf contain?
>
> Please post sysctl -a | grep aslr
>

kern.elf32.aslr.shared_page: 0
kern.elf32.aslr.stack: 1
kern.elf32.aslr.honor_sbrk: 0
kern.elf32.aslr.pie_enable: 0
kern.elf32.aslr.enable: 0
kern.elf64.aslr.shared_page: 1
kern.elf64.aslr.stack: 1
kern.elf64.aslr.honor_sbrk: 0
kern.elf64.aslr.pie_enable: 1
kern.elf64.aslr.enable: 1
vm.aslr_restarts: 256

I did the esr build to test the build setup, since also the pkg in the offi= cial pkg repo behaves the same i.e the one before 115.5 since 115.5 did not= hit the pkg repo yet, which works without aslr (set by proccontrol) So unl= ess 116 introduces something which requires sysctl changes for the building= tool chain while building my test should be valid.

Thanks

/jsm

=C2=A0


=C2=A0


--
Nuno Teixeira
FreeBSD Committer (ports)

=C2=A0


--
Nuno Teixeira
FreeBSD Committer (ports)

=C2=A0

=C2=A0


--
<= div dir=3D"ltr">Nuno Teixeira
Fre= eBSD Committer (ports)


--
Nuno Teixeira
FreeBSD Committ= er (ports)


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000006d32c1060bfaf39f--