Re: Thread-local storage issues arose again? Firefox frequently crashes on 10.0 aarch64

2024-04-15 Thread PHO

On 4/14/24 22:03, Taylor R Campbell wrote:


Thanks for tracking this down -- can you file a PR with this
information, plus `readelf -d libxul.so' output, so we have a place to
track possible fixes and pullups?


Filed as lib/58154. I put everything you requested in the PR.


Re: Thread-local storage issues arose again? Firefox frequently crashes on 10.0 aarch64

2024-04-14 Thread Taylor R Campbell
> Date: Sun, 14 Apr 2024 14:07:26 +0900
> From: PHO 
> 
> As I mentioned in 
> http://mail-index.netbsd.org/netbsd-users/2024/04/12/msg030915.html, 
> Firefox tab processes crash very frequently on NetBSD/aarch64 10.0. 
> Building it with PKG_OPTIONS.firefox+=debug-info revealed that when it 
> crashes it segfaults at one of these two places non-deterministically:

Thanks for tracking this down -- can you file a PR with this
information, plus `readelf -d libxul.so' output, so we have a place to
track possible fixes and pullups?

Can you also track down exactly what the definitions of `thread_local'
and `THREAD_LOCAL' are in this code (maybe use cc -E to get the
preprocessor output), just so we don't have to guess?

Can you also grant me access to your binary package set, so I can
examine the binaries and libraries in it?

Can you also find out what firefox is dlopening, if anything?

Can you also try building an ld.elf_so with -DDEBUG -DRTLD_DEBUG, and
run firefox with LD_DEBUG=1 in the environment using this ld.elf_so,
and skim through the output or share it with me?


Re: Thread-local storage issues arose again? Firefox frequently crashes on 10.0 aarch64

2024-04-14 Thread Taylor R Campbell
> Date: Sun, 14 Apr 2024 05:15:31 +
> From: Emmanuel Dreyfus 
> 
> On Sun, Apr 14, 2024 at 02:07:26PM +0900, PHO wrote:
> > As I mentioned in
> > http://mail-index.netbsd.org/netbsd-users/2024/04/12/msg030915.html, Firefox
> > tab processes crash very frequently on NetBSD/aarch64 10.0. Building it with
> > PKG_OPTIONS.firefox+=debug-info revealed that when it crashes it segfaults
> > at one of these two places non-deterministically:
> 
> Not sure it is related, but it could be: I get random SISEGV when 
> bulk-building NetBSD-10.0/i386 packages on NetBSD-10.0/amd64 XEN3_DOMU.

This is almost certainly unrelated to the issue on firefox/aarch64
which pho@ narrowed down to a thread-local storage matter; can you
start a separate thread or PR for it, with diagnostic information?


Re: Thread-local storage issues arose again? Firefox frequently crashes on 10.0 aarch64

2024-04-14 Thread Manuel Bouyer
On Sun, Apr 14, 2024 at 05:15:31AM +, Emmanuel Dreyfus wrote:
> On Sun, Apr 14, 2024 at 02:07:26PM +0900, PHO wrote:
> > As I mentioned in
> > http://mail-index.netbsd.org/netbsd-users/2024/04/12/msg030915.html, Firefox
> > tab processes crash very frequently on NetBSD/aarch64 10.0. Building it with
> > PKG_OPTIONS.firefox+=debug-info revealed that when it crashes it segfaults
> > at one of these two places non-deterministically:
> 
> Hello
> 
> Not sure it is related, but it could be: I get random SISEGV when 
> bulk-building NetBSD-10.0/i386 packages on NetBSD-10.0/amd64 XEN3_DOMU.

I also get theses SISEGV on bare-metal amd64 (it's a i9 with 20 cores) when
running builds with high paralelism (packages or build.sh).
And I also get these firefox crashes.

As I've not yet seens the SISEGV on Xen yet I suspected a hardware issue,
But if others are seeing it too a software bug becomes more likely

-- 
Manuel Bouyer 
 NetBSD: 26 ans d'experience feront toujours la difference
--


Re: Thread-local storage issues arose again? Firefox frequently crashes on 10.0 aarch64

2024-04-13 Thread Emmanuel Dreyfus
On Sun, Apr 14, 2024 at 02:07:26PM +0900, PHO wrote:
> As I mentioned in
> http://mail-index.netbsd.org/netbsd-users/2024/04/12/msg030915.html, Firefox
> tab processes crash very frequently on NetBSD/aarch64 10.0. Building it with
> PKG_OPTIONS.firefox+=debug-info revealed that when it crashes it segfaults
> at one of these two places non-deterministically:

Hello

Not sure it is related, but it could be: I get random SISEGV when 
bulk-building NetBSD-10.0/i386 packages on NetBSD-10.0/amd64 XEN3_DOMU.

-- 
Emmanuel Dreyfus
m...@netbsd.org