Subject: Re: linux compatibility jdb oddity.
To: Mark Davies <firstname.lastname@example.org>
From: Jaromir Dolecek <email@example.com>
Date: 05/15/2002 14:26:42
Would it be possible to ktrace jdb and find out what exactly jdb
is trying to do and which particular system call fails?
Mark Davies wrote:
> I've just upgraded to a current 1.5ZC (from a couple of days ago) from a 1.5ZA
> from early march on i386 and am now seeing problems with jdb from the
> sun-jdk-18.104.22.168.1 package.
> With the 1.5ZA system running jdb with no arguments produces:
> Initializing jdb...
> and waits for input from the terminal as you would expect. With 1.5ZC I get:
> Initializing jdb...
> > Internal exception: java.io.IOException: Invalid argument
> at java.io.FileInputStream.available(Native Method)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:282)
> at java.io.FilterInputStream.read(FilterInputStream.java:93)
> at java.io.InputStreamReader.fill(InputStreamReader.java:173)
> at java.io.InputStreamReader.read(InputStreamReader.java:249)
> at java.io.BufferedReader.fill(BufferedReader.java:139)
> at java.io.BufferedReader.readLine(BufferedReader.java:299)
> at java.io.BufferedReader.readLine(BufferedReader.java:362)
> at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:611)
> at com.sun.tools.example.debug.tty.TTY.main(TTY.java:924)
> In both cases this with the sun-jdk-22.214.171.124.1 and suse 6.4 packages and with
> /emul/linux/dev/dsp symlinked to /dev/sound. Why mention the last bit?
> Here is the really odd bit - If you have some other process (such as artsd)
> open /dev/sound so that jdb *fails* to open /emul/linux/dev/dsp then jdb works
> (doesn't get the io exception) in the 1.5ZC case.
> I believe there are other java oddities happening but the above is easily
> I've updated the 1.5ZC kernel to include the linux compatibility changes from
> the last couple of days and it makes no difference to the above.
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-