Package: libsearch-xapian-perl
Version: 1.2.3.0-1
Severity: normal

I have a reproducible segfault in xapian, that seems to occur when the
database is being first created, but oddly seems depenadnt on a 
particular input corpus being indexed -- similar sites with other content
don't crash.

(gdb)  r /usr/bin/ikiwiki -setup ikiwiki.setup
Starting program: /usr/bin/perl /usr/bin/ikiwiki -setup ikiwiki.setup
[Thread debugging using libthread_db enabled]
successfully generated /home/b-joeytest99/public_html/ikiwiki.cgi
successfully generated /home/b-joeytest99/source.git/hooks/post-update

Breakpoint 2, ChertVersion::create (this=0x22d5940)
    at ../backends/chert/chert_version.cc:65
65      ../backends/chert/chert_version.cc: No such file or directory.
        in ../backends/chert/chert_version.cc
(gdb) c
Continuing.

Breakpoint 1, ChertVersion::create (this=0x22d5940)
    at ../backends/chert/chert_version.cc:73
73      in ../backends/chert/chert_version.cc
(gdb) p uuid
$6 = '\000' <repeats 15 times>
(gdb) p &uuid
$7 = (unsigned char (*)[16]) 0x22d5948
(gdb) s
65      in ../backends/chert/chert_version.cc
(gdb) p uuid
$8 = '\000' <repeats 15 times>
(gdb) s
66      in ../backends/chert/chert_version.cc
(gdb) s
67      in ../backends/chert/chert_version.cc
(gdb) s
66      in ../backends/chert/chert_version.cc
(gdb) s
65      in ../backends/chert/chert_version.cc
(gdb) s
68      in ../backends/chert/chert_version.cc
(gdb) s
73      in ../backends/chert/chert_version.cc
(gdb) s
69      in ../backends/chert/chert_version.cc
(gdb) s
70      in ../backends/chert/chert_version.cc
(gdb) s
71      in ../backends/chert/chert_version.cc
(gdb) s
73      in ../backends/chert/chert_version.cc
(gdb) p uuid
$9 = '\000' <repeats 15 times>
(gdb) s

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff0d46882 in ?? () from /lib/libuuid.so.1
(gdb) bt
#0  0x00007ffff0d46882 in ?? () from /lib/libuuid.so.1
#1  0x00007ffff0d47729 in uuid_generate () from /lib/libuuid.so.1
#2  0x00007fffefd71362 in ChertVersion::create (this=0x22d5940)
    at ../backends/chert/chert_version.cc:73
#3  0x00007fffefd45f7f in ChertDatabase::create_and_open_tables (
    this=0x22d5920, block_size=0) at ../backends/chert/chert_database.cc:209
#4  0x00007fffefd4d12e in ChertDatabase (this=0x22d5920, 
    chert_dir=<value optimized out>, action=<value optimized out>, 
    block_size=<value optimized out>)
    at ../backends/chert/chert_database.cc:171
#5  0x00007fffefd4d509 in ChertWritableDatabase (this=0x7ffff7fed010, dir=..., 
    action=4, block_size=-147021724)
    at ../backends/chert/chert_database.cc:1015
#6  0x00007fffefd05d7f in WritableDatabase (this=0x7b52e0, path=..., action=1)
    at ../backends/dbfactory.cc:480
#7  0x00007ffff00be2de in XS_Search__Xapian__WritableDatabase_new1 ()
   from /usr/lib/perl5/auto/Search/Xapian/Xapian.so
#8  0x00007ffff7b1d5f5 in Perl_pp_entersub () from /usr/lib/libperl.so.5.10
#9  0x00007ffff7b1bb36 in Perl_runops_standard () from /usr/lib/libperl.so.5.10
#10 0x00007ffff7ac051c in perl_run () from /usr/lib/libperl.so.5.10
#11 0x0000000000400d3c in main ()

>From this I am not sure if the bug is in Xapian code, or in libuuid.

Tried upgrading to unstable's version of the package, still seeing
the segfault.

Here's how strace ends:

stat("/home/b-joeytest99/source/.ikiwiki/xapian/default", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/home/b-joeytest99/source/.ikiwiki/xapian/default/iamchert", 
0x7fffcd3e2700) = -1 ENOENT (No such file or directory)
stat("/home/b-joeytest99/source/.ikiwiki/xapian/default/iamflint", 
0x7fffcd3e2700) = -1 ENOENT (No such file or directory)
stat("/home/b-joeytest99/source/.ikiwiki/xapian/default/iambrass", 
0x7fffcd3e2700) = -1 ENOENT (No such file or directory)
stat("/home/b-joeytest99/source/.ikiwiki/xapian/default/XAPIANDB", 
0x7fffcd3e2700) = -1 ENOENT (No such file or directory)
stat("/home/b-joeytest99/source/.ikiwiki/xapian/default/record.DB", 
0x7fffcd3e2490) = -1 ENOENT (No such file or directory)
stat("/home/b-joeytest99/source/.ikiwiki/xapian/default", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/b-joeytest99/source/.ikiwiki/xapian/default/flintlock", 
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
socketpair(PF_FILE, SOCK_STREAM, 0, [5, 6]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f5683f3e9d0) = 27934
close(4)                                = 0
close(6)                                = 0
read(5, "\0", 1)                        = 1
gettimeofday({1302681283, 613545}, NULL) = 0
open("/dev/urandom", O_RDONLY)          = 4
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getuid()                                = 1310
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

-- System Information:
Debian Release: 6.0.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (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/dash

Versions of packages libsearch-xapian-perl depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3
ii  libxapian22                   1.2.3-2    Search engine library
ii  perl                          5.10.1-17  Larry Wall's Practical Extraction
ii  perl-base [perlapi-5.10.1]    5.10.1-17  minimal Perl system

libsearch-xapian-perl recommends no packages.

Versions of packages libsearch-xapian-perl suggests:
pn  xapian-doc                    <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to