[Bug 779908] Re: pdftk fails with "output" option
Johann Felix Soden
johfel at gmx.de
Sun May 29 11:13:11 UTC 2011
It seems that the gcj-4.5 java library is initialized before pdftk can
set LANG=C. So only setting LANG=C in the environment before starting
the pdftk seems to work. However, with gcj-4.6 (Debian sid) the
workaround seems to work again.
The error in the gcj java runtime library can be easily reproduced by
the attached small java program.
It seems that all month abbreviation for LANG=de_DE are empty and it
crashes for LANG=de_AT between April and December which is clearly a bug
in gcj.
$ gcj -C TestDateFormat.java
$ LANG=de_DE gij TestDateFormat
So. 29 12:57:20 MESZ 2011
=> empty Month abbreviation
$ LANG=de_AT gij TestDateFormat
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4
at java.text.SimpleDateFormat.formatWithAttribute(SimpleDateFormat.java:793)
at java.text.SimpleDateFormat.format(SimpleDateFormat.java:845)
at java.text.DateFormat.format(DateFormat.java:419)
at TestDateFormat.main(TestDateFormat.java:12)
=> crash
$ LANG=de_AT faketime "2010-3-1" gij TestDateFormat
Mo. M�r 01 00:00:00 GMT+01:00 2010
=> between January and March it "works", but with wrong encoding
$ LANG=C gij TestDateFormat
Sun May 29 12:54:42 GMT+02:00 2011
=> works anytime
** Attachment added: "Java test program to reproduce the bug in gcj java runtime library"
https://bugs.launchpad.net/ubuntu/+source/pdftk/+bug/779908/+attachment/2146700/+files/TestDateFormat.java
** Changed in: pdftk (Ubuntu)
Status: Incomplete => Confirmed
** Also affects: gcj-4.5 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcj-4.5 in Ubuntu.
https://bugs.launchpad.net/bugs/779908
Title:
pdftk fails with "output" option
Status in “gcj-4.5” package in Ubuntu:
New
Status in “pdftk” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: pdftk
When invoking pdftk with `pdftk a.pdf output /tmp/b.pdf` (I also tried
`pdftk a.pdf cat output /tmp/b.pdf`), pdftk fails with the following
messages:
Unhandled Java Exception:
Unhandled Java Exception:
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.11)
at java.lang.VMThrowable.getStackTrace(libgcj.so.11)
at java.lang.Throwable.getStackTrace(libgcj.so.11)
at java.lang.Throwable.stackTraceString(libgcj.so.11)
at java.lang.Throwable.printStackTrace(libgcj.so.11)
at java.lang.Throwable.printStackTrace(libgcj.so.11)
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pdftk 1.44-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
Architecture: i386
Date: Mon May 9 14:51:36 2011
ProcEnviron:
LANGUAGE=de_DE:en
PATH=(custom, user)
LANG=de_AT.utf8
LC_MESSAGES=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: pdftk
UpgradeStatus: Upgraded to natty on 2011-04-28 (11 days ago)
More information about the foundations-bugs
mailing list