[MacPorts] #35214: PDFtk fails for "cat output"
#35214: PDFtk fails for "cat output" --------------------------------------+------------------------------------- Reporter: ineiti@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: --------------------------------------+------------------------------------- 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) -- Ticket URL: <https://trac.macports.org/ticket/35214> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35214: PDFtk fails for "cat output" --------------------------------------+------------------------------------- Reporter: ineiti@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: pdftk --------------------------------------+------------------------------------- Changes (by ryandesign@…): * cc: ineiti@… (removed) * priority: High => Normal * port: => pdftk Old description:
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)
New description: 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) }}} -- Comment: Sorry, I don't know what to do about this. Please try contacting the developer of pdftk. -- Ticket URL: <https://trac.macports.org/ticket/35214#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35214: PDFtk fails for "cat output" --------------------------------------+------------------------------------- Reporter: ineiti@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: pdftk --------------------------------------+------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… -- Ticket URL: <https://trac.macports.org/ticket/35214#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35214: PDFtk fails for "cat output" --------------------------------------+------------------------------------- Reporter: ineiti@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: pdftk --------------------------------------+------------------------------------- Comment(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? -- Ticket URL: <https://trac.macports.org/ticket/35214#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35214: PDFtk fails for "cat output" --------------------------------------+------------------------------------- Reporter: ineiti@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: pdftk --------------------------------------+------------------------------------- Comment(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 -- Ticket URL: <https://trac.macports.org/ticket/35214#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35214: PDFtk fails for "cat output" --------------------------------------+------------------------------------- Reporter: ineiti@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: | Port: pdftk --------------------------------------+------------------------------------- Comment(by cal@…): Shouldn't the gcc45 variant be removed if it's known to cause problems? -- Ticket URL: <https://trac.macports.org/ticket/35214#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35214: PDFtk fails for "cat output" ---------------------------------------+------------------------------------ Reporter: ineiti@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: Port: pdftk | ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * cc: cal@… (added) * status: new => closed * resolution: => fixed Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/35214#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts