On Fri, 24 Aug 2001, Geoff Hutchison wrote:

> Date: Fri, 24 Aug 2001 20:16:41 -0500
> From: Geoff Hutchison <[EMAIL PROTECTED]>
> To: Gilles Detillieux <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [htdig-dev] Segmentation fault on BSDi-4.2 (3.2.0b4-072901)
> 
> At 9:39 AM -0500 8/24/01, Gilles Detillieux wrote:
> >Well then you should try my second suggestion in my first reply
> >to you yesterday, i.e. to restore htcommon/conf_parser.cxx from the
> >distribution's tar archive, then "touch" it so it won't be regenerated.
> 
> No, Joe was claiming he did that too and it seemed to be regenerated. 
> (Which I don't understand either.)

It only seemed to be regenerated, but it was not; however, the results
in the gdb were identical:
-------------------------------8<--------------------------------------
$ ll htcommon/conf_parser.*
-rwxr-xr--  1 jjah  wheel   31289 Aug 19 00:13 htcommon/conf_parser.cxx
-rwxr-xr--  1 jjah  wheel     311 Mar  4 00:13 htcommon/conf_parser.h
-rwxr-xr--  1 jjah  wheel    6179 May 20 00:13 htcommon/conf_parser.yxx
$ touch htcommon/conf_parser.cxx
$ ll htcommon/conf_parser.*
-rwxr-xr--  1 jjah  wheel   31289 Aug 24 20:44 htcommon/conf_parser.cxx
-rwxr-xr--  1 jjah  wheel     311 Mar  4 00:13 htcommon/conf_parser.h
-rwxr-xr--  1 jjah  wheel    6179 May 20 00:13 htcommon/conf_parser.yxx
$ gnake
$ gnake install
$ rundig.sh
$ gdb htdig htdig.core
GNU gdb
This GDB was configured as "i386-unknown-bsdi4.2"...
Core was generated by `htdig'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libz.so...done.
Reading symbols from /usr/lib/libstdc++.so.1...done.
Reading symbols from /shlib/libm.so.0.0...done.
Reading symbols from /shlib/libgcc.so.1...done.
Reading symbols from /shlib/libc.so.2...done.
Reading symbols from /shlib/ld-bsdi.so...done.
#0  0x202d6d7f in __bb_init_func () from /shlib/libgcc.so.1
(gdb) bt
#0  0x202d6d7f in __bb_init_func () from /shlib/libgcc.so.1
#1  0x8084e59 in yyparse (aConf=0x8479000) at conf_parser.cxx:439
#2  0x80821d5 in HtConfiguration::Read (this=0x8479000, filename=@0x826b624) at 
HtConfiguration.cc:246
#3  0x8064d8d in main (ac=5, av=0x8047c70) at htdig.cc:132
#4  0x8052300 in __start ()
(gdb) q
...
$ rm htcommon/conf_parser.cxx
$ ll htcommon/conf_parser.*
-rwxr-xr--  1 jjah  wheel     311 Mar  4 00:13 htcommon/conf_parser.h
-rw-r--r--  1 jjah  wheel      10 Aug 24 20:47 htcommon/conf_parser.lo
-rw-r--r--  1 jjah  wheel   45080 Aug 24 20:47 htcommon/conf_parser.o
-rwxr-xr--  1 jjah  wheel    6179 May 20 00:13 htcommon/conf_parser.yxx
$ gmake
...
$ ll htcommon/conf_parser.*
-rw-r--r--  1 jjah  wheel   31255 Aug 24 20:53 htcommon/conf_parser.cxx
-rwxr-xr--  1 jjah  wheel     311 Mar  4 00:13 htcommon/conf_parser.h
-rw-r--r--  1 jjah  wheel      10 Aug 24 20:53 htcommon/conf_parser.lo
-rw-r--r--  1 jjah  wheel   45080 Aug 24 20:53 htcommon/conf_parser.o
-rwxr-xr--  1 jjah  wheel    6179 May 20 00:13 htcommon/conf_parser.yxx
$ gnake
$ gnake install
$ rundig.sh
$ gdb htdig htdig.core
GNU gdb
This GDB was configured as "i386-unknown-bsdi4.2"...
Core was generated by `htdig'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libz.so...done.
Reading symbols from /usr/lib/libstdc++.so.1...done.
Reading symbols from /shlib/libm.so.0.0...done.
Reading symbols from /shlib/libgcc.so.1...done.
Reading symbols from /shlib/libc.so.2...done.
Reading symbols from /shlib/ld-bsdi.so...done.
#0  0x202d6d7f in __bb_init_func () from /shlib/libgcc.so.1
(gdb) bt
#0  0x202d6d7f in __bb_init_func () from /shlib/libgcc.so.1
#1  0x8084e59 in yyparse (aConf=0x8479000) at conf_parser.cxx:439
#2  0x80821d5 in HtConfiguration::Read (this=0x8479000, filename=@0x826b624) at 
HtConfiguration.cc:246
#3  0x8064d8d in main (ac=5, av=0x8047c70) at htdig.cc:132
#4  0x8052300 in __start ()
(gdb) q
-------------------------------8<--------------------------------------

> >the .yxx file, the make has no business regenerating the .cxx file.
> 
> Yes, and it appears that we need to write a short script to make sure 
> all the auto-generated files are properly dated and the permissions 
> are set right. If I look through the automake manual, there may even 
> be a way to do this from the "make dist" target.

Evidently that is not necessary, but the conf_parser.cxx does not seem to
work either way, if it really is the culprit.

Regards,

Joe
-- 
     _/   _/_/_/       _/              ____________    __o
     _/   _/   _/      _/         ______________     _-\<,_
 _/  _/   _/_/_/   _/  _/                     ......(_)/ (_)
  _/_/ oe _/   _/.  _/_/ ah        [EMAIL PROTECTED]


_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to