Ticket #35214 (closed defect: fixed)
PDFtk fails for "cat output"
| Reported by: | ineiti@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.1.1 |
| Keywords: | Cc: | cal@… | |
| Port: | pdftk |
Description (last modified by ryandesign@…) (diff)
On MacOSX 10.7.4, ports 2.1.1, when I try to do
pdftk test_in.pdf cat output test_out.pdf
on the attached file, it aborts with "Trap 6". On other pdf-files I get other errors:
Unhandled Java Exception: java.lang.NullPointerException at java.lang.Class.isAssignableFrom(libgcj.11.dylib) at java.lang.System.arraycopy(libgcj.11.dylib) at java.util.ArrayList.toArray(libgcj.11.dylib) at java.util.regex.Pattern.split(libgcj.11.dylib) at java.lang.String.split(libgcj.11.dylib) at java.text.DateFormatSymbols.getZoneStrings(libgcj.11.dylib) at java.text.DateFormatSymbols.<init>(libgcj.11.dylib) at java.text.SimpleDateFormat.<init>(libgcj.11.dylib) at java.text.SimpleDateFormat.<init>(libgcj.11.dylib) at com.lowagie.text.Document.addCreationDate(pdftk) at com.lowagie.text.pdf.PdfDocument.<init>(pdftk) at com.lowagie.text.pdf.PdfCopy.<init>(pdftk)
or
Unhandled Java Exception: java.lang.NullPointerException at java.text.DateFormatSymbols.getZoneStrings(libgcj.11.dylib) at java.text.DateFormatSymbols.<init>(libgcj.11.dylib) at java.text.SimpleDateFormat.<init>(libgcj.11.dylib) at java.text.SimpleDateFormat.<init>(libgcj.11.dylib) at com.lowagie.text.Document.addCreationDate(pdftk) at com.lowagie.text.pdf.PdfDocument.<init>(pdftk) at com.lowagie.text.pdf.PdfCopy.<init>(pdftk)
Attachments
Change History
Changed 10 months ago by ineiti@…
- Attachment test_in.pdf added
comment:2 Changed 10 months ago by ryandesign@…
- Cc ineiti@… removed
- Priority changed from High to Normal
- Description modified (diff)
- Port set to pdftk
Sorry, I don't know what to do about this. Please try contacting the developer of pdftk.
comment:3 Changed 10 months ago by ryandesign@…
- Owner changed from macports-tickets@… to ryandesign@…
comment:4 Changed 10 months ago by ryandesign@…
I can reproduce this crash on Mountain Lion if the port is built with the gcc45 variant. I just added a gcc47 variant in r96335 and I can no longer reproduce the crash with that. Does that fix the problem for you as well?
comment:5 Changed 9 months ago by ineiti@…
Great! Thank you very much. A
sudo port selfupdate sudo port upgrade outdated
later, it works like a charm. Upstream will be pleased!
Linus
comment:6 Changed 9 months ago by cal@…
Shouldn't the gcc45 variant be removed if it's known to cause problems?
comment:7 Changed 9 months ago by ryandesign@…
- Cc cal@… added
- Status changed from new to closed
- Resolution set to fixed
Right, you asked that in #35553 too and I forgot to answer. The problem is that PDFTK's build has been very finicky, and so has GCC's, such that it seemed to me the different versions of GCC were required to build PDFTK successfully on different versions of OS X. Certainly, my recollection is that the gcc45 variant worked correctly on Snow Leopard at the time, and the gcc42 variant worked correctly on Tiger. It might be that by now gcc47 correctly builds PDFTK on all versions of OS X. If so I could remove all variants except gcc47, but I still need to test this. For now I'll call this fixed.


Input-pdf file that fails