GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `imap'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  mail_index_sync_init_expunge_handlers (ctx=0xbffff860) at mail-index-sync-ext.c:36
36              extensions = ctx->view->map->extensions->data;
(gdb) bt full
#0  mail_index_sync_init_expunge_handlers (ctx=0xbffff860) at mail-index-sync-ext.c:36
        handlers = (const mail_index_expunge_handler_t * const *) 0x80c9bb0
        extensions = (const struct mail_index_ext *) 0x18cfc
        id_map = (const uint32_t *) 0x1
        eh = {handler = 0, context = 0x0, record_offset = 0}
        handlers_count = 1
        id_map_size = 7473
        size = 3072846808
        idx_ext_id = 3072846664
        map_ext_id = 0
#1  0x080835cc in sync_expunge (e=0xb727eb48, ctx=0xbffff860) at mail-index-sync-update.c:113
        view = (struct mail_index_view *) 0x80cbb28
        map = (struct mail_index_map *) 0x80cbc58
        count = 3072846664
        seq = 3072846664
        seq1 = 7474
        seq2 = 7474
        expunge_handlers = (struct mail_index_expunge_handler *) 0xb727eb48
        i = 0
        expunge_handlers_count = 3072846656
#2  0x08083e70 in mail_index_sync_record (ctx=0xbffff860, hdr=0x80cbc24, data=0xb727eb48)
    at mail-index-sync-update.c:400
        rec = (const struct mail_transaction_expunge *) 0xb727eb48
        end = (const struct mail_transaction_expunge *) 0xb727ebd8
        ret = 0
#3  0x08084327 in mail_index_sync_update_index (sync_ctx=0x0, sync_only_external=1)
    at mail-index-sync-update.c:628
        index = (struct mail_index *) 0x80c9a58
        view = (struct mail_index_view *) 0x80cbb28
        map = (struct mail_index_map *) 0xaa8
        sync_map_ctx = {view = 0x80cbb28, cur_ext_id = 4294967295, expunge_handlers = 0x81017a0,
  extra_context_buf = 0x0, extra_context = 0x0, type = MAIL_INDEX_SYNC_HANDLER_INDEX,
  sync_handlers_initialized = 0, expunge_handlers_set = 0, expunge_handlers_used = 0,
  cur_ext_ignore = 0}
        thdr = (const struct mail_transaction_header *) 0x80cbc24
        data = (const void *) 0xb727eb48
        old_lock_id = 2728
        seq = 135057392
        i = 0
        first_append_uid = 0
        offset = 13019947376
        ret = 1
        skipped = 0
        check_ext_offsets = 0
#4  0x08082858 in mail_index_sync_commit_external (ctx=0x80c9818, seq=0, offset=3032)
    at mail-index-sync.c:287
        ret = 0
#5  0x08082a28 in mail_index_sync_begin (index=0x80c9a58, ctx_r=0x0, view_r=0x0, log_file_seq=0,
    log_file_offset=18446744073709551615, sync_recent=0, sync_dirty=0) at mail-index-sync.c:378
        ctx = (struct mail_index_sync_ctx *) 0x80c9818
        seq = 3
        offset = 3032
        lock_id = 8
        seen_external = 135056792
#6  0x0806300f in maildir_sync_index_begin (ibox=0x80ccd98) at maildir-sync.c:579
        sync_ctx = (struct maildir_index_sync_context *) 0x80ce840
#7  0x08063706 in maildir_sync_context (ctx=0x80b21d8, forced=0) at maildir-sync.c:912
        ret = 0
        new_changed = 1
        cur_changed = 1
#8  0x080638bb in maildir_storage_sync_init (box=0x80ccd98, flags=0) at maildir-sync.c:975
        ctx = (struct maildir_sync_context *) 0x80b21d8
        ret = 0
#9  0x0808bc36 in mailbox_sync_init (box=0x0, flags=0) at mail-storage.c:329
No locals.
#10 0x0805ea6d in imap_sync_nonselected (box=0x0, flags=0) at imap-sync.c:153
        ctx = (struct mailbox_sync_context *) 0x80ccd98
        sync_rec = {seq1 = 134986640, seq2 = 134987528, type = 7}
        status = {messages = 1103837584, recent = 118491735, unseen = 74016, uidvalidity = 0,
  uidnext = 134984600, first_unseen_seq = 134987528, diskspace_full = 0, keywords_count = 134987528,
  keywords = 0x7}
#11 0x080579d3 in get_mailbox_status (client=0x80bbc68, storage=0x0,
    mailbox=0x80ccd98 "\bX\f\b\220»\v\bp\206\a\b\220\206\a\bð#\006\b\020|\a\bp8\006\bp\213\a\b\220\214\a\b $\006\bð8\006\b09\006\bà9\006\bÐ9\a\b@:\a\b", items=0, status=0x0) at cmd-status.c:68
        box = (struct mailbox *) 0x80ccd98
        failed = 1
#12 0x08057b0b in cmd_status (client=0x80bbc68) at cmd-status.c:110
        args = (struct imap_arg *) 0x80bbe58
        status = {messages = 135003808, recent = 134896369, unseen = 516, uidvalidity = 22,
  uidnext = 134987168, first_unseen_seq = 134982184, diskspace_full = 0, keywords_count = 134582490,
  keywords = 0x80bfea0}
        items = 23
        storage = (struct mail_storage *) 0x80bbb90
        mailbox = 0x80bbf08 "Spam"
        str = (string_t *) 0x80bbb90
#13 0x08058bf5 in client_handle_input (client=0x80bbc68) at client.c:324
No locals.
#14 0x08058cc8 in _client_input (context=0x80bbc68) at client.c:368
        client = (struct client *) 0x80bbc68
#15 0x0809d6f8 in io_loop_handler_run (ioloop=0x80ba9e8) at ioloop-poll.c:184
        data = (struct ioloop_handler_data *) 0x80baa10
        pollfd = (struct pollfd *) 0x80baa28
        tv = {tv_sec = 0, tv_usec = 367904}
        io = (struct io *) 0x80bbda0
        t_id = 2
        msecs = 0
        ret = 0
        call = 1
#16 0x0809cc78 in io_loop_run (ioloop=0x80ba9e8) at ioloop.c:218
No locals.
#17 0x080606e9 in main (argc=1, argv=0x0, envp=0x0) at main.c:224
No locals.
(gdb)

