Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.19.6: test_checkbox and/or test_combobox lead to SIGABRT ("corrupted double-linked list") #1663

Closed
dvzrv opened this issue Apr 4, 2022 · 2 comments
Assignees
Labels

Comments

@dvzrv
Copy link

dvzrv commented Apr 4, 2022

Please provide all mandatory information!

Describe the bug (mandatory)

When trying to package 1.19.6 for Arch Linux I attempted to run the tests again.
It appears that test_checkbox() and test_combobox() both lead to SIGABRT of python/pytest after the tests are finished.
The following is printed, after the printout of the pytest result overview (example where test_checkbox() leads to the crash):

corrupted double-linked list
/startdir/PKGBUILD: line 24:  1301 Aborted                 (core dumped) pytest -vv -k "not test_pageids and not test_textbox3 and not test_combobox"

To Reproduce (mandatory)

local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
local _test_dir="test_dir"
python -m installer --destdir="$_test_dir" dist/*.whl
export PYTHONPATH="$_test_dir/$_site_packages:$PYTHONPATH"
pytest -vv -k "not test_pageids and not test_textbox3 and not test_combobox"

Expected behavior (optional)

Tests pass and pytest/ python does not SIGABRT.

Screenshots (optional)

n/a

Your configuration (mandatory)

  • Operating system, potentially version and bitness: Arch Linux (x86_64)
  • Python version, bitness: 3.10.4 (x86_64)
  • PyMuPDF version, installation method (wheel or generated from source): 1.19.6 (attempting to build from pypi sdist)

For example, the output of print(sys.version, "\n", sys.platform, "\n", fitz.__doc__) would be sufficient (for the first two bullets).

Additional context (optional)

I am able to ignore the two test functions (there are two others which I have issues with, but for other reasons and they do not lead to SIGABRT).

@dvzrv dvzrv added the bug label Apr 4, 2022
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Apr 5, 2022
Remove unneeded quotes and curly braces.
Switch to PEP517.
Disable failing tests:
pymupdf/PyMuPDF#1663
pymupdf/PyMuPDF#1664
Add debug package.

git-svn-id: file:///srv/repos/svn-community/svn@1181425 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Apr 5, 2022
Remove unneeded quotes and curly braces.
Switch to PEP517.
Disable failing tests:
pymupdf/PyMuPDF#1663
pymupdf/PyMuPDF#1664
Add debug package.

git-svn-id: file:///srv/repos/svn-community/svn@1181425 9fca08f4-af9d-4005-b8df-a31f2cc04f65
@julian-smith-artifex-com
Copy link
Collaborator

Would you be able to test with PyMuPDF-1.20.0 (released a couple of days ago)?

This has a fix for a potential SEGV that could be related to what you're seeing here.

@dvzrv
Copy link
Author

dvzrv commented Jun 23, 2022

Yes, this is fixed with pymupdf 1.20.0 and building against mupdf/libmupdf 1.20.0. 🎉

@dvzrv dvzrv closed this as completed Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants