[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Fastri-server problem?

Peña, Botp

2/3/2007 2:05:00 AM

fwiw, mine here is:

C:\family\ruby>fastri-server -b
Indexing RI docs for ZenTest version 3.4.3.
Indexing RI docs for actionmailer version 1.3.1.
<snip>...
Indexing RI docs for win32-sound version 0.4.0.
Indexing RI docs for win32console-1.0.8-i386 version mswin32.
Indexing RI docs for windows-pr version 0.6.2.
Building index.
Indexed:
* 10240 methods
* 2046 classes/modules
Needed 3.984 seconds

ok, i think that's success alright.
Now,

C:\family\ruby>fastri-server -B
Indexing RI docs for ZenTest version 3.4.3.
<snip>....
Indexing RI docs for win32-sound version 0.4.0.
Indexing RI docs for win32console-1.0.8-i386 version mswin32.
Indexing RI docs for windows-pr version 0.6.2.
c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:70:
C:\family\ruby>

is that a success or what?
i think the full rebuild is buggy, how can we debug it using just ruby?

kind regards -botp

3 Answers

Mauricio Fernández

2/3/2007 11:53:00 AM

0

On Sat, Feb 03, 2007 at 11:05:21AM +0900, Peña, Botp wrote:
> fwiw, mine here is:
>
> C:\family\ruby>fastri-server -b
[...]
> Indexed:
> * 10240 methods
> * 2046 classes/modules
> Needed 3.984 seconds
>
> ok, i think that's success alright.
> Now,
>
> C:\family\ruby>fastri-server -B
> Indexing RI docs for ZenTest version 3.4.3.
> <snip>....
> Indexing RI docs for win32-sound version 0.4.0.
> Indexing RI docs for win32console-1.0.8-i386 version mswin32.
> Indexing RI docs for windows-pr version 0.6.2.
> c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:70:
> C:\family\ruby>
>
> is that a success or what?

Don't really know. Do you get a new .fastri-fulltext directory with
full_text.dat and suffixes.dat in HOME?

> i think the full rebuild is buggy, how can we debug it using just ruby?

It'd seem Ruby is crashing so hard it doesn't even give you a backtrace, but I
can't really tell. Maybe adding a rescue Exception; puts $!.backtrace to the
make_full_text_index method would tell us something, or it could make the
heisenbug go away.

Just realized that there could be a simple explanation to this: sometimes ruby
cannot detect stack overflows correctly and you get a segfault. However, ruby
doesn't use a recursive qsort (the most obvious possible culprit)...
If this is the reason, the problem should consistently fail to manifest itself
when you enlarge the stack (I don't know how to do that on win32, though).

--
Mauricio Fernandez - http://eige... - singular Ruby

Bernard Kenik

2/4/2007 5:17:00 AM

0

On Feb 3, 6:52 am, Mauricio Fernandez <m...@acm.org> wrote:
> On Sat, Feb 03, 2007 at 11:05:21AM +0900, Peña, Botp wrote:
> > fwiw, mine here is:
>
> > C:\family\ruby>fastri-server -b
> [...]
> > Indexed:
> > * 10240 methods
> > * 2046 classes/modules
> > Needed 3.984 seconds
>
> > ok, i think that's success alright.
> > Now,
>
> > C:\family\ruby>fastri-server -B
> > Indexing RI docs for ZenTest version 3.4.3.
> > <snip>....
> > Indexing RI docs for win32-sound version 0.4.0.
> > Indexing RI docs for win32console-1.0.8-i386 version mswin32.
> > Indexing RI docs for windows-pr version 0.6.2.
> > c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:70:
> > C:\family\ruby>
>
> > is that a success or what?
>
> Don't really know. Do you get a new .fastri-fulltext directory with
> full_text.dat and suffixes.dat in HOME?
>
> - Show quoted text -

on my WindowsXP machine
the ,fastri-fulltext folder is in C:\Documents and Settings\Owner

Mauricio Fernández

2/8/2007 10:34:00 AM

0

On Sun, Feb 04, 2007 at 02:20:12PM +0900, bbiker wrote:
> On Feb 3, 6:52 am, Mauricio Fernandez <m...@acm.org> wrote:
> > On Sat, Feb 03, 2007 at 11:05:21AM +0900, Peña, Botp wrote:
> > > C:\family\ruby>fastri-server -b
> > [...]
> > > Indexed:
> > > * 10240 methods
> > > * 2046 classes/modules
> > > Needed 3.984 seconds
> >
> > > ok, i think that's success alright.
> > > Now,
> >
> > > C:\family\ruby>fastri-server -B
> > > Indexing RI docs for ZenTest version 3.4.3.
> > > <snip>....
> > > Indexing RI docs for win32-sound version 0.4.0.
> > > Indexing RI docs for win32console-1.0.8-i386 version mswin32.
> > > Indexing RI docs for windows-pr version 0.6.2.
> > > c:/ruby/lib/ruby/gems/1.8/gems/fastri-0.3.0.1/bin/fastri-server:70:
> > > C:\family\ruby>
> >
> > > is that a success or what?
> >
> > Don't really know. Do you get a new .fastri-fulltext directory with
> > full_text.dat and suffixes.dat in HOME?
> >
> > - Show quoted text -
>
> on my WindowsXP machine
> the ,fastri-fulltext folder is in C:\Documents and Settings\Owner

If fri -S test works after that then we can disregard that puzzling message.
As I said, I believe the crashes are due to a bug in either syck or the
mswin32 build. The former seemed more likely, but I haven't been able to
reproduce it :-|

--
Mauricio Fernandez - http://eige... - singular Ruby