Re: firefox crashes on an M1 macbook
LIBGL_ALWAYS_SOFTWARE=true might let you test without access to unaccel'd hardware. If it is the same old problem then AFAIK the options are disable pledge, patch X, or change how Firefox's multi process model works. -- Sent from a phone, apologies for poor formatting. On 12 April 2023 11:38:35 Landry Breuil wrote: Le Wed, Apr 12, 2023 at 11:11:01AM +0200, Jan Stary a écrit : This is current/arm64 on an Apple M1 MacBook Air (dmesg below). While everything mostly works, Firefox keeps crashing. Reproducibly, it always crashes on calendar.google.com; _sometimes_ it crashes when playing a video. On simple sites, it works withotu problems. How can I debug this? Is it related to the lack of video acceleration on these machines? reading /usr/local/share/doc/pkg-readmes/firefox should help debugging this :) i dont have access to such hardware. Landry
Re: firefox crashes on an M1 macbook
Le Wed, Apr 12, 2023 at 11:11:01AM +0200, Jan Stary a écrit : > This is current/arm64 on an Apple M1 MacBook Air (dmesg below). > While everything mostly works, Firefox keeps crashing. > > Reproducibly, it always crashes on calendar.google.com; > _sometimes_ it crashes when playing a video. > On simple sites, it works withotu problems. > > How can I debug this? Is it related to > the lack of video acceleration on these machines? reading /usr/local/share/doc/pkg-readmes/firefox should help debugging this :) i dont have access to such hardware. Landry
Re: firefox crashes on an M1 macbook
On 12/04/23 10:27 +0100, Stuart Henderson wrote: > On 2023/04/12 11:15, Jan Stary wrote: > > On Apr 12 11:11:01, h...@stare.cz wrote: > > > This is current/arm64 on an Apple M1 MacBook Air (dmesg below). > > > While everything mostly works, Firefox keeps crashing. > > > > > > Reproducibly, it always crashes on calendar.google.com; > > > _sometimes_ it crashes when playing a video. > > > On simple sites, it works withotu problems. > > > > > > How can I debug this? Is it related to > > > the lack of video acceleration on these machines? > > > > > > Thanks, > > > > > > Jan > > > > message says: > > > > firefox[8493]: pledge "", syscall 289 > > firefox[68604]: pledge "", syscall 289 > > firefox[94066]: pledge "", syscall 289 > > firefox[66504]: pledge "", syscall 289 > > firefox[95111]: pledge "", syscall 289 > > It is doing a call (probably via an X library) to shmget which is not > permitted by any possible pledge, you need to either disable pledge > or find/patch the library to avoid shmget. > > There is a chance it is this one, based on a 2019 diff from matthieu@ > > Index: dri_sw_winsys.c > === > RCS file: /cvs/xenocara/lib/mesa/src/gallium/winsys/sw/dri/dri_sw_winsys.c,v > retrieving revision 1.13 > diff -u -p -r1.13 dri_sw_winsys.c > --- dri_sw_winsys.c 2 Sep 2022 05:46:51 - 1.13 > +++ dri_sw_winsys.c 12 Apr 2023 09:25:42 - > @@ -144,7 +144,7 @@ dri_sw_displaytarget_create(struct sw_wi > > dri_sw_dt->shmid = -1; > > -#ifdef HAVE_SYS_SHM_H > +#if defined(HAVE_SYS_SHM_H) && !defined(__OpenBSD__) > if (ws->lf->put_image_shm) >dri_sw_dt->data = alloc_shm(dri_sw_dt, size); > #endif I would rather not touch xenocara like that. I would rather fixup firefox.
Re: firefox crashes on an M1 macbook
On 2023/04/12 11:15, Jan Stary wrote: > On Apr 12 11:11:01, h...@stare.cz wrote: > > This is current/arm64 on an Apple M1 MacBook Air (dmesg below). > > While everything mostly works, Firefox keeps crashing. > > > > Reproducibly, it always crashes on calendar.google.com; > > _sometimes_ it crashes when playing a video. > > On simple sites, it works withotu problems. > > > > How can I debug this? Is it related to > > the lack of video acceleration on these machines? > > > > Thanks, > > > > Jan > > message says: > > firefox[8493]: pledge "", syscall 289 > firefox[68604]: pledge "", syscall 289 > firefox[94066]: pledge "", syscall 289 > firefox[66504]: pledge "", syscall 289 > firefox[95111]: pledge "", syscall 289 It is doing a call (probably via an X library) to shmget which is not permitted by any possible pledge, you need to either disable pledge or find/patch the library to avoid shmget. There is a chance it is this one, based on a 2019 diff from matthieu@ Index: dri_sw_winsys.c === RCS file: /cvs/xenocara/lib/mesa/src/gallium/winsys/sw/dri/dri_sw_winsys.c,v retrieving revision 1.13 diff -u -p -r1.13 dri_sw_winsys.c --- dri_sw_winsys.c 2 Sep 2022 05:46:51 - 1.13 +++ dri_sw_winsys.c 12 Apr 2023 09:25:42 - @@ -144,7 +144,7 @@ dri_sw_displaytarget_create(struct sw_wi dri_sw_dt->shmid = -1; -#ifdef HAVE_SYS_SHM_H +#if defined(HAVE_SYS_SHM_H) && !defined(__OpenBSD__) if (ws->lf->put_image_shm) dri_sw_dt->data = alloc_shm(dri_sw_dt, size); #endif
Re: firefox crashes on an M1 macbook
On Apr 12 11:11:01, h...@stare.cz wrote: > This is current/arm64 on an Apple M1 MacBook Air (dmesg below). > While everything mostly works, Firefox keeps crashing. > > Reproducibly, it always crashes on calendar.google.com; > _sometimes_ it crashes when playing a video. > On simple sites, it works withotu problems. > > How can I debug this? Is it related to > the lack of video acceleration on these machines? > > Thanks, > > Jan message says: firefox[8493]: pledge "", syscall 289 firefox[68604]: pledge "", syscall 289 firefox[94066]: pledge "", syscall 289 firefox[66504]: pledge "", syscall 289 firefox[95111]: pledge "", syscall 289 forgot the dmesg: OpenBSD 7.3-current (GENERIC.MP) #0: Tue Apr 11 18:34:46 CEST 2023 h...@mb.stare.cz:/usr/src/sys/arch/arm64/compile/GENERIC.MP real mem = 7916756992 (7550MB) avail mem = 7553122304 (7203MB) random: good seed from bootblocks mainbus0 at root: Apple MacBook Air (M1, 2020) cpu0 at mainbus0 mpidr 0: Apple Icestorm r1p1 cpu0: 128KB 64b/line 8-way L1 VIPT I-cache, 64KB 64b/line 8-way L1 D-cache cpu0: 4096KB 128b/line 16-way L2 cache cpu0: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu1 at mainbus0 mpidr 1: Apple Icestorm r1p1 cpu1: 128KB 64b/line 8-way L1 VIPT I-cache, 64KB 64b/line 8-way L1 D-cache cpu1: 4096KB 128b/line 16-way L2 cache cpu1: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu2 at mainbus0 mpidr 2: Apple Icestorm r1p1 cpu2: 128KB 64b/line 8-way L1 VIPT I-cache, 64KB 64b/line 8-way L1 D-cache cpu2: 4096KB 128b/line 16-way L2 cache cpu2: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu3 at mainbus0 mpidr 3: Apple Icestorm r1p1 cpu3: 128KB 64b/line 8-way L1 VIPT I-cache, 64KB 64b/line 8-way L1 D-cache cpu3: 4096KB 128b/line 16-way L2 cache cpu3: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu4 at mainbus0 mpidr 10100: Apple Firestorm r1p1 cpu4: 192KB 64b/line 6-way L1 VIPT I-cache, 128KB 64b/line 8-way L1 D-cache cpu4: 12288KB 128b/line 12-way L2 cache cpu4: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu5 at mainbus0 mpidr 10101: Apple Firestorm r1p1 cpu5: 192KB 64b/line 6-way L1 VIPT I-cache, 128KB 64b/line 8-way L1 D-cache cpu5: 12288KB 128b/line 12-way L2 cache cpu5: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu6 at mainbus0 mpidr 10102: Apple Firestorm r1p1 cpu6: 192KB 64b/line 6-way L1 VIPT I-cache, 128KB 64b/line 8-way L1 D-cache cpu6: 12288KB 128b/line 12-way L2 cache cpu6: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR cpu7 at mainbus0 mpidr 10103: Apple Firestorm r1p1 cpu7: 192KB 64b/line 6-way L1 VIPT I-cache, 128KB 64b/line 8-way L1 D-cache cpu7: 12288KB 128b/line 12-way L2 cache cpu7: TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,CSV3,CSV2,DIT,SBSS+MSR efi0 at mainbus0: UEFI 2.9 efi0: Das U-Boot rev 0x20220700 apm0 at mainbus0 "opp-table-0" at mainbus0 not configured "opp-table-1" at mainbus0 not configured agtimer0 at mainbus0: 24000 kHz "pmu-e" at mainbus0 not configured "pmu-p" at mainbus0 not configured "clock-ref" at mainbus0 not configured "clock-120m" at mainbus0 not configured simplebus0 at mainbus0: "soc" aplintc0 at simplebus0 nirq 896 ndie 1 aplpmgr0 at simplebus0 aplpinctrl0 at simplebus0 aplpinctrl1 at simplebus0 aplpmgr1 at simplebus0 apldog0 at simplebus0 aplmbox0 at simplebus0 aplpinctrl2 at simplebus0 aplpinctrl3 at simplebus0 aplmbox1 at simplebus0 apldart0 at simplebus0: bypass apldart1 at simplebus0: bypass apldart2 at simplebus0: bypass apldart3 at simplebus0: bypass apldart4 at simplebus0 apldart5 at simplebus0: bypass aplcpu0 at simplebus0 apliic0 at simplebus0 iic0 at apliic0 tipd0 at iic0 addr 0x38 tipd1 at iic0 addr 0x3f apliic1 at simplebus0 iic1 at apliic1 tascodec0 at iic1 addr 0x31 apliic2 at simplebus0 iic2 at apliic2 tascodec1 at iic2 addr 0x34 "cirrus,cs42l83" at iic2 addr 0x48 not configured aplspi0 at simplebus0 aplhidev0 at aplspi0 aplkbd0 at aplhidev0:
firefox crashes on an M1 macbook
This is current/arm64 on an Apple M1 MacBook Air (dmesg below). While everything mostly works, Firefox keeps crashing. Reproducibly, it always crashes on calendar.google.com; _sometimes_ it crashes when playing a video. On simple sites, it works withotu problems. How can I debug this? Is it related to the lack of video acceleration on these machines? Thanks, Jan