Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Java (http://www.linux-archive.org/debian-java/)
-   -   Help needed: Bug#625562: figtree: fails to start (http://www.linux-archive.org/debian-java/522154-help-needed-bug-625562-figtree-fails-start.html)

Andreas Tille 05-04-2011 03:36 PM

Help needed: Bug#625562: figtree: fails to start
 
Hi,

I have no idea how to track down this problem because I can not reproduce
it. Does it sound somehow familiar for a known problem?

Thanks for any hint

Andreas.

----- Forwarded message from Carlos Reding <jambhala@gmx.com> -----

X-Debian-PR-Message: followup 625562
X-Debian-PR-Package: figtree
X-Debian-PR-Keywords: upstream
X-Debian-PR-Source: figtree
From: Carlos Reding <jambhala@gmx.com>
To: Andreas Tille <tille@debian.org>
Date: Wed, 04 May 2011 17:29:02 +0200
Cc: 625562@bugs.debian.org
Subject: Bug#625562: figtree: fails to start

Hi,

there you have the english output, I set locale to en_US.utf-8:

pvt_pyle@usarmy:~/Desktop$ figtree
/usr/bin/figtree: line 1: PK: command not found
/usr/bin/figtree: line 2:�: command not found
/usr/bin/figtree: line 2: META-INF/��PK: No such file or directory
/usr/bin/figtree: line 3:�: command not found
/usr/bin/figtree: line 3:figtree/PK: No such file or directory
/usr/bin/figtree: line 4:�: command not found
/usr/bin/figtree: line 4: figtree/applet/PK: No such file or directory
/usr/bin/figtree: line 5: syntax error near unexpected token `)'
/usr/bin/figtree: line 5:�;ɻ�.q�$figtree/applet/FigTreeApplet
$1.class�T�NA=ӯ����l�j)�m�
s��X�b7W��-i�=���;�+�{'��v�ݖ�6���" �����w����f��q�̹sϝ�_ ����8¸�B

Ask for more data if you need so.


Best regards,
Carlos

On Wed, 2011-05-04 at 14:26 +0200, Andreas Tille wrote:
> Hi,
>
> thanks for the bug report.
>
> On Wed, May 04, 2011 at 01:19:51PM +0200, Pvt. Pyle wrote:
> > Output (translation in parentheses):
>
> Can you perhaps try to creat this with LANG/LANGUAGE/LC_ALL unset
> to get English output?
>
> > pvt_pyle@usarmy:~$ figtree
> > /usr/bin/figtree: l*nea 1: PK: no se encontró la orden (line 1: PK-whatever
> > : command not found)
> > /usr/bin/figtree: l*nea 2:�: no se encontró la orden (line 2: whatever:
> > command not found)
> > /usr/bin/figtree: l*nea 2: META-INF/��PK: No existe el fichero o el
> > directorio (line 2: META-INF/PK-whatever: file or folder don't exist)
> > /usr/bin/figtree: l*nea 3:�: no se encontró la orden (line 3: command not
> > found)
> > /usr/bin/figtree: l*nea 3:figtree/PK: No existe el fichero o el directorio
> > (line 3: figtree/PK: file or folder don't exist)
> > /usr/bin/figtree: l*nea 4:�: no se encontró la orden (line 4: command not
> > found)
> > /usr/bin/figtree: l*nea 4: figtree/applet/PK: No existe el fichero o el
> > directorio (line 4: figtree/applet/PK: file or folder don't exist)
> > /usr/bin/figtree: l*nea 5: error sintáctico cerca del elemento inesperado `)'
> > (line 5: syntax error near element `)' )
> > /usr/bin/figtree: l*nea
> > 5:�;ɻ�.q�$figtree/applet/FigTreeApplet$1.class�T�NA=ӯ����l �j)�m�
> > s��X�b7W��-i�=���;�+�{'v��v�ݖ�6��� "�����w����f��q�̹sϝ�_ �����8¸�B
> > (line 5: whatever$/figtree/applet/FigTreeApplet$1.class-whatever)
>
> Kind regards
>
> Andreas.
>





_______________________________________________
Debian-med-packaging mailing list
Debian-med-packaging@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-med-packaging
----- End forwarded message -----

--
http://fam-tille.de


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110504153619.GC8373@an3as.eu">http://lists.debian.org/20110504153619.GC8373@an3as.eu

Russ Allbery 05-04-2011 07:17 PM

Help needed: Bug#625562: figtree: fails to start
 
Andreas Tille <andreas@an3as.eu> writes:

> I have no idea how to track down this problem because I can not reproduce
> it. Does it sound somehow familiar for a known problem?

/usr/bin/figtree is a symlink to an executable JAR file. I believe in
order for executable JAR files to be passed to Java properly, the user has
to be running binfmt_misc (the Linux kernel extension that makes this
work). Without that, the kernel will pass the executable to the shell,
which will then explode with the error messages you show.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87oc3igtr0.fsf@windlord.stanford.edu">http://lists.debian.org/87oc3igtr0.fsf@windlord.stanford.edu

Andreas Tille 05-04-2011 07:45 PM

Help needed: Bug#625562: figtree: fails to start
 
On Wed, May 04, 2011 at 12:17:55PM -0700, Russ Allbery wrote:
> /usr/bin/figtree is a symlink to an executable JAR file.

Yes, this is what I have seen in other packages and what seemed to me
some suggested way to go.

> I believe in
> order for executable JAR files to be passed to Java properly, the user has
> to be running binfmt_misc (the Linux kernel extension that makes this
> work). Without that, the kernel will pass the executable to the shell,
> which will then explode with the error messages you show.

Sounds like a perfectly reasonable explanation for the observed effect.

So what is the proper / suggested fix? I see two options:

1. Use a shell wrapper instead.
2. Enforce binfmt_misc somehow (if yes - how?)

I wonder how other packages which are using the same technique are solving
this problem.

Thanks for the hint in any case

Andreas.

--
http://fam-tille.de


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110504194557.GC22057@an3as.eu">http://lists.debian.org/20110504194557.GC22057@an3as.eu

Russ Allbery 05-04-2011 09:47 PM

Help needed: Bug#625562: figtree: fails to start
 
Andreas Tille <andreas@an3as.eu> writes:

> So what is the proper / suggested fix? I see two options:

> 1. Use a shell wrapper instead.
> 2. Enforce binfmt_misc somehow (if yes - how?)

> I wonder how other packages which are using the same technique are solving
> this problem.

I'm pretty sure that we enable binfmt_misc by default, and it would be
nice to avoid having to write simple shell wrappers for every Java
application. But I'm not sure how to detect whether binfmt_misc is set up
to warn the user or to enable it or whatnot. For that, I'd have to defer
to other folks here, who hopefully know more about the setup and history.

Note that it's going to be hard to ensure that it's enabled on any system,
since users may be building their own kernels without including that
support.

--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 871v0egmtm.fsf@windlord.stanford.edu">http://lists.debian.org/871v0egmtm.fsf@windlord.stanford.edu


All times are GMT. The time now is 12:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.