Hi,
you seem to be using the getline backing library. It is an open problem that
this lib segfaults, but I still have no idea why. Under RedHat, I recommend
to use the readline backing-library.
Bernhard
> [user@host libreadline-java-0.8.0]$ LD_LIBRARY_PATH=`pwd` java -jar \
> libreadline-java.jar
>
> When I press F1 the program segfaults (also F2 F3 and F4).
>
> (F1 = ^[OP)
>
> F5 prints: ~
> F6 prints: ~
> F7 prints: Function key F7
> F8 prints: Function key F8
> F9-F12 prints: ~
>
> Redhat Linux 9, jdk 1.4.2 and jdk 1.5.0
> Terminal: xterm (running under Gnome)
>
> initializing Readline...
> ... done
> linux> An irrecoverable stack overflow has occurred.
>
> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : 11 occurred at PC=0x4CE11793
> Function=_rl_dispatch_subseq+0x3
> Library=/usr/lib/libreadline.so.4
>
> Current Java thread:
> at org.gnu.readline.Readline.readlineImpl(Native Method)
> at org.gnu.readline.Readline.readline(Readline.java:215)
> at org.gnu.readline.Readline.readline(Readline.java:191)
> at test.ReadlineTest.main(ReadlineTest.java:108)
>
> The error seems to be triggered in function getline (getline.c)
> I don't know enough C to investigate further.
>
> --
> Trond Aasan
> <http://www.aasan.org/>
>
> In my wee world Bill Gates cheats at cards, steals candy from children and
> pees on the toilet seat.
|