Opened 7 years ago

Last modified 6 months ago

#38338 new defect

Pdftk @1.44 +gcc45 crashes by default

Reported by: ballapete (Peter Dyballa) Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: maehne (Torsten Maehne), anddam (Andrea D'Amore), ericmoret
Port: pdftk

Description

Maybe it needs to be compiled in 32 bit…

The "normal" usage I encounter is this:

pete 730 /\ pdftk SierpIe.pdf output SierpIeU.pdf uncompress
Abort (core dumped)
Exit 134

So I fetched from http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit the pdftk_server-1.45-mac_osx-10.6-setup.pkg package which installs in /opt/pdflabs/pdftk. Running this version of pdftk I get:

pete 750 /\ /opt/pdflabs/pdftk/bin/pdftk SierpIe.pdf output SierpIeu.pdf uncompress
pete 751 /\ gv SierpIeu.pdf &
pete 752 /\ l SierpIeu.pdf
-rw-r--r-- 1 pete admin 128595  9. Mär 13:28 SierpIeu.pdf
pete 753 /\ pdfinfo  SierpIeu.pdf
Producer:       GPL Ghostscript 9.06
CreationDate:   Sat Mar  9 13:27:45 2013
ModDate:        Sat Mar  9 13:27:45 2013
Tagged:         no
Form:           none
Pages:          1
Encrypted:      no
Page size:      64 x 64 pts
Page rot:       0
File size:      128595 bytes
Optimized:      no
PDF version:    1.4
pete 287 /\ otool -L /opt/pdflabs/pdftk/bin/pdftk 
/opt/pdflabs/pdftk/bin/pdftk:
	@executable_path/../lib/libgcj.11.dylib (compatibility version 12.0.0, current version 12.0.0)
	@executable_path/../lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.14.0)
	@executable_path/../lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)           <====
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 697.0.0)         <====
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
pete 288 /\ file /opt/pdflabs/pdftk/bin/pdftk
/opt/pdflabs/pdftk/bin/pdftk: Mach-O executable i386
pete 289 /\ otool -L /opt/local/bin/pdftk 
/opt/local/bin/pdftk:
	/opt/local/lib/gcc45/libgcj.11.dylib (compatibility version 12.0.0, current version 12.0.0)
	/opt/local/lib/gcc45/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.14.0)
	/opt/local/lib/gcc45/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)   <====
	/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 830.0.0)       <====
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)
pete 290 /\ file /opt/local/bin/pdftk
/opt/local/bin/pdftk: Mach-O 64-bit executable x86_64

A core file (367 MB) is available…

Attachments (1)

pdftk_2013-03-09-133058_Sumac.crash (3.4 KB) - added by ballapete (Peter Dyballa) 7 years ago.
crash log

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by ballapete (Peter Dyballa)

crash log

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Cc: ryandesign@… removed
Keywords: crash core dump removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 7 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:3 Changed 6 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

comment:4 Changed 6 years ago by ryandesign (Ryan Schmidt)

Please try pdftk 2.02. If the problem persists when using the gcc45 variant, try the gcc47 variant.

comment:5 in reply to:  4 Changed 6 years ago by ballapete (Peter Dyballa)

Replying to ryandesign@…:

Please try pdftk 2.02. If the problem persists when using the gcc45 variant, try the gcc47 variant.

I used the default variant first. After building and installing GCC47 the build of pdftk stopped here:

--->  Building pdftk
DEBUG: Executing proc-pre-org.macports.build-build-0
DEBUG: Executing org.macports.build (pdftk)
DEBUG: port disallows a parallel build
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk" && /usr/bin/make -w all -f Makefile.OSX-10.6 VERSUFF=-mp-4.7'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk" && /usr/bin/make -w all -f Makefile.OSX-10.6 VERSUFF=-mp-4.7 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk'
/usr/bin/make -f Makefile -iC /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/pdftk/../java all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/java'
/opt/local/bin/gcj-mp-4.7 -Wall -fsource=1.3 -O2 --encoding=UTF-8 --classpath="/opt/local/share/java/libgcj-4.7.4.jar:/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_pdftk/pdftk/work/pdftk-2.02-dist/java:." -C pdftk/com/lowagie/text/Anchor.java
GC Warning: Out of Memory!  Returning NIL!
GC Warning: Repeated allocation of very large block (appr. size 131072000):
	May lead to memory leak and poor performance.
GC Warning: Out of Memory!  Returning NIL!

I am going to try with GCC45 – another 24 hours perhaps…

comment:6 Changed 6 years ago by ryandesign (Ryan Schmidt)

The original problem report was for OS X 10.6, but your new report above seems to be for 10.5. Which processor architecture? I was also getting out-of-memory problems on PowerPC; see comment:ticket:37580:5. I may just have to restrict this port to 10.6 and up.

comment:7 in reply to:  6 Changed 6 years ago by ballapete (Peter Dyballa)

Replying to ryandesign@…:

The original problem report was for OS X 10.6, but your new report above seems to be for 10.5. Which processor architecture?

Sorry, forgot about that! Since GCC47 and GCC45 are ready-mades for Snow Leopard, building pdftk +gcc47 and pdftk +gcc45 was fast and successful. Both variants can handle my old EPS files.

comment:8 Changed 6 months ago by ericmoret

Cc: ericmoret added
Note: See TracTickets for help on using tickets.