On 2023/04/12 11:15, Jan Stary wrote:
> On Apr 12 11:11:01, [email protected] 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 -0000 1.13
+++ dri_sw_winsys.c 12 Apr 2023 09:25:42 -0000
@@ -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