-
Notifications
You must be signed in to change notification settings - Fork 653
Open
Assignees
@qooxzuub
Description
Description of the bug
When I unzip crash.zip and run python crash.py my output is:
$ python ./crash.py sys.version=3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0] pymupdf.version=('1.26.4', '1.26.7', None) corrupted double-linked list Aborted
and the exit code is 134.
The zipfile contains two small pdf files a.pdf and b.pdf, each having 6 pages, and crash.py:
import pymupdf def crash(): doc1 = pymupdf.open("a.pdf") for i in range(6): doc1.load_page(i).get_pixmap() doc2 = pymupdf.open("b.pdf") for i in range(6): doc2.load_page(i).get_pixmap() if __name__ == '__main__': import sys print(f"sys.version={sys.version}") print(f"pymupdf.version={pymupdf.version}") crash()
How to reproduce the bug
Activate a new venv, run pip install pymupdf, unzip crash.zip and run python crash.py.
PyMuPDF version
1.26.4
Operating system
Linux
Python version
3.11