From: rlane@club.cc.cmu.edu (Rich Lane)
Subject: [sup-talk] Bug: Converting the index to xapian fails with a message with very old date
Date: Fri, 02 Oct 2009 16:35:42 -0400 [thread overview]
Message-ID: <1254513417-sup-8419@zyrg.net> (raw)
In-Reply-To: <1254404956-sup-6574@masanjin.net>
Excerpts from William Morgan's message of Thu Oct 01 09:49:54 -0400 2009:
> Reformatted excerpts from Michael Stapelberg's message of 2009-09-26:
> > truncated date is Thu Jan 01 01:00:00 +0100 1970
> > date_value is "\200"
> > /usr/lib/ruby/1.8/sup/xapian_index.rb:536:in `_dump': year too big to marshal
> > (ArgumentError)
> > from /usr/lib/ruby/1.8/sup/xapian_index.rb:536:in `dump'
> > from /usr/lib/ruby/1.8/sup/xapian_index.rb:536:in `index_message'
> > from /usr/lib/ruby/1.8/sup/xapian_index.rb:124:in `sync_message'
>
> At this point I'm hoping that Rich will chime in. :)
This strikes me as a bug in Marshal.dump - it should be able to handle
arbitrary dates. I've never messed with custom marshalling functions
before, but monkey patching one in could be a workaround. Or we could
just truncate the dates before putting them in the index entry.
prev parent reply other threads:[~2009-10-02 20:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-20 19:46 Michael Stapelberg
2009-09-26 13:56 ` William Morgan
2009-09-26 21:38 ` Michael Stapelberg
2009-10-01 13:49 ` William Morgan
2009-10-02 20:35 ` Rich Lane [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1254513417-sup-8419@zyrg.net \
--to=rlane@club.cc.cmu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox