Menu

#2 tclMuPdf segmentation fault

tclMuPdf 2.x
Fixed
nobody
None
2023-02-02
2023-01-24
No

In version 2.1.0 the attached PDF, generated by RICOH scanners, generates a segmentation fault in the close method. In attachement you find also a program duplicating the problem.

1 Attachments

Discussion

  • Franco Violi

    Franco Violi - 2023-01-24

    The version we tested was 2.1.1. I apologize.

     
  • Aldo Buratti

    Aldo Buratti - 2023-01-27

    Hi Franco,
    I was able to reproduce the BUG. I have a development release in progress and it still crashes on that pdf.
    That pdf is corrupted, the core-mupdf issues a warning (see below), and I suppose the problem is there (i.e. core-mupdf does not properly deallocates the memory ...)
    Have you tried to open/close that pdf with the original mupdf tools ?
    Next week I will try to debug ..

    • A even more simple crash-test is the following:

    package require tclMuPDF
    mupdf::printwarnings true ;# --- enable warnings
    set pdfObj [mupdf::open PROBLEM.pdf]
    # --> MuPDF Warning:: broken xref subsection, proceeding anyway.
    $pdfObj close ;# --> crash

     
  • Aldo Buratti

    Aldo Buratti - 2023-01-28
    • Milestone: tclMuPdf 1.4 --> tclMuPdf 2.x
     
  • Aldo Buratti

    Aldo Buratti - 2023-01-28
    • status: New --> Fixed
     
  • Franco Violi

    Franco Violi - 2023-01-29

    Hi Aldo. We will test the new deployment ASAP. Thanks a lot. Ciao. Franco.

     
  • Franco Violi

    Franco Violi - 2023-02-02

    It works perfectly. Thank You.

     

Log in to post a comment.

MongoDB Logo MongoDB