Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Crash with "corrupted double-linked list" #4712

Open
@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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /