Ticket #277 (closed defect: fixed)

Opened 18 months ago

Last modified 2 months ago

Remote Indexer faults when indexing a binary string

Reported by: ripta.pasay@… Owned by: dbalmain
Priority: major Milestone:
Component: component1 Version:
Keywords: segfault indexer remote drb ferret Cc: ripta.pasay@…

Description

This happens using ferret-0.11.4 on ruby-1.8.5 [i686-linux], gcc-3.4.6.

When indexing the contents of the attached file, the remote ferret server (using the DRb server) disconnects the client. The following message appears in the ferret_server.out file:

/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.4/lib/ferret/index.rb:298: [BUG] Segmentation fault

The relevant portion of ferret_server.log is also attached in its own separate file.

Attachments

ferret-segfault-server_log.txt (1.6 KB) - added by ripta.pasay@… 18 months ago.
Relevant ferret_server.log snippet
ferret-segfault.txt (1.5 KB) - added by ripta.pasay@… 18 months ago.
The contents being indexed when ferret segfaulted

Change History

Changed 18 months ago by ripta.pasay@…

Relevant ferret_server.log snippet

Changed 18 months ago by ripta.pasay@…

The contents being indexed when ferret segfaulted

Changed 17 months ago by dbalmain

Sorry, I'm afraid this isn't enough information for me to work on this problem. If you can find a way for me to reproduce it, I'll definitely take a look at it.

Changed 15 months ago by dbalmain

  • status changed from new to closed
  • resolution set to wontfix

Since there is no more information for this problem after 2 months I'll now close the ticket. If you can come up with a way for me to reproduce the problem here, please feel free to reopen the ticket.

Changed 11 months ago by choonkeat@…

  • status changed from closed to reopened
  • resolution wontfix deleted

This code (ferret_crasher.rb)

require 'rubygems'
require 'ferret'
index = Ferret::Index::IndexWriter.new :default_field => 'content', :path => '/tmp/ferret_seg_test'
index.add_document({:content=>"http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\""})

consistently crashes on my server:

$ ruby ferret_crasher.rb
ferret_crasher.rb:4: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [i486-linux]

other info

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

$ uname -a
Linux vps3 2.6.18-xenU-rimu-20061214 #1 SMP Sat Nov 10 02:45:44 UTC 2007 i686 GNU/Linux

if i change http in the content to some rubbish, nothing happens. http, https, ftp would crash ferret.

Changed 11 months ago by dbalmain

  • owner changed from somebody to dbalmain
  • status changed from reopened to new

Great, thanks for the excellent bug report. I'm onto it.

Changed 11 months ago by dbalmain

  • status changed from new to closed
  • resolution set to fixed

This has been fixed in trunk. This particular bug was also causing problems for the highlighter when highlighting matching urls and that has also been fixed. Thanks.

Add/Change #277 (Remote Indexer faults when indexing a binary string)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.