GIJ mystery
Patryk Zawadzki
patrys at pld-linux.org
Mon May 22 03:10:42 CEST 2006
Dnia 21-05-2006, nie o godzinie 15:19 +0000, Jacek Konieczny napisał(a):
> [root at nic ~]# antlr
> Abort
> [root at nic ~]# chroot /vol/chroot_ac_i686/
> [root at nic(ac-i686) /]# antlr
> ANTLR Parser Generator Version 2.7.5 (20060521) 1989-2005 jGuru.com
> usage: java antlr.Tool [args] file.g
> -o outputDir specify output directory where all output
> generated.
> -glib superGrammar specify location of supergrammar file.
> -debug launch the ParseView debugger upon parser
> invocation.
> -html generate a html file from your grammar.
> -docbook generate a docbook sgml file from your grammar.
> -diagnostic generate a textfile with diagnostics.
> -trace have all rules call traceIn/traceOut.
> -traceLexer have lexer rules call traceIn/traceOut.
> -traceParser have parser rules call traceIn/traceOut.
> -traceTreeParser have tree parser rules call traceIn/traceOut.
> -h|-help|--help this message
> [root at nic(ac-i686) /]# su -
> su(pam_unix)[15172]: session opened for user root by (uid=0)
> [root at nic(ac-i686) ~]# antlr
> Abort
> [root at nic(ac-i686) /]# su - jacek
> [jacek at nic(ac-i686) ~]$ antlr
> Abort
>
> "antlr" is script doing: CLASSPATH=/usr/share/java/antlr-2.7.5.jar /usr/bin/gij antlr.Tool
>
> And it works only just after entering the chroot. After "su -" (to root or
> anything else) it crashes.
My wild guess - like most Java apps it dies upon encountering a nonempty
PS1 environment variable?
--
Patryk Zawadzki <patrys at pld-linux.org>
PLD Linux
More information about the pld-devel-en
mailing list