[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] Bug report: pdf2swf says Couldn't load glyph and segfa
From: |
Oskari 'Okko' Ojala |
Subject: |
[Swftools-common] Bug report: pdf2swf says Couldn't load glyph and segfaults |
Date: |
Wed, 19 Oct 2005 19:57:47 +0300 (EEST) |
Hello,
the other problem I have is this one. Pdf2swf seems to fail to load some
glyph(s) and then segfaults. As with the other problem I just reported, I have
experienced this with a small number of some other pages too (but not the
same). Most pages get converted normally. The amont of glyphs that fail varies
from just 1 to about 20 per page, depending on the page.
With the page I am providing as a sample I don't get the "Couldn't load glyph"
error when using the latest development version, but I do get the Segfault.
I have tried this with both freetype-2.1.4-4.0 (from Red Hat) and freetype
2.1.10 (compiled from source).
Description of problem:
Swftools gives "Couldn't load glyph" error (0.7.0 does, not dev) and then
segfaults. No swf file is generated.
Steps needed to reproduce:
1. Configure, make and install swftools.
My swftools has been configured with "--disable-lame", but I don't
think the issue is related to that.
2. wget http://www.frantic.com/okko/swftools-bugs/clg_segfault/clg.pdf
3. pdf2swf clg.pdf --pages=1 -o clg.swf
Output with swftools-0.7.0:
NOTICE Adding [my path here]/swftools/fonts to font directories
Title: (vp6s1kansi.indd)
Author: (snys)
Producer: AFPL Ghostscript 8.50
CreationDate: 20051019163301
ModDate: 20051019163301
Pages: 2
Linearized: no
Encrypted: no
NOTICE processing PDF page 1 (825x952:0:0) (move:0:0)
Couldn't load glyph 186, error:6
Segmentation fault
Last output lines with strace and swftools-0.7.0:
open("/tmp/4f15b9c632a7d2d4", O_RDONLY) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=242, ...}) = 0
mmap2(NULL, 242, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb74eb000
close(4) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7468000
brk(0) = 0x9548000
brk(0x9569000) = 0x9569000
brk(0) = 0x9569000
brk(0) = 0x9569000
brk(0x9568000) = 0x9568000
brk(0) = 0x9568000
write(2, "Couldn\'t load glyph 186, error:6"..., 33Couldn't load glyph 186,
error:6) = 33
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Output with swftools-dev (2005-10-16-1929):
NOTICE Adding [my path here]/swftools/fonts to font directories
Title: (vp6s1kansi.indd)
Author: (snys)
Producer: AFPL Ghostscript 8.50
CreationDate: 20051019163301
ModDate: 20051019163301
Pages: 2
Linearized: no
Encrypted: no
NOTICE processing PDF page 1 (825x952:0:0) (move:0:0)
Segmentation fault
Last output lines with strace and swftools-dev (2005-10-16-1929):
time(NULL) = 1129729289
time(NULL) = 1129729289
time(NULL) = 1129729289
time(NULL) = 1129729289
time(NULL) = 1129729289
time(NULL) = 1129729289
open("/tmp/5f6ae29c17e05af5", O_RDONLY) = 4
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=242, ...}) = 0
mmap2(NULL, 242, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb74eb000
close(4) = 0
munmap(0xb74eb000, 242) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
ldd output with swftools-dev (2005-10-16-1929):
libungif.so.4 => /usr/lib/libungif.so.4 (0x00a8a000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x006a1000)
libz.so.1 => /usr/lib/libz.so.1 (0x00e93000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x0059a000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00293000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00183000)
libm.so.6 => /lib/tls/libm.so.6 (0x00f5d000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00ad9000)
libc.so.6 => /lib/tls/libc.so.6 (0x00413000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x002e3000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00111000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0016d000)
libdl.so.2 => /lib/libdl.so.2 (0x009d5000)
Operating system:
Red Hat Enterprise Linux WS release 3 (Taroon Update 5).
If you need more information, please let me know! Swftools is a great piece of
software, thanks for making it!
Regards,
Oskari Ojala
--
Oskari "Okko" Ojala
Frantic Media
- [Swftools-common] Bug report: pdf2swf says Couldn't load glyph and segfaults,
Oskari 'Okko' Ojala <=