Bug 693585 - MuPDF v0.9-2 gives a segfault on Raspberry Pi running Raspian
Summary: MuPDF v0.9-2 gives a segfault on Raspberry Pi running Raspian
Status: RESOLVED INVALID
Alias: None
Product: MuPDF
Classification: Unclassified
Component: fitz (show other bugs)
Version: unspecified
Hardware: Other Linux
: P4 major
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-25 14:40 UTC by a1an_g
Modified: 2013-01-25 16:31 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a1an_g 2013-01-25 14:40:15 UTC
pi@raspberrypi ~ $ mupdf /usr/local/bin/indiecity/InstalledApps/the-magpi-issue-1/Full/The_MagPi_issue_1.pdf
+ fitz/filt_dctd.c:89: read_dctd(): jpeg error: JPEG parameter struct mismatch: library thinks size is 488, caller expects 448
| fitz/stm_read.c:53: fz_read(): read error
Segmentation fault

pi@raspberrypi ~ $ apt-cache showpkg mupdf
Package: mupdf
Versions: 
0.9-2 (/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages) (/var/lib/dpkg/status)
 Description Language: 
                 File: /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages
                  MD5: 76c7b56de572593eec7cf1dec638601e


Reverse Depends: 
Dependencies: 
0.9-2 - libc6 (2 2.13-28) libfreetype6 (2 2.3.9) libjbig2dec0 (0 (null)) libjpeg8 (2 8c) libopenjpeg2 (0 (null)) libx11-6 (0 (null)) libxext6 (0 (null)) zlib1g (2 1:1.2.0) mupdf-tools (0 (null)) 
Provides: 
0.9-2 - 
Reverse Provides:
Comment 1 Robin Watts 2013-01-25 16:29:27 UTC
The clue to this is in the error message:

(In reply to comment #0)
> pi@raspberrypi ~ $ mupdf
> /usr/local/bin/indiecity/InstalledApps/the-magpi-issue-1/Full/
> The_MagPi_issue_1.pdf
> + fitz/filt_dctd.c:89: read_dctd(): jpeg error: JPEG parameter struct
> mismatch: library thinks size is 488, caller expects 448

You've got a build mismatch here. You are building with jpeg header files that don't match the jpeg library you have installed. This is a problem with your set up, and nothing to do with MuPDF itself. Sorry.

We recommend that you build either from:

 * the last released version of the source (using the libraries in the mupdf-thirdparty.zip file available for download at the same location).

or

 * from sources obtained from git (using the thirdparty libraries available via "git submodule update --init")

If you have more questions, feel free to visit the #ghostscript irc channel to ask us.
Comment 2 Robin Watts 2013-01-25 16:31:06 UTC
(In reply to comment #0)
> pi@raspberrypi ~ $ apt-cache showpkg mupdf
> Package: mupdf
> Versions: 
> 0.9-2
> (/var/lib/apt/lists/mirrordirector.raspbian.
> org_raspbian_dists_wheezy_main_binary-armhf_Packages) (/var/lib/dpkg/status)
>  Description Language: 
>                  File:
> /var/lib/apt/lists/mirrordirector.raspbian.
> org_raspbian_dists_wheezy_main_binary-armhf_Packages
>                   MD5: 76c7b56de572593eec7cf1dec638601e
> 
> 
> Reverse Depends: 
> Dependencies: 
> 0.9-2 - libc6 (2 2.13-28) libfreetype6 (2 2.3.9) libjbig2dec0 (0 (null))
> libjpeg8 (2 8c) libopenjpeg2 (0 (null)) libx11-6 (0 (null)) libxext6 (0
> (null)) zlib1g (2 1:1.2.0) mupdf-tools (0 (null)) 
> Provides: 
> 0.9-2 - 
> Reverse Provides:

Actually, that looks like someone has packaged mupdf for Raspbian, but has done so badly. This should be reported to the maintainers for Raspbian.