Package: libxapian15
Version: 1.0.5-1
Severity: normal

I'm using the xapian perl interface for this example, but the crash is
in the C++ code based on the error message:

[EMAIL PROTECTED]:~/src/ikiwiki>perl -e 'use Search::Xapian; use 
Search::Xapian::WritableDatabase;eval {$s=Search::Xapian::Stem->new("pl")} ; 
print "hi"'
terminate called after throwing an instance of 'Xapian::InvalidArgumentError'
zsh: abort      perl -e 

Notice that the use of eval around the Xapian call did not prevent it from
crashing the entire program. The library seems to be throwing an 
Xapian::InvalidArgumentError from a function that is not declared as throwing
that, which then aborts, in an untrappable way.

This is especially annoying because it means that to robustly generate
stemmers for different languages, one has to hard-code a whitelist of all
currently supported stemmers in the program. (Which I've now done in
ikiwiki :-/)

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libxapian15 depends on:
ii  libc6                  2.7-12            GNU C Library: Shared libraries
ii  libgcc1                1:4.3.1-2         GCC support library
ii  libstdc++6             4.3.1-2           The GNU Standard C++ Library v3
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

libxapian15 recommends no packages.

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to