With gdb now, had to download and install gdb first ;)
It seems to crash on line 192 of Dictionary.cc
where tableLength = 0 .....
[msql@chaos bin]$ gdb htdig
GNU gdb 4.18
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 "hppa2.0-hp-hpux10.20"...
(gdb) run -v
Starting program: /opt/htdig/htdig32/bin/htdig -v
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /opt/langtools/lib/end.o.
warning: GDB will be unable to track shl_load/shl_unload calls
ht://dig Start Time: Thu Jan 20 17:13:20 2000
Program received signal SIGFPE, Arithmetic exception.
0x7ae54678 in () from /opt/htdig/htdig32/lib/libht-3.2.0.sl
(gdb) bt
#0 0x7ae54678 in () from /opt/htdig/htdig32/lib/libht-3.2.0.sl
#1 0x7ae5b11c in Dictionary::Add (this=0x7ad9f1e4, name=@0x7b03b0c8,
obj=0x40008aa8) at Dictionary.cc:192
#2 0x7ae55bd0 in Configuration::Add (this=0x7ad9f1e0, name=@0x7b03b0c8,
value=@0x7b03b0e8) at Configuration.cc:177
#3 0x7ae57ed4 in Configuration::Defaults (this=0x7ad9f1e0,
array=0x7ad9e310) at Configuration.cc:357
#4 0x3a9c0 in main (ac=2, av=0x7b03a470) at htdig.cc:122
(gdb) up
#1 0x7ae5b11c in Dictionary::Add (this=0x7ad9f1e4, name=@0x7b03b0c8,
obj=0x40008aa8) at Dictionary.cc:192
192 int index = hash % tableLength;
(gdb) print index
$1 = 2061738996
(gdb) print hash
$2 = 905117887
(gdb) print tableLength
$3 = 0
(gdb) up
#2 0x7ae55bd0 in Configuration::Add (this=0x7ad9f1e0, name=@0x7b03b0c8,
value=@0x7b03b0e8) at Configuration.cc:177
177 dcGlobalVars.Add(name, ps);
(gdb) print name
$4 = (String &) @0x7b03b0c8: {<Object> = {_vptr$ = 0x7ae3c300}, Length =
22, Allocated = 23,
Data = 0x40008a78 "add_anchors_to_excerpt"}
(gdb) quit
The program is running. Exit anyway? (y or n) y
[msql@chaos bin]$
On Thu, 20 Jan 2000, Budd, S wrote:
>
> I am also having a core dump with the snapshots. here is a gdb trace of the
> problem.
>
> Does it match your's?
>
>
> Here is a gdb trace
>
>
> gcc 2.95.1
> SunOS ligetti.cc.ic.ac.uk 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-5_10
> htdig-3.2.0b1-dev-011600
>
>
>
> gdb) run -v
> Starting program: /home/ppp/htdig-test/bin/htdig -v
> ht://dig Start Time: Tue Jan 18 15:59:24 2000
>
> Program received signal SIGFPE, Arithmetic exception.
> 0xff0b877c in .urem () from /usr/lib/libc.so.1
> (gdb) up
> #1 0xff1757e0 in Dictionary::Add (this=0xc306c, name=@0xffbee850,
> obj=0xc4628) at Dictionary.cc:192
> 192 int index = hash % tableLength;
>
>
> ((gdb) print index
> $1 = 0
>
> (gdb) up
> #2 0xff1740d8 in Configuration::Add (this=0xc3068, name=@0xffbee850,
> value=@0xffbee810) at Configuration.cc:177
> 177 dcGlobalVars.Add(name, ps);
> (gdb) print name
> $2 = (String &) @0xffbee850: {<Object> = {_vptr. = 0xc3138}, Length = 22,
> Allocated = 23, Data = 0xc4608 "add_anchors_to_excerpt"}
> (gdb) print ps
> $3 = 1088928942
>
>
> (gdb) up
> #3 0xff174d70 in Configuration::Defaults (this=0xc3068, array=0xc2048) at
> Configuration.cc:357
> 357 Add(array[i].name, array[i].value);
> (gdb) print i
> $4 = 0
> (gdb) print array[1].name
> $5 = 0xff23de08 "allow_in_form"
> (gdb) print array[1].value
> $6 = 0xff23de18 ""
>
>
> gdb) up
> #4 0x3bb48 in main (ac=2, av=0xffbefccc) at htdig.cc:122
> 122 config.Defaults(&defaults[0]);
> (gdb) print &defaluts[0]
> No symbol "defaluts" in current context.
> (gdb) print &defaults[0]
> $7 = (ConfigDefaults *) 0xc2048
>
>
> (gdb) up
> Initial frame selected; you cannot go up.
>
>
>
> > -----Original Message-----
> > From: J. op den Brouw [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, January 20, 2000 7:20 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [htdig3-dev] Updated Status
> >
> > On Wed, 19 Jan 2000, Geoff Hutchison wrote:
> >
> > >
> > > I just disocvered the root of all my compilation problems over the last
> > > few days--I had a bad SIMM. After that, I can finally get things to
> > > compile and I committed a quick cleanup of Retriever.
> >
> > Outchhhhh! This is tricky. By the way, Linux has a nice way of
> > showing to to the user as when there is a parity errror.........
> >
> > > Finally, I'm setting a tentative release date for 3.2.0b: 2 Feb 2000. I
> > > don't think there are many difficult bugs to clean up and I'd like to
> > see
> > > some concrete testing.
> >
> > I still have major problems getting it to work on a HP-UX 10.20 box.
> > Compiles ok, then htdig et al. crashes with a floating point error.
> > Will try to debug later. Too busy now.....
> >
> >
> > --jesse
> > --------------------------------------------------------------------
> > J. op den Brouw Johanna Westerdijkplein 75
> > Haagse Hogeschool 2521 EN DEN HAAG
> > Sector Techniek Netherlands
> > Afdeling Elektrotechniek +31 70 4458936
> > -------------------- [EMAIL PROTECTED] --------------------
> >
> > Linux - because reboots are for hardware changes
> >
> >
> > ------------------------------------
> > To unsubscribe from the htdig3-dev mailing list, send a message to
> > [EMAIL PROTECTED]
> > You will receive a message to confirm this.
> >
>
--jesse
--------------------------------------------------------------------
J. op den Brouw Johanna Westerdijkplein 75
Haagse Hogeschool 2521 EN DEN HAAG
Sector Techniek Netherlands
Afdeling Elektrotechniek +31 70 4458936
-------------------- [EMAIL PROTECTED] --------------------
Linux - because reboots are for hardware changes
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED]
You will receive a message to confirm this.