Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#30100 - pdf2djvu segfaults everytime with poppler 0.20

Attached to Project: Community Packages
Opened by Quentin Stievenart (acieroid) - Friday, 01 June 2012, 15:36 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 04 June 2012, 19:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jelle van der Waa (jelly)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Since the upgrade to poppler 0.20, pdf2djvu seems to not be able to convert files anymore. It might be linked to  FS#30086 


Additional info:
Packages:
community/pdf2djvu 0.7.12-1 (built with debug infos)
extra/poppler 0.20.0-1

Backtrace:
$ gdb pdf2djvu
GNU gdb (GDB) 7.4.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/pdf2djvu...done.
(gdb) run foo.pdf -o foo.djvu
Starting program: /usr/bin/pdf2djvu foo.pdf -o foo.djvu
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
foo.pdf:
- page #1 -> #1

Program received signal SIGSEGV, Segmentation fault.
0xb7d244d6 in XRef::fetch(int, int, Object*, int) () from /usr/lib/libpoppler.so.25
(gdb) bt
#0 0xb7d244d6 in XRef::fetch(int, int, Object*, int) () from /usr/lib/libpoppler.so.25
#1 0xb7d08972 in Object::fetch(XRef*, Object*, int) () from /usr/lib/libpoppler.so.25
#2 0xb7cd5d87 in GfxFont::locateFont(XRef*, bool) () from /usr/lib/libpoppler.so.25
#3 0xb7c84af5 in SplashOutputDev::doUpdateFont(GfxState*) () from /usr/lib/libpoppler.so.25
#4 0xb7c8524c in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) () from /usr/lib/libpoppler.so.25
#5 0x0806c997 in MutedRenderer::drawChar (this=0x80dc530, state=0x8100f38, x=<error reading variable: Could not find type for DW_OP_GNU_const_type>,
y=<error reading variable: Could not find type for DW_OP_GNU_const_type>, dx=6.3479999999999999, dy=0, origin_x=0, origin_y=0, code=69, n_bytes=1, unistr=0x80fa08c, length=1)
at pdf2djvu.cc:446
#6 0xb7cd01bb in Gfx::doShowText(GooString*) () from /usr/lib/libpoppler.so.25
#7 0xb7cd0be8 in Gfx::opShowSpaceText(Object*, int) () from /usr/lib/libpoppler.so.25
#8 0xb7cc1b46 in Gfx::execOp(Object*, Object*, int) () from /usr/lib/libpoppler.so.25
#9 0xb7cc8d8f in Gfx::go(bool) () from /usr/lib/libpoppler.so.25
#10 0xb7cc9285 in Gfx::display(Object*, bool) () from /usr/lib/libpoppler.so.25
#11 0xb7d0e063 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) ()
from /usr/lib/libpoppler.so.25
#12 0xb7d0e228 in Page::display(OutputDev*, double, double, int, bool, bool, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) () from /usr/lib/libpoppler.so.25
#13 0xb7d148a6 in PDFDoc::displayPage(OutputDev*, int, double, double, int, bool, bool, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*) ()
from /usr/lib/libpoppler.so.25
#14 0x0805f9ef in pdf::Document::display_page (this=0x80dfb10, renderer=0x80dc530, npage=1, hdpi=300, vdpi=300, crop=true, do_links=true) at pdf-backend.cc:158
#15 0x080656fe in xmain(int, char* const*) [clone ._omp_fn.0] () at pdf2djvu.cc:1421
#16 0x0806989c in xmain (argc=-1073744632, argv=0xbffff520) at pdf2djvu.cc:1373
#17 0x0806a8f3 in main (argc=4, argv=0xbffff8e4) at pdf2djvu.cc:1727


Steps to reproduce:
Simply convert a pdf file to a djvu:
$ pdf2djvu foo.pdf -o foo.djvu
foo.pdf:
- page #1 -> #1
zsh: segmentation fault (core dumped) pdf2djvu foo.pdf -o foo.djvu
This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 04 June 2012, 19:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in 0.7.13 and added make test to make sure we detect failures earlier ;)
Comment by Jelle van der Waa (jelly) - Sunday, 03 June 2012, 18:16 GMT
A patch is needed to fix this issue, if you have one I would gladly apply it ;)
Comment by Quentin Stievenart (acieroid) - Monday, 04 June 2012, 14:56 GMT
The bug seems to come from the patch that makes pdf2djvu 0.7.12 compatible with poppler 0.20. A new version of pdf2djvu (0.7.13) had just been released and works with poppler 0.20. The version in community should be updated, I joined the PKGBUILD for pdf2djvu 0.7.13.
   PKGBUILD (0.8 KiB)
Comment by Jelle van der Waa (jelly) - Monday, 04 June 2012, 15:17 GMT
Your awesome, will fix the package tonight!

Loading...