Bug 74661 - pdftocairo -jpeg gives Bus error: 10
Summary: pdftocairo -jpeg gives Bus error: 10
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: utils (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium blocker
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-07 10:49 UTC by Mikool
Modified: 2014-03-06 18:09 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
The PDF file used to get the error message (2.55 MB, text/plain)
2014-02-07 10:49 UTC, Mikool
Details
attachment-7026-0.html (197 bytes, text/html)
2014-02-08 10:50 UTC, Mikool
Details
attachment-7026-1.dat (1 bytes, multipart/alternative)
2014-02-08 10:50 UTC, Mikool
Details
dtruss.txt (529.66 KB, text/plain)
2014-02-08 10:50 UTC, Mikool
Details
attachment-10853-0.html (125 bytes, text/html)
2014-02-08 11:18 UTC, Mikool
Details
attachment-10853-1.dat (1 bytes, multipart/alternative)
2014-02-08 11:18 UTC, Mikool
Details
dtruss-full-details.txt (646.73 KB, text/plain)
2014-02-08 11:18 UTC, Mikool
Details
PDF referenced in comment 13 (another one that triggers this bug) (371.04 KB, application/octet-stream)
2014-03-02 00:00 UTC, Andrew de los Reyes
Details

Description Mikool 2014-02-07 10:49:27 UTC
Created attachment 93598 [details]
The PDF file used to get the error message

Hi,
i use this command :
/opt/local/bin/pdftocairo -r 150 -jpeg /mypath/Languedoc_001A047_XP8_FP_p17.pdf /mypath/Languedoc_001A047_XP8_FP_p17

No JPEG file is produced and i get this error message :
Bus error: 10

My environment :
Mac OS X 10.9.1
MacPorts 2.2.1
poppler 0.24.5

I join the file Languedoc_001A047_XP8_FP_p17.pdf for your investigation.

Thanks in advance for your help.

Best regards.

Mikool
Comment 1 Adrian Johnson 2014-02-07 11:07:15 UTC
I tried that command with the attached pdf and it works for me. Maybe you could try running it in a debugger and find out which line it is crashing on.

Does it work if you output to png?
Comment 2 Mikool 2014-02-07 11:48:07 UTC
Hi Adrian,
thanks for your answer.

I tried the same command with -png : same behavior, same error

I tried this command with sudo in front of, no error appear but no output...

I tried to use trace -E on this command and this gives this :
MacBook-Pro-de-gd:~ gd$ trace -E /opt/local/bin/pdftocairo -r 150 -jpeg /Users/gd/Desktop/Languedoc_001A047_XP8_FP_p17.pdf /Users/gd/Desktop/Languedoc_001A047_XP8_FP_p17
Starting program: /opt/local/bin/pdftocairo
trace facility failure, KERN_KDPIDTR,
    pid 74885 does not exist
trace error: trace facility failure, KERN_KDREMOVE: Permission denied

I don't know how to debug this case, sorry. If you can explain to me how to do, i can try.

Poppler 0.24.5 has been installed on my Mac via Macports, maybe the problem is in Macports and not in poppler ?
pdftocairo works very well with other pages or other PDF files on my Mac.

Here's some other information :
Mac OS X 10.9.1
MacPorts 2.2.1
XCode Command Line Tools is installed.
XCode version : 5.0.2
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

Best regards.

Guillaume
> Message du 07/02/14 12:07
> De : bugzilla-daemon@freedesktop.org
> A : mikool19@laposte.net
> Copie à :
> Objet : [Bug 74661] pdftocairo -jpeg gives Bus error: 10
>
> > 
Comment # 1 on bug 74661 from Adrian Johnson I tried that command with the attached pdf and it works for me. Maybe you could try running it in a debugger and find out which line it is crashing on. Does it work if you output to png?  
You are receiving this mail because: You reported the bug.
Comment 3 Mikool 2014-02-07 13:31:24 UTC
Hi Adrian,
here's the crash report from my system, i hope this helps :

Process:         pdftocairo [3069]
Path:            /opt/local/bin/pdftocairo
Identifier:      pdftocairo
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  bash [331]
Responsible:     Terminal [309]
User ID:         501

Date/Time:       2014-02-07 14:27:15.801 +0100
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  11
Anonymous UUID:  E2F4CE33-7191-3A8C-9A71-997DBF8543D6

Sleep/Wake UUID: 520C7F58-FA10-4F31-B563-55A9E25E2A6C

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000010ea43c50

VM Regions Near 0x10ea43c50:
    __LINKEDIT             000000010e994000-000000010e9a4000 [   64K] r--/rwx SM=COW  /opt/local/lib/*.dylib
--> __TEXT                 000000010e9a7000-000000010ea57000 [  704K] r-x/rwx SM=COW  /opt/local/lib/*.dylib
    __DATA                 000000010ea57000-000000010ea5b000 [   16K] rw-/rwx SM=PRV  /opt/local/lib/*.dylib

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libcairo.2.dylib                  0x000000010e9b7e5e _cairo_clip_intersect_rectangle_box + 657
1   libcairo.2.dylib                  0x000000010e9b7bb3 _cairo_clip_intersect_box + 56
2   libcairo.2.dylib                  0x000000010e9f005d _cairo_spans_compositor_stroke + 470
3   libcairo.2.dylib                  0x000000010e9b9722 _cairo_compositor_stroke + 241
4   libcairo.2.dylib                  0x000000010e9c8a0f _cairo_image_surface_stroke + 72
5   libcairo.2.dylib                  0x000000010e9f4a69 _cairo_surface_stroke + 200
6   libcairo.2.dylib                  0x000000010e9bf690 _cairo_gstate_stroke + 421
7   libcairo.2.dylib                  0x000000010e9bba11 _cairo_default_context_stroke + 28
8   libcairo.2.dylib                  0x000000010e9b518b cairo_stroke + 28
9   pdftocairo                        0x000000010e5a3358 CairoOutputDev::stroke(GfxState*) + 146
10  libpoppler.44.dylib               0x000000010e5fb5a2 Gfx::opStroke(Object*, int) + 92
11  libpoppler.44.dylib               0x000000010e5ffdcc Gfx::go(bool) + 336
12  libpoppler.44.dylib               0x000000010e5ffc05 Gfx::display(Object*, bool) + 229
13  libpoppler.44.dylib               0x000000010e63d746 Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) + 364
14  libpoppler.44.dylib               0x000000010e6401bd PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) + 185
15  pdftocairo                        0x000000010e59fa79 main + 4913
16  libdyld.dylib                     0x00007fff8ef945fd start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fe350d0f990  rcx: 0x0000000000000002  rdx: 0x000000010ea5a188
  rdi: 0x0000000000000000  rsi: 0x0000000000800000  rbp: 0x00007fff516649b0  rsp: 0x00007fff51664970
   r8: 0x00000000007fffff   r9: 0x00000000000000a7  r10: 0x0000000000800000  r11: 0x00000000000004da
  r12: 0x000000010ea43c20  r13: 0x00007fe350d27780  r14: 0x00007fff51664a24  r15: 0x00007fff516649c0
  rip: 0x000000010e9b7e5e  rfl: 0x0000000000010286  cr2: 0x000000010ea43c50
 
Logical CPU:     4
Error Code:      0x00000007
Trap Number:     14


Binary Images:
       0x10e59a000 -        0x10e5abff7 +pdftocairo (0) <300B3C10-E561-3CEB-AE04-B0A7B9EC3113> /opt/local/bin/pdftocairo
       0x10e5c1000 -        0x10e6e8ff7 +libpoppler.44.dylib (0) <2BACCFE7-E66D-3C6F-9C29-DF9A962CA811> /opt/local/lib/libpoppler.44.dylib
       0x10e795000 -        0x10e7edff7 +libtiff.5.dylib (0) <76780903-EAC1-3150-890C-CC2A050CF566> /opt/local/lib/libtiff.5.dylib
       0x10e802000 -        0x10e82fff7 +libjpeg.9.dylib (0) <64FFA3DF-D255-33B5-9D22-61CD36314C53> /opt/local/lib/libjpeg.9.dylib
       0x10e83a000 -        0x10e85cff7 +libpng16.16.dylib (0) <891CDE44-652F-3999-AE64-D4336F90A946> /opt/local/lib/libpng16.16.dylib
       0x10e86c000 -        0x10e8b2fff +libcurl.4.dylib (0) <19B8D1FE-7472-3F00-8543-C813E50574B0> /opt/local/lib/libcurl.4.dylib
       0x10e8c6000 -        0x10e8e1ff7 +libopenjpeg.1.dylib (0) <6C2D94AD-7FA7-3F32-BE78-E59164504395> /opt/local/lib/libopenjpeg.1.dylib
       0x10e8e8000 -        0x10e913fff +libfontconfig.1.dylib (0)  /opt/local/lib/libfontconfig.1.dylib
       0x10e91f000 -        0x10e98efff +libfreetype.6.dylib (0)  /opt/local/lib/libfreetype.6.dylib
       0x10e9a7000 -        0x10ea56ff7 +libcairo.2.dylib (0)  /opt/local/lib/libcairo.2.dylib
       0x10ea85000 -        0x10eab9fff +liblcms2.2.dylib (0) <0A98344D-2B33-3B13-A582-F0F578F51014> /opt/local/lib/liblcms2.2.dylib
       0x10ead2000 -        0x10eae1ff7 +libz.1.dylib (0)  /opt/local/lib/libz.1.dylib
       0x10eaec000 -        0x10eb06ff7 +liblzma.5.dylib (0)  /opt/local/lib/liblzma.5.dylib
       0x10eb10000 -        0x10eb3eff7 +libidn.11.dylib (0)  /opt/local/lib/libidn.11.dylib
       0x10eb46000 -        0x10eb87fff +libssl.1.0.0.dylib (0) <67018EB3-D462-3BF1-B162-1E3289178426> /opt/local/lib/libssl.1.0.0.dylib
       0x10eba8000 -        0x10ecbafef +libcrypto.1.0.0.dylib (0) <82BFA4EA-9D60-35E8-9EF8-4A684A8D3881> /opt/local/lib/libcrypto.1.0.0.dylib
       0x10ed30000 -        0x10ed38fff +libintl.8.dylib (0) <569D1B6B-5EBD-3842-99E7-479B20BF4D1B> /opt/local/lib/libintl.8.dylib
       0x10ed40000 -        0x10ee33ff7 +libiconv.2.dylib (0) <103D57C8-BE15-3BF8-BDBE-53EDBDD0B6A4> /opt/local/lib/libiconv.2.dylib
       0x10ee43000 -        0x10ee5cff7 +libexpat.1.dylib (0)  /opt/local/lib/libexpat.1.dylib
       0x10ee66000 -        0x10ee74fff +libbz2.1.0.dylib (0) <57564CB0-AD8D-35AD-A8BE-EAF844A6005C> /opt/local/lib/libbz2.1.0.dylib
       0x10ee7d000 -        0x10eeecff7 +libpixman-1.0.dylib (0)  /opt/local/lib/libpixman-1.0.dylib
       0x10ef04000 -        0x10ef05fff +libX11-xcb.1.dylib (0) <9DAC9FA4-104E-3426-856F-902E126DA534> /opt/local/lib/libX11-xcb.1.dylib
       0x10ef07000 -        0x10ef0bfff +libxcb-render.0.dylib (0)  /opt/local/lib/libxcb-render.0.dylib
       0x10ef14000 -        0x10ef23fff +libxcb.1.dylib (0) <9282822D-4FC0-39AD-B226-4E7E66DD5571> /opt/local/lib/libxcb.1.dylib
       0x10ef35000 -        0x10ef3bfff +libXrender.1.dylib (0)  /opt/local/lib/libXrender.1.dylib
       0x10ef43000 -        0x10f034ff7 +libX11.6.dylib (0)  /opt/local/lib/libX11.6.dylib
       0x10f05e000 -        0x10f068fff +libXext.6.dylib (0)  /opt/local/lib/libXext.6.dylib
       0x10f070000 -        0x10f071fff +libXau.6.dylib (0) <935C8321-AAF2-3DED-AC86-293C2FAB97EC> /opt/local/lib/libXau.6.dylib
       0x10f075000 -        0x10f078fff +libXdmcp.6.dylib (0)  /opt/local/lib/libXdmcp.6.dylib
    0x7fff6409c000 -     0x7fff640cf817  dyld (239.3)  /usr/lib/dyld
    0x7fff84dc0000 -     0x7fff84dc1fff  libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
    0x7fff84ecc000 -     0x7fff84ed6fff  libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
    0x7fff85ee7000 -     0x7fff85f29ff7  libauto.dylib (185.5)  /usr/lib/libauto.dylib
    0x7fff860c7000 -     0x7fff860cdff7  libsystem_platform.dylib (24.1.4) <331BA4A5-55CE-3B95-99EB-44E0C89D7FB8> /usr/lib/system/libsystem_platform.dylib
    0x7fff8643d000 -     0x7fff8643eff7  libsystem_blocks.dylib (63)  /usr/lib/system/libsystem_blocks.dylib
    0x7fff8694c000 -     0x7fff86967ff7  libsystem_malloc.dylib (23.1.10)  /usr/lib/system/libsystem_malloc.dylib
    0x7fff873fe000 -     0x7fff87418fff  libdispatch.dylib (339.1.9) <46878A5B-4248-3057-962C-6D4A235EEF31> /usr/lib/system/libdispatch.dylib
    0x7fff87624000 -     0x7fff877dcff3  libicucore.A.dylib (511.27) <003B6C21-CBD1-3486-9A1D-030ADF5FA061> /usr/lib/libicucore.A.dylib
    0x7fff87da2000 -     0x7fff87da3ff7  libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff87da4000 -     0x7fff87dcdff7  libc++abi.dylib (48) <8C16158F-CBF8-3BD7-BEF4-022704B2A326> /usr/lib/libc++abi.dylib
    0x7fff887de000 -     0x7fff887e0ff3  libsystem_configuration.dylib (596.12)  /usr/lib/system/libsystem_configuration.dylib
    0x7fff88c53000 -     0x7fff88c58ff7  libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
    0x7fff88c59000 -     0x7fff88c80ffb  libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
    0x7fff88c88000 -     0x7fff88c99ff7  libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
    0x7fff88cfa000 -     0x7fff88cfcff7  libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
    0x7fff89290000 -     0x7fff89295fff  libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
    0x7fff89db7000 -     0x7fff89dbeff3  libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
    0x7fff8a744000 -     0x7fff8a796fff  libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
    0x7fff8ab09000 -     0x7fff8ab57fff  libcorecrypto.dylib (161.1)  /usr/lib/system/libcorecrypto.dylib
    0x7fff8b162000 -     0x7fff8b16bff3  libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
    0x7fff8b7ce000 -     0x7fff8b7d6fff  libsystem_dnssd.dylib (522.1.11) <270DCF6C-502D-389A-AA9F-DE4624A36FF7> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8d468000 -     0x7fff8d46cfff  libsystem_stats.dylib (93.1.26)  /usr/lib/system/libsystem_stats.dylib
    0x7fff8d964000 -     0x7fff8d965ff7  libsystem_sandbox.dylib (278.10)  /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8e43f000 -     0x7fff8e43fff7  libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
    0x7fff8e52a000 -     0x7fff8e551ff7  libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
    0x7fff8e552000 -     0x7fff8e737ff7  com.apple.CoreFoundation (6.9 - 855.11)  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff8e912000 -     0x7fff8e913ffb  libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
    0x7fff8e914000 -     0x7fff8e930ff7  libsystem_kernel.dylib (2422.1.72)  /usr/lib/system/libsystem_kernel.dylib
    0x7fff8e939000 -     0x7fff8e940fff  libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8ef6d000 -     0x7fff8ef74ff7  libsystem_pthread.dylib (53.1.4)  /usr/lib/system/libsystem_pthread.dylib
    0x7fff8ef91000 -     0x7fff8ef94ff7  libdyld.dylib (239.3) <62F4D752-4089-31A8-8B73-B95A68893B3C> /usr/lib/system/libdyld.dylib
    0x7fff8fd7b000 -     0x7fff8fdaafd2  libsystem_m.dylib (3047.16)  /usr/lib/system/libsystem_m.dylib
    0x7fff90476000 -     0x7fff90477ff7  libSystem.B.dylib (1197.1.1)  /usr/lib/libSystem.B.dylib
    0x7fff90478000 -     0x7fff90501ff7  libsystem_c.dylib (997.1.1) <61833FAA-7281-3FF9-937F-686B6F20427C> /usr/lib/system/libsystem_c.dylib
    0x7fff9095b000 -     0x7fff9096cff7  libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
    0x7fff90fec000 -     0x7fff90ff0ff7  libcache.dylib (62)  /usr/lib/system/libcache.dylib
    0x7fff9113b000 -     0x7fff91142ff7  liblaunch.dylib (842.1.4)  /usr/lib/system/liblaunch.dylib
    0x7fff911ff000 -     0x7fff91223fff  libxpc.dylib (300.1.17) <4554927A-9467-365C-91F1-5A116989DD7F> /usr/lib/system/libxpc.dylib
    0x7fff91754000 -     0x7fff91901f27  libobjc.A.dylib (551.1)  /usr/lib/libobjc.A.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 19088
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=83.8M resident=33.2M(40%) swapped_out_or_unallocated=50.6M(60%)
Writable regions: Total=47.4M written=21.2M(45%) resident=21.3M(45%) swapped_out=0K(0%) unallocated=26.1M(55%)
 
REGION TYPE                      VIRTUAL
===========                      =======
Kernel Alloc Once                     4K
MALLOC                             38.8M
MALLOC (admin)                       16K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                          12K
__DATA                             1744K
__LINKEDIT                         67.0M
__TEXT                             16.8M
__UNICODE                           544K
shared memory                         4K
===========                      =======
TOTAL                             188.9M


Best regards

Guillaume
> Message du 07/02/14 12:07
> De : bugzilla-daemon@freedesktop.org
> A : mikool19@laposte.net
> Copie à :
> Objet : [Bug 74661] pdftocairo -jpeg gives Bus error: 10
>
> > 
Comment # 1 on bug 74661 from Adrian Johnson I tried that command with the attached pdf and it works for me. Maybe you could try running it in a debugger and find out which line it is crashing on. Does it work if you output to png?  
You are receiving this mail because: You reported the bug.
Comment 4 Mikool 2014-02-07 13:41:58 UTC
A last point, Xpdf 3.02 was previously installed via Macports, maybe it's in conflict with poppler ?

Best regards

Guillaume

> Message du 07/02/14 12:07
> De : bugzilla-daemon@freedesktop.org
> A : mikool19@laposte.net
> Copie à :
> Objet : [Bug 74661] pdftocairo -jpeg gives Bus error: 10
>
> > 
Comment # 1 on bug 74661 from Adrian Johnson I tried that command with the attached pdf and it works for me. Maybe you could try running it in a debugger and find out which line it is crashing on. Does it work if you output to png?  
You are receiving this mail because: You reported the bug.
Comment 5 Mikool 2014-02-08 10:34:13 UTC
Hi,
here's another information, i hope it's useful :
/opt/local/lib/libpng.la: broken symbolic link to libpng16.la

It's the only broken symlink i found in /opt/local directory.

Best regards.

Guillaume
Comment 6 Mikool 2014-02-08 10:50:16 UTC
Created attachment 93645 [details]
attachment-7026-0.html

Hi,
i used dtruss (strace equivalent) on pdftocairo command, i send the output in attached file.

Best regards.

Guillaume
Comment 7 Mikool 2014-02-08 10:50:16 UTC
Created attachment 93646 [details]
attachment-7026-1.dat
Comment 8 Mikool 2014-02-08 10:50:16 UTC
Created attachment 93647 [details]
dtruss.txt
Comment 9 Mikool 2014-02-08 11:18:21 UTC
Created attachment 93648 [details]
attachment-10853-0.html

Hi again,
i send in attached file the output of dtruss with full details (option -a).
Best regards.
Guillaume
Comment 10 Mikool 2014-02-08 11:18:21 UTC
Created attachment 93649 [details]
attachment-10853-1.dat
Comment 11 Mikool 2014-02-08 11:18:21 UTC
Created attachment 93650 [details]
dtruss-full-details.txt
Comment 12 devans 2014-02-10 19:15:58 UTC
See associated MacPorts ticket with further details.

https://trac.macports.org/ticket/42408
Comment 13 Andrew de los Reyes 2014-03-01 23:57:57 UTC
I'm seeing this issue on an app I'm developing as well. Mine is a PNaCl (portable native client) app that runs within Chrome. I've attached the PDF I'm using and the stack trace.

I see the problem when drawing page 4 (iirc) to the screen (raster). If I don't scroll down to that page, but export to PDF (rerendering to a new PDF), that works. Also, I can then open that new PDF and render to a raster display fine. These are the same symptoms, so I assume we have the same bug.

(Unfortunately, the compiler seems to have optimized away the function args) :(

0x00000000001a0051 in _cairo_clip_intersect_rectangle_box ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-clip-boxes.c:179  
179                 clip->is_region = _cairo_box_is_pixel_aligned (box); 
(gdb) bt 
#0  0x00000000001a0051 in _cairo_clip_intersect_rectangle_box ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-clip-boxes.c:179  
#1  0x000000000019fba0 in _cairo_clip_intersect_box ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-clip-boxes.c:265  
#2  0x000000000021a200 in _cairo_spans_compositor_stroke () 
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-spans-compositor.c:1070 
#3  0x00000000001afb20 in _cairo_image_surface_stroke ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-compositor.c:157  
#4  0x00000000001d6ee0 in _cairo_surface_stroke ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-surface.c:2210  
#5  0x00000000001a83c0 in _cairo_gstate_stroke () 
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-gstate.c:1185 
#6  0x00000000001a4200 in _cairo_default_context_stroke ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.16/src/cairo-default-context.c:1013  
#7  0x000000000019d200 in INT_cairo_stroke ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/cairo-1.12.---Type <return> to continue, or q <return> to quit---  
16/src/cairo.c:2146 
#8  0x0000000000136080 in CairoOutputDev::stroke () 
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/CairoOutputDev.cc:778  
#9  0x00000000000a5b80 in Gfx::opStroke ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:1801  
#10 0x00000000000b1720 in execOp (numArgs=<optimized out>)  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:853  
#11 go ()  
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:712  
#12 Gfx::display () 
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:678 
#13 0x00000000000b2280 in Gfx::drawForm () 
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:4855
#14 0x00000000000a4b00 in doForm ()
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:4777
#15 Gfx::opXObject ()
#16 0x00000000000b1720 in execOp (numArgs=<optimized out>)
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:853
#17 go ()
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:712
#18 Gfx::display ()
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Gfx.cc:678
#19 0x0000000000102900 in PDFDoc::displayPageSlice ()
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/poppler/Page.cc:584
#20 0x00000000000930c0 in poppler::SimpleDocument::RenderPage ()
    at /usr/local/google/home/adlr/Code/naclports/src/out/repository/poppler-0.24.4/cpp/poppler-document.cpp:712
#21 0x0000000000034ea0 in pdfsketch::DocumentView::DrawRect(_cairo*, pdfsketch::Rect const&) ()
#22 0x000000000002ea80 in pdfsketch::View::DrawRect(_cairo*, pdfsketch::Rect const&) ()
#23 0x000000000002ea80 in pdfsketch::View::DrawRect(_cairo*, pdfsketch::Rect const&) ()
---Type <return> to continue, or q <return> to quit---
#24 0x000000000002ea80 in pdfsketch::View::DrawRect(_cairo*, pdfsketch::Rect const&) ()
#25 0x000000000002f820 in pdfsketch::RootView::DrawRect(_cairo*, pdfsketch::Rect const&) ()
#26 0x000000000002fd00 in pdfsketch::RootView::HandleDrawRequest(int) ()
#27 0x000000000002ff20 in pp::CompletionCallbackFactory<pdfsketch::RootView, pp::ThreadSafeThreadTraits>::CallbackData<pp::CompletionCallbackFactory<pdfsketch::RootView, pp::ThreadSafeThreadTraits>::Dispatcher0<void (pdfsketch::RootView::*)(int)> >::Thunk(void*, int) ()
#28 0x000000000fc959c0 in ?? ()
#29 0x000000000fc95fe0 in ?? ()
#30 0x000000000fc96560 in ?? ()
#31 0x000000000fcbbda0 in ?? ()
#32 0x000000000fc95440 in ?? ()
#33 0x000000000fca7d00 in ?? ()
#34 0x000000000fc94340 in ?? ()
#35 0x000000000fb923e0 in ?? ()
#36 0x000000000fa63b80 in ?? ()
#37 0x000000000fa64fa0 in ?? ()
#38 0x0000000000090000 in pp::(anonymous namespace)::RunThread (
    void_data=<optimized out>)
    at /mnt/data/b/build/slave/linux-sdk-multirel/build/src/out/pepper_33/src/ppapi_cpp/message_loop.cc:67
#39 0x000000000008bd80 in nc_thread_starter () at nc_thread.c:117
#40 0x000000000fa01100 in ?? ()
#41 0x0000000000000000 in ?? ()
Comment 14 Andrew de los Reyes 2014-03-02 00:00:24 UTC
Created attachment 94940 [details]
PDF referenced in comment 13 (another one that triggers this bug)
Comment 15 Andrew de los Reyes 2014-03-06 03:34:13 UTC
I think I found the issue, and filed a new bug under the Cairo project: https://bugs.freedesktop.org/show_bug.cgi?id=75819
Comment 16 Andrew de los Reyes 2014-03-06 18:09:12 UTC
Mikool,

The issue seems to be fixed in Cairo now. I'm closing this one as I was able to verify in my app that the Cairo solution fixed the crash. You should also double-check your app.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.