Trying to compile iHash hasher.

Denis Pershin dyp@inetlab.com
Sun May 23 02:03:00 GMT 1999


Hello,

I have tried to compile iHash hasher.
This is freely available java class hash software.
It has successully compiled but when it runned it crashed.
Here is the backtrace.
URL: ftp://ftp.inetlab.com/pub/ihash/ihash.zip (hashed classes)

bash-2.03$ gdb ./ih
GNU gdb 4.17.0.4 with Linux/x86 hardware watchpoint and FPU support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i586-ksi-linux-gnu"...
(gdb) set args ilab.hash.Main
(gdb) run
Starting program: /home/dyp/src/java/ihash/./ih ilab.hash.Main
iHash version 1.0.1 alpha. iNetLab class hasher, April 1999

Program received signal SIGSEGV, Segmentation fault.
0x807976a in java.lang.String.length (this=null)
    at ../../../libgcj/libjava/java/lang/String.java:127
127         return count;
Current language:  auto; currently java
(gdb) bt
#0  0x807976a in java.lang.String.length (this=null)
    at ../../../libgcj/libjava/java/lang/String.java:127
#1  0x8081b05 in java.util.StringTokenizer.StringTokenizer (this=@8133b40,
    str=null, delims=@8136840, retDelim=false)
    at ../../../libgcj/libjava/java/util/StringTokenizer.java:57
#2  0x8081aa1 in java.util.StringTokenizer.StringTokenizer (this=@8133b40,
    str=null, delims=@8136840)
    at ../../../libgcj/libjava/java/util/StringTokenizer.java:45
#3  0x8056639 in __1cPQ34java4lang6String ()
#4  0x8068513 in main__Q34ilab4hash4MainPt6JArray1ZPQ34java4lang6String ()
#5  0x8087033 in java::lang::FirstThread::run (this=@8138f00)
    at ../../../libgcj/libjava/java/lang/natFirstThread.cc:55
#6  0x807b937 in java.lang.Thread.run_ (this=@8138f00)
    at ../../../libgcj/libjava/java/lang/Thread.java:119
#7  0x808ab8e in java::lang::Thread::run__ (obj=@8138f00)
    at ../../../libgcj/libjava/java/lang/natThread.cc:257
#8  0x8090583 in _Jv_ThreadStart (thread=@8138f00,
    meth=0x808ab7c <java::lang::Thread::run__(java::lang::Object *)>)
    at ../../../libgcj/libjava/no-threads.cc:25
#9  0x808abef in java::lang::Thread::start (this=@8138f00)
    at ../../../libgcj/libjava/java/lang/natThread.cc:270
#10 0x8071c6b in JvRunMain (klass=@80e5fc0, argc=2, argv=@bffffc44)
    at ../../../libgcj/libjava/prims.cc:589
---Type <return> to continue, or q <return> to quit---
#11 0x806f317 in main (argc=2, argv=@bffffc44)
(gdb)
(gdb) The program is running.  Exit anyway? (y or n) y

--
Sincerely Yours,
Denis Y. Pershin

----------------------------------
E-Mail: dyp@inetlab.com
HomePage: http://www.software.ru/dyp/
FidoNet: 2:5000/120.5
----------------------------------


More information about the Java mailing list