pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
2.04k stars 141 forks source link

Zathura crashes with 'Bad system call' on specific pdf file #585

Closed idk2848 closed 3 months ago

idk2848 commented 3 months ago

Details: When 'set sandbox strict' is set on zathurarc and I'm using the zathura-pdf-mupdf plugin scrolling down to page 2 of the linked PDF file causes zathura to crash with exit code 159 and the output 'Bad system call'. The following line is also added to my dmesg:

[35987.941453] audit: type=1326 audit(1717492975.611:23): auid=1000 uid=1000 gid=1000 ses=16 pid=72657 comm="pool-org.pwmt.z" exe="/tmp/zathura/build/zathura" sig=31 arch=c000003e syscall=25 compat=0 ip=0x77c9c8799791 code=0x80000000

I am on a fully upgraded arch linux system and I can reproduce the bug with both the development branch of zathura and the release package

Steps to reproduce:

  1. Use the zathura-pdf-mupdf plugin
  2. add the line 'set sandbox strict' (without the quotes) to your zathurarc file
  3. Open the following file to zathura and scroll to page 2

the pdf file: ugh.pdf md5: 9e8c42be55aac825e7a34d448044d0fe sha1: 7968f371bfd617ce658e632ccce88713936b3ba2