Debian Bug report logs - #592323
/etc/cron.weekly/apt-xapian-index: cron job exits with error

version graph

Package: apt-xapian-index; Maintainer for apt-xapian-index is Debian QA Group <packages@qa.debian.org>; Source for apt-xapian-index is src:apt-xapian-index (PTS, buildd, popcon).

Reported by: Jan Schulz <jasc@gmx.net>

Date: Mon, 9 Aug 2010 09:15:01 UTC

Severity: normal

Tags: help, unreproducible

Found in version apt-xapian-index/0.38

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Mon, 09 Aug 2010 09:15:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jan Schulz <jasc@gmx.net>:
New Bug report received and forwarded. Copy sent to Enrico Zini <enrico@debian.org>. (Mon, 09 Aug 2010 09:15:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jan Schulz <jasc@gmx.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Mon, 09 Aug 2010 11:12:53 +0200
Package: apt-xapian-index
Version: 0.38
Severity: normal
File: /etc/cron.weekly/apt-xapian-index

I get the following error in my daily logwatch output:

/etc/cron.weekly/apt-xapian-index:
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 102, in <module>
    indexer.incrementalUpdate()
  File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 629, in incrementalUpdate
    self.updateIndex(dbpath)
  File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 594, in updateIndex
    unchanged, outdated, obsolete = self.compareCacheToDb(cache, db)
  File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 566, in compareCacheToDb
    for (idx, m) in enumerate(db.postlist("")):
  File "/usr/lib/python2.6/dist-packages/xapian.py", line 5534, in next
    self._iter.next()
RuntimeError: basic_string::assign
run-parts: /etc/cron.weekly/apt-xapian-index exited with return code 1

I've no idea what's happening here, so any help appreciated...

Kind regards,

Jan

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental'), (99, 'maverick-updates'), (99, 'maverick')
Architecture: i386 (i586)

Kernel: Linux 2.6.32-5-486
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 apt-xapian-index depends on:
ii  python                        2.6.5-12   interactive high-level object-orie
ii  python-apt                    0.7.96.1   Python interface to libapt-pkg
ii  python-debian                 0.1.18     Python modules to work with Debian
ii  python-support                1.0.9      automated rebuilding support for P
ii  python-xapian                 1.0.20-1   Xapian search engine interface for

apt-xapian-index recommends no packages.

Versions of packages apt-xapian-index suggests:
pn  app-install-data              <none>     (no description available)
pn  python-xdg                    <none>     (no description available)

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Tue, 10 Aug 2010 08:39:05 GMT) (full text, mbox, link).


Acknowledgement sent to Enrico Zini <enrico@enricozini.org>:
Extra info received and forwarded to list. Copy sent to Enrico Zini <enrico@debian.org>. (Tue, 10 Aug 2010 08:39:05 GMT) (full text, mbox, link).


Message #10 received at 592323@bugs.debian.org (full text, mbox, reply):

From: Enrico Zini <enrico@enricozini.org>
To: Jan Schulz <jasc@gmx.net>, 592323@bugs.debian.org
Subject: Re: Bug#592323: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Tue, 10 Aug 2010 09:37:08 +0100
[Message part 1 (text/plain, inline)]
On Mon, Aug 09, 2010 at 11:12:53AM +0200, Jan Schulz wrote:

> I get the following error in my daily logwatch output:
> 
> /etc/cron.weekly/apt-xapian-index:
> Traceback (most recent call last):
>   File "/usr/sbin/update-apt-xapian-index", line 102, in <module>
>     indexer.incrementalUpdate()
>   File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 629, in incrementalUpdate
>     self.updateIndex(dbpath)
>   File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 594, in updateIndex
>     unchanged, outdated, obsolete = self.compareCacheToDb(cache, db)
>   File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 566, in compareCacheToDb
>     for (idx, m) in enumerate(db.postlist("")):
>   File "/usr/lib/python2.6/dist-packages/xapian.py", line 5534, in next
>     self._iter.next()
> RuntimeError: basic_string::assign
> run-parts: /etc/cron.weekly/apt-xapian-index exited with return code 1
> 
> I've no idea what's happening here, so any help appreciated...

Hello, thank you for reporting this. It looks like a Xapian error, which
is hard to debug from a python backtrace, so we should try to reproduce
the bug in a more convenient debugging situation.

Do you get the same error outside of cron, by running, as root:

  /usr/sbin/update-apt-xapian-index --update --quiet

?


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico@enricozini.org>
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Tue, 10 Aug 2010 10:09:05 GMT) (full text, mbox, link).


Acknowledgement sent to "Jan Schulz" <jasc@gmx.net>:
Extra info received and forwarded to list. Copy sent to Enrico Zini <enrico@debian.org>. (Tue, 10 Aug 2010 10:09:05 GMT) (full text, mbox, link).


Message #15 received at 592323@bugs.debian.org (full text, mbox, reply):

From: "Jan Schulz" <jasc@gmx.net>
To: 592323@bugs.debian.org
Subject: Re: Bug#592323: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Tue, 10 Aug 2010 11:53:06 +0200
[Message part 1 (text/plain, inline)]
Hello,

Enrico Zini <enrico@enricozini.org> wrote on 10.08.2010 10:37:08:
> Hello, thank you for reporting this. It looks like a Xapian error, which
> is hard to debug from a python backtrace, so we should try to reproduce
> the bug in a more convenient debugging situation.
> 
> Do you get the same error outside of cron, by running, as root:
> 
>   /usr/sbin/update-apt-xapian-index --update --quiet

Yes:
linus:/home/jan# /usr/sbin/update-apt-xapian-index --update --quiet
Traceback (most recent call last):
  File "/usr/sbin/update-apt-xapian-index", line 102, in <module>
    indexer.incrementalUpdate()
  File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 629, in 
incrementalUpdate
    self.updateIndex(dbpath)
  File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 594, in 
updateIndex
    unchanged, outdated, obsolete = self.compareCacheToDb(cache, db)
  File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 566, in 
compareCacheToDb
    for (idx, m) in enumerate(db.postlist("")):
  File "/usr/lib/python2.6/dist-packages/xapian.py", line 5534, in next
    self._iter.next()
RuntimeError: basic_string::assign
linus:/home/jan#

Ciao,

Jan
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Sat, 06 Nov 2010 16:18:03 GMT) (full text, mbox, link).


Acknowledgement sent to Enrico Zini <enrico@enricozini.org>:
Extra info received and forwarded to list. Copy sent to Enrico Zini <enrico@debian.org>. (Sat, 06 Nov 2010 16:18:03 GMT) (full text, mbox, link).


Message #20 received at 592323@bugs.debian.org (full text, mbox, reply):

From: Enrico Zini <enrico@enricozini.org>
To: Jan Schulz <jasc@gmx.net>, 592323@bugs.debian.org
Subject: Re: Bug#592323: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Sat, 6 Nov 2010 16:14:27 +0000
[Message part 1 (text/plain, inline)]
On Tue, Aug 10, 2010 at 11:53:06AM +0200, Jan Schulz wrote:

>    > Do you get the same error outside of cron, by running, as root:
>    >
>    >   /usr/sbin/update-apt-xapian-index --update --quiet
>    Yes:
>    linus:/home/jan# /usr/sbin/update-apt-xapian-index --update --quiet
>    Traceback (most recent call last):
>      File "/usr/sbin/update-apt-xapian-index", line 102, in <module>
>        indexer.incrementalUpdate()
>      File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 629, in
>    incrementalUpdate
>        self.updateIndex(dbpath)
>      File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 594, in
>    updateIndex
>        unchanged, outdated, obsolete = self.compareCacheToDb(cache, db)
>      File "/usr/lib/pymodules/python2.6/axi/indexer.py", line 566, in
>    compareCacheToDb
>        for (idx, m) in enumerate(db.postlist("")):
>      File "/usr/lib/python2.6/dist-packages/xapian.py", line 5534, in next
>        self._iter.next()
>    RuntimeError: basic_string::assign
>    linus:/home/jan#

Hmm, still unreproducible to me :(

I asked Xapian upstreams, and they'd like to see a C++ backtrace. It
should be obtainable in this way:

# gdb --args python /usr/sbin/update-apt-xapian-index --update --quiet
(gdb) catch throw
(gdb) run
[it will stop just before throwing the exception]
(gdb) where

The "where" command should print the C++ backtrace.


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico@enricozini.org>
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Sat, 06 Nov 2010 16:45:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jan Schulz <jasc@gmx.net>:
Extra info received and forwarded to list. Copy sent to Enrico Zini <enrico@debian.org>. (Sat, 06 Nov 2010 16:45:03 GMT) (full text, mbox, link).


Message #25 received at 592323@bugs.debian.org (full text, mbox, reply):

From: Jan Schulz <jasc@gmx.net>
Cc: 592323@bugs.debian.org
Subject: Re: Bug#592323: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Sat, 06 Nov 2010 17:42:27 +0100
On 06.11.2010 17:14, Enrico Zini wrote:
> I asked Xapian upstreams, and they'd like to see a C++ backtrace. It
> should be obtainable in this way:
>
> # gdb --args python /usr/sbin/update-apt-xapian-index --update --quiet
> (gdb) catch throw
> (gdb) run
> [it will stop just before throwing the exception]
> (gdb) where
>
> The "where" command should print the C++ backtrace.

linus:/home/jan# gdb --args python /usr/sbin/update-apt-xapian-index 
--update --quiet
GNU gdb (GDB) 7.2-debian
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
(gdb) run
Starting program: /usr/bin/python /usr/sbin/update-apt-xapian-index 
--update --quiet
[Thread debugging using libthread_db enabled]
Catchpoint 1 (exception thrown), 0xb750d515 in __cxa_throw ()
   from /usr/lib/libstdc++.so.6
(gdb) where
#0  0xb750d515 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1  0xb74a3eef in std::__throw_length_error(char const*) ()
   from /usr/lib/libstdc++.so.6
#2  0xb74e9d82 in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::assign(char const*, unsigned int) () from 
/usr/lib/libstdc++.so.6
#3  0xb7622f7b in FlintCursor::get_key(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >*) const () from 
/usr/lib/libxapian.so.22
#4  0xb7623c7f in FlintCursor::next() () from /usr/lib/libxapian.so.22
#5  0xb761ed55 in ?? () from /usr/lib/libxapian.so.22
#6  0xb758f7ab in Xapian::PostingIterator::operator++() ()
   from /usr/lib/libxapian.so.22
#7  0xb7752e17 in ?? () from 
/usr/lib/python2.6/dist-packages/xapian/_xapian.so
#8  0x080e1968 in PyEval_EvalFrameEx ()
#9  0x080e2507 in PyEval_EvalCodeEx ()
#10 0x0816b80c in ?? ()
#11 0x0806232a in PyObject_Call ()
#12 0x0806a311 in ?? ()
#13 0x0806232a in PyObject_Call ()
#14 0x080b14d3 in ?? ()
#15 0x080b16d9 in ?? ()
#16 0x08169041 in ?? ()
#17 0x080dce2c in PyEval_EvalFrameEx ()
#18 0x080e18b0 in PyEval_EvalFrameEx ()
---Type <return> to continue, or q <return> to quit---

Hope you can do something with this, I've no idea whats happening here :-)

Greetings,

Jan






Information forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Fri, 03 Jun 2011 09:27:11 GMT) (full text, mbox, link).


Acknowledgement sent to Enrico Zini <enrico@enricozini.org>:
Extra info received and forwarded to list. Copy sent to Enrico Zini <enrico@debian.org>. (Fri, 03 Jun 2011 09:27:12 GMT) (full text, mbox, link).


Message #30 received at 592323@bugs.debian.org (full text, mbox, reply):

From: Enrico Zini <enrico@enricozini.org>
To: Jan Schulz <jasc@gmx.net>, 592323@bugs.debian.org
Subject: Re: Bug#592323: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Fri, 3 Jun 2011 11:16:55 +0200
[Message part 1 (text/plain, inline)]
On Sat, Nov 06, 2010 at 05:42:27PM +0100, Jan Schulz wrote:

> linus:/home/jan# gdb --args python /usr/sbin/update-apt-xapian-index
> --update --quiet
[...]
> (gdb) where
> #0  0xb750d515 in __cxa_throw () from /usr/lib/libstdc++.so.6
> #1  0xb74a3eef in std::__throw_length_error(char const*) ()
>    from /usr/lib/libstdc++.so.6
> #2  0xb74e9d82 in std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >::assign(char const*, unsigned int) () from
> /usr/lib/libstdc++.so.6
> #3  0xb7622f7b in FlintCursor::get_key(std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >*) const () from
> /usr/lib/libxapian.so.22
> #4  0xb7623c7f in FlintCursor::next() () from /usr/lib/libxapian.so.22
[...]
> Hope you can do something with this, I've no idea whats happening here :-)

I've asked the Xapian authors who suspect a corrupted database. It's
quite strange because apt-xapian-index' cronjob should do a full rebuild
once a week.

You can try manually running "update-apt-xapian-index --force" to force
a full rebuild, maybe?


Ciao,

Enrico

-- 
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico@enricozini.org>
[signature.asc (application/pgp-signature, inline)]

Added tag(s) unreproducible and help. Request was from Enrico Zini <enrico@debian.org> to control@bugs.debian.org. (Tue, 21 Jun 2011 17:39:20 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Enrico Zini <enrico@debian.org>:
Bug#592323; Package apt-xapian-index. (Sat, 04 Oct 2014 13:51:10 GMT) (full text, mbox, link).


Acknowledgement sent to Matt Horan <matt@matthoran.com>:
Extra info received and forwarded to list. Copy sent to Enrico Zini <enrico@debian.org>. (Sat, 04 Oct 2014 13:51:10 GMT) (full text, mbox, link).


Message #37 received at 592323@bugs.debian.org (full text, mbox, reply):

From: Matt Horan <matt@matthoran.com>
To: 592323@bugs.debian.org
Subject: Re: /etc/cron.weekly/apt-xapian-index: cron job exits with error
Date: Sat, 4 Oct 2014 09:42:24 -0400
[Message part 1 (text/plain, inline)]
I just encountered this bug after upgrading a machine running jessie to
version 0.47. Interestingly, this only occurred on a single one of my
systems.

I tried --force, but that did not help.

-- 
Matt Horan matt@matthoran.com http://matthoran.com/
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 00:04:50 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.