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!
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!
FS#18201 - [swftools] segmentation fault in pdf2swf
Attached to Project:
Community Packages
Opened by Christian Mager (cm) - Saturday, 06 February 2010, 22:37 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 06 March 2010, 23:22 GMT
Opened by Christian Mager (cm) - Saturday, 06 February 2010, 22:37 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 06 March 2010, 23:22 GMT
|
DetailsI get segmentation fault when running the latest version of pdf2swf:
$ pdf2swf Test.pdf NOTICE Output filename not given. Writing to Test.swf NOTICE processing PDF page 1 (595x841:0:0) (move:0:0) NOTICE File contains jpeg pictures segmentation fault $ pdf2swf --version pdf2swf - part of swftools 0.9.0 i tried it with several options, but all segfaulted. I only see this problem on archlinux, other distros with self compiled version 0.9.0 are fine, so i dont think it's an upstream bug. if you need further information, let me know. |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Saturday, 06 March 2010, 23:22 GMT
Reason for closing: None
Additional comments about closing: Resolved with latest libjpeg (8a).
Saturday, 06 March 2010, 23:22 GMT
Reason for closing: None
Additional comments about closing: Resolved with latest libjpeg (8a).
pdf2swf[5055]: segfault at 0 ip 00007f9cf704a700 sp 00007fff98c44df0 error 4 in libjpeg.so.8.0.0[7f9cf703e000+38000]
I used http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/bibleref/sample.pdf
pdf2swf sample.pdf
NOTICE Output filename not given. Writing to sample.swf
NOTICE processing PDF page 1 (595x841:0:0) (move:0:0)
NOTICE processing PDF page 2 (595x841:0:0) (move:0:0)
NOTICE processing PDF page 3 (595x841:0:0) (move:0:0)
NOTICE processing PDF page 4 (595x841:0:0) (move:0:0)
NOTICE processing PDF page 5 (595x841:0:0) (move:0:0)
NOTICE Writing SWF file sample.swf
Please provide the Test.pdf file that you tried.
http://www.ctan.org/tex-archive/support/ghostscript/3rdparty/
The segmentation fault occurs at line 158 in the emit_dqt function in jcmarker.c in the source for libjpeg version 8. At this point qtbl->quantval is null.
This train of events is set in motion when pdf2swf calls jpeg_write_tables in the function swf_SetJPEGBitsStart at line 243 in swfbits.c It appears that the cinfo structure passed there contains an incomplete quant_tbl_ptrs structure.
As mentioned in my previous comment, this problem ONLY occurs with the latest version of libjpeg compiled from jpegsrc.v8.tar.gz