On Wed, 13 Oct 2010 10:24:25 -0400 Mike Kelly <pioto@pioto.org> wrote: > Looks like this may also require a newer xapian than i have now > (xapian-core 1.0.18), as notmuch new aborts with: > > terminate called after throwing an instance of > 'Xapian::InvalidArgumentError' > > I'll see if I can track down anything more concrete as a cause. Well, the full backtrace looks like this: #0 __cxa_throw (obj=0x2883d560, tinfo=0x8070278, dest=0x806132e <~InvalidArgumentError>) at ../../.././../gcc-4.4-20100309/libstdc++-v3/libsupc++/eh_throw.cc:67 header = (__cxxabiv1::__cxa_refcounted_exception *) 0x2883d500 #1 0x28353b72 in Xapian::Document::Internal::remove_term () from /usr/local/lib/libxapian.so.21 No symbol table info available. #2 0x28353c96 in Xapian::Document::remove_term () from /usr/local/lib/libxapian.so.21 No symbol table info available. #3 0x080604bc in _notmuch_message_remove_term (message=0x28a85c10, prefix_name=0x806c887 "tag", value=0x806c564 "draft") at lib/message.cc:737 term = 0x28806ab0 "Kdraft" #4 0x0806086a in notmuch_message_remove_tag (message=0x28a85c10, tag=0x806c564 "draft") at lib/message.cc:832 private_status = 134662454 status = NOTMUCH_STATUS_SUCCESS #5 0x08060a56 in notmuch_message_maildir_to_tags (message=0x28a85c10, filename=0x28a860f0 "/usr/home/staff/mike/mail/staff-support/cur/1286944232_2.71920.pit84.pair.com,U=26762,FMD5=74eb4e66bae4700f6b79b81477ef9cfa:2,S") at lib/message.cc:889 flags = 0x28a8616e "S" i = 0 status = NOTMUCH_STATUS_SUCCESS p = 0x28a8616f "" f = 83 'S' valid = true unread = true #6 0x08050bbe in add_files_recursive (notmuch=0x2881e7f0, path=0x2881ec70 "/usr/home/staff/mike/mail/staff-support/cur", state=0xbfbfe238) at notmuch-new.c:420 err = 32 dir = (DIR *) 0x0 entry = (struct dirent *) 0x28a68640 next = 0x28a860f0 "/usr/home/staff/mike/mail/staff-support/cur/1286944232_2.71920.pit84.pair.com,U=26762,FMD5=74eb4e66bae4700f6b79b81477ef9cfa:2,S" fs_mtime = 1286978382 db_mtime = 1286944232 status = NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID ret = NOTMUCH_STATUS_SUCCESS message = (notmuch_message_t *) 0x28a85c10 fs_entries = (struct dirent **) 0x28a6f000 i = 4915 num_fs_entries = 4922 directory = (notmuch_directory_t *) 0x288069f0 db_files = (notmuch_filenames_t *) 0x28806af0 db_subdirs = (notmuch_filenames_t *) 0x28806b30 st = {st_dev = 89, st_ino = 4172664, st_mode = 16832, st_nlink = 2, st_uid = 1118, st_gid = 0, st_rdev = 16689352, st_atimespec = {tv_sec = 1286979943, tv_nsec = 0}, st_mtimespec = {tv_sec = 1286978382, tv_nsec = 0}, st_ctimespec = { tv_sec = 1286978382, tv_nsec = 0}, st_size = 1205760, st_blocks = 2400, st_blksize = 4096, st_flags = 0, st_gen = 0, st_lspare = 0, st_birthtimespec = {tv_sec = 1264441077, tv_nsec = 0}} is_maildir = 0 new_directory = 0 tag = (const char **) 0x8069d62 #7 0x08050780 in add_files_recursive (notmuch=0x2881e7f0, path=0x2881e790 "/usr/home/staff/mike/mail/staff-support", state=0xbfbfe238) at notmuch-new.c:302 dir = (DIR *) 0x0 entry = (struct dirent *) 0x288cc5b0 next = 0x2881ec70 "/usr/home/staff/mike/mail/staff-support/cur" fs_mtime = 1264003223 db_mtime = 1264003223 status = NOTMUCH_STATUS_SUCCESS ret = NOTMUCH_STATUS_SUCCESS message = (notmuch_message_t *) 0x0 fs_entries = (struct dirent **) 0x2883d480 i = 2 num_fs_entries = 5 directory = (notmuch_directory_t *) 0x28806870 db_files = (notmuch_filenames_t *) 0x28806a30 db_subdirs = (notmuch_filenames_t *) 0x28806a70 st = {st_dev = 89, st_ino = 3889110, st_mode = 16832, st_nlink = 5, st_uid = 1118, st_gid = 0, st_rdev = 15524535, st_atimespec = {tv_sec = 1286979943, tv_nsec = 0}, st_mtimespec = {tv_sec = 1264003223, tv_nsec = 0}, st_ctimespec = { tv_sec = 1264473647, tv_nsec = 0}, st_size = 512, st_blocks = 4, st_blksize = 4096, st_flags = 0, st_gen = 0, st_lspare = 0, st_birthtimespec = {tv_sec = 1264003223, tv_nsec = 0}} is_maildir = 1 new_directory = 0 tag = (const char **) 0x8069d62 #8 0x08050780 in add_files_recursive (notmuch=0x2881e7f0, path=0x2881f680 "/usr/home/staff/mike/mail", state=0xbfbfe238) at notmuch-new.c:302 dir = (DIR *) 0x0 entry = (struct dirent *) 0x28808900 next = 0x2881e790 "/usr/home/staff/mike/mail/staff-support" fs_mtime = 1284781182 db_mtime = 1284781182 status = NOTMUCH_STATUS_SUCCESS ret = NOTMUCH_STATUS_SUCCESS message = (notmuch_message_t *) 0x0 fs_entries = (struct dirent **) 0x28825000 i = 40 num_fs_entries = 47 directory = (notmuch_directory_t *) 0x28806730 db_files = (notmuch_filenames_t *) 0x288068b0 db_subdirs = (notmuch_filenames_t *) 0x28806970 st = {st_dev = 89, st_ino = 3889107, st_mode = 16832, st_nlink = 47, st_uid = 1118, st_gid = 0, st_rdev = 15524532, st_atimespec = {tv_sec = 1286979943, tv_nsec = 0}, st_mtimespec = {tv_sec = 1284781182, tv_nsec = 0}, st_ctimespec = { tv_sec = 1284781182, tv_nsec = 0}, st_size = 1024, st_blocks = 4, st_blksize = 4096, st_flags = 0, st_gen = 0, st_lspare = 0, st_birthtimespec = {tv_sec = 1264181508, tv_nsec = 0}} is_maildir = 0 new_directory = 0 tag = (const char **) 0xbfbfe178 #9 0x08050fb5 in add_files (notmuch=0x2881e7f0, path=0x2881f680 "/usr/home/staff/mike/mail", state=0xbfbfe238) at notmuch-new.c:553 status = NOTMUCH_STATUS_SUCCESS action = {__sigaction_u = {__sa_handler = 0x8050166 <handle_sigalrm>, __sa_sigaction = 0x8050166 <handle_sigalrm>}, sa_flags = 2, sa_mask = {__bits = {0, 0, 0, 0}}} timerval = {it_interval = {tv_sec = 1, tv_usec = 0}, it_value = {tv_sec = 1, tv_usec = 0}} timer_is_active = 1 st = {st_dev = 89, st_ino = 3889107, st_mode = 16832, st_nlink = 47, st_uid = 1118, st_gid = 0, st_rdev = 15524532, st_atimespec = {tv_sec = 1286979943, tv_nsec = 0}, st_mtimespec = {tv_sec = 1284781182, tv_nsec = 0}, st_ctimespec = { tv_sec = 1284781182, tv_nsec = 0}, st_size = 1024, st_blocks = 4, st_blksize = 4096, st_flags = 0, st_gen = 0, st_lspare = 0, st_birthtimespec = {tv_sec = 1264181508, tv_nsec = 0}} #10 0x08051809 in notmuch_new_command (ctx=0x288090a0, argc=0, argv=0xbfbfe320) at notmuch-new.c:800 config = (notmuch_config_t *) 0x2881e490 notmuch = (notmuch_database_t *) 0x2881e7f0 add_files_state = {output_is_a_tty = 1, verbose = 0, new_tags = 0x288064b0, new_tags_length = 0, total_files = 0, processed_files = 1, added_messages = 0, tv_start = {tv_sec = 1286980142, tv_usec = 691823}, removed_files = 0x288066b0, removed_directories = 0x288066f0, maildir_sync = NOTMUCH_MAILDIR_SYNC_NEW_RENAMED_TAGGED} elapsed = -0.12455515557656988 tv_now = {tv_sec = 671753656, tv_usec = -1077943692} ret = 0 st = {st_dev = 89, st_ino = 3886724, st_mode = 16877, st_nlink = 3, st_uid = 1118, st_gid = 0, st_rdev = 15527616, st_atimespec = {tv_sec = 1286953297, tv_nsec = 0}, st_mtimespec = {tv_sec = 1273174498, tv_nsec = 0}, st_ctimespec = { tv_sec = 1273174498, tv_nsec = 0}, st_size = 512, st_blocks = 4, st_blksize = 4096, st_flags = 0, st_gen = 0, st_lspare = 0, st_birthtimespec = {tv_sec = 1273174498, tv_nsec = 0}} db_path = 0x2881f680 "/usr/home/staff/mike/mail" dot_notmuch_path = 0x0 action = {__sigaction_u = {__sa_handler = 0x8050181 <handle_sigint>, __sa_sigaction = 0x8050181 <handle_sigint>}, sa_flags = 2, sa_mask = {__bits = {0, 0, 0, 0}}} f = (_filename_node_t *) 0x2d renamed_files = 672185856 removed_files = 0 status = 134639189 i = 0 #11 0x0804edd6 in main (argc=2, argv=0xbfbfe318) at notmuch.c:499 local = (void *) 0x288090a0 command = (command_t *) 0x80708f4 i = 1 -- Mike Kelly