First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 9077
Product:  
Component:  
Status: RESOLVED
Resolution: INVALID
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: 172031@bugs.debian.org
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
make-libnbio.sh Shell script used to build NBIO packages. text/plain 2003-11-02 00:13 1.31 KB Edit
testcase.tar.gz Tarball of a smaller test case that reproduces the problem. application/x-tar 2003-11-02 23:45 3.55 KB Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 9077 depends on: Show dependency tree
Show dependency graph
Bug 9077 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2002-12-28 03:06
[ Reported to the Debian BTS as report #172031.
  Please CC 172031@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/172031 ]
	

[ Bug submitter did pass the information in this bug report off to Tom Tromey]

Package: gij-3.2
Version: 1:3.2.2-0pre0
Severity: normal
Tags: sid

In converting the libnbio2-java package to build with all free tools, I
have discovered that gij is not able to run some programs that are part
of the NBIO test suite, although other interepreters such as Kaffe can.

There was a long discussion in debian-java on the general subject of
converting NBIO, starting here:

   http://lists.debian.org/debian-java/2002/debian-java-200211/msg00038.html

A discussion of the problems I had with gij starts near here:

   http://lists.debian.org/debian-java/2002/debian-java-200211/msg00047.html

At the time of this conversation, I passed the information in this bug
report off to Tom Tromey because he asked for it; I decided it would be
worthwhile to file a bug, as well.

The bug can be reproduced by first installing the libnbio2-java
package, version 2.0-5, and then building and running part of the NBIO
test suite based on the installed NBIO jarfile.  The attached file
'script-gij' provides a recipe to reproduce the problem, assuming that
the libnio2-java package is already installed.  (I hope the attachment
is OK; reportbug hosed it previously, and this time I attached it 
directly from mutt.)

Version 2.0-5 of libnbio2-java may or may not be in the archive when you
get this report, since my sponsor may not have had a chance to upload
it yet.  If you don't want to wait for it to appear the archive before
researching this bug, you can get it using this apt data source:

   # Cedar Solutions updates
   deb ftp://cedar-solutions.com/debian unstable main
   deb-src ftp://cedar-solutions.com/debian unstable main

or you can just grab it directly via FTP:

   ftp://cedar-solutions.com/debian/java/libnbio2-java/

Please let me know if there is any other information I can get you.
I'd be happy to help in any way that I can.

KEN

Release:
3.2.2 CVS 20021212 (Debian) (Debian unstable)

Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
host: i386-linux
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.2 20021212 (Debian prerelease)

------- Comment #1 From Andrew Pinski 2003-07-21 18:00 -------
No there is no way to confirm this any more because NBIO does not compile any
more 
with the current compiler, can you try it and tell how to download NBIO and
compile it?

------- Comment #2 From Andrew Pinski 2003-10-06 19:54 -------
No feedback in 3 months (T-15 days and nio have been merged into libjava
already).

------- Comment #3 From Kenneth J. Pronovici 2003-11-02 00:13 -------
Created an attachment (id=5038) [edit]
Shell script used to build NBIO packages.

This is a shell script used by the Debian nbio package to build a binary NBIO
.jar file.

------- Comment #4 From Kenneth J. Pronovici 2003-11-02 00:17 -------
I apologize that no one ever responded to your July and early October emails. 
I
did not realize that the Debian GCC maintainers were expecting me to keep on
top
of this bug.  I will manage it myself now.

Answers to your questions:

As far as I can tell, NBIO does seem to compile with the latest gcj, at least
the version in Debian unstable (3.3.2).  I was just now able to build the
libnbio2-java package on my Debian unstable box, and it is up-to-date on all
Debian architectures other than mips, mipsel and hppa (which do not yet have
the
correct version of gcj).  

The test case referenced along with the Debian bug report still fails in
roughly
the same way that it did in December 2002, although the resulting stack trace
differs.

The upstream NBIO release can be downloaded from 

   http://sourceforge.net/projects/seda

Or, if you prefer, you can get the Debian source package off one of the Debian
mirrors or from my personal APT repository:

   http://cedar-solutions.com/ftp/

The Debian pacakge uses a custom shell script to build the package, since it's
rather difficult to update the NBIO Makefiles in place.  I have attached that
shell script.  

I don't think it matters that NIO has now been rolled into libjava, since NBIO
and NIO are not quite the same thing, and there are certainly users who will
continue to use NIO (especially Java 1.3 users).

What other information can I get for you?

------- Comment #5 From Kenneth J. Pronovici 2003-11-02 23:43 -------
After talking with the Debian maintainer, I have come up with a smaller test
case that I hope will be easier to use.  The test case is attached as
testcase.tar.gz, which I'll attach after I add this comment.  The .tar.gz file
contains a README file explaining what's in the resulting directory.  Basically,
I've stripped down the NBIO source code to two classes and a JNI function which
reproduces the behavior.  I don't know a lot about JNI, so I can't claim that
the code is correct, only that it compiles and that the Kaffe and Blackdown JVMs
can run it with no problems.  The problem appears to be with the definition of
the java.net.DatagramPacket object.

------- Comment #6 From Kenneth J. Pronovici 2003-11-02 23:45 -------
Created an attachment (id=5043) [edit]
Tarball of a smaller test case that reproduces the problem.

See the README inside the resultant directory for more details.

------- Comment #7 From Andrew Pinski 2003-11-02 23:46 -------
Reopening based on the new testcase.

------- Comment #8 From Andrew Pinski 2003-11-03 02:34 -------
Not a bug as the buf field of DatagramPacket is private so you should not be
able to use 
it any way.
It just happens that ClassPath uses buffer as the name for the field rather
than the same 
name as all the other JDK's but that is not a bug so closing as invalid.

First Last Prev Next    No search results available      Search page      Enter new bug