<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3389: segfault when trying to unsubscribe from an IMAP folder



#3389: segfault when trying to unsubscribe from an IMAP folder
------------------------------------+---------------------------------------
 Reporter:  daniell                 |       Owner:  brendan
     Type:  defect                  |      Status:  new    
 Priority:  major                   |   Milestone:         
Component:  IMAP                    |     Version:  1.5.20 
 Keywords:  imap unsubscribe crash  |  
------------------------------------+---------------------------------------
Changes (by daniell):

  * status:  infoneeded_new => new


Comment:

 Of course; sorry for the late response.

 {{{
 daniell@serenity ~ $ gdb /usr/bin/mutt /home/daniell/core

 GNU gdb 6.8
 Copyright (C) 2008 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-slackware-linux"...

 warning: Can't read pathname for load map: Input/output error.
 Reading symbols from /lib/libncursesw.so.5...done.
 Loaded symbols for /lib/libncursesw.so.5
 Reading symbols from /lib/libssl.so.0...done.
 Loaded symbols for /lib/libssl.so.0
 Reading symbols from /lib/libcrypto.so.0...done.
 Loaded symbols for /lib/libcrypto.so.0
 Reading symbols from /usr/lib/libz.so.1...done.
 Loaded symbols for /usr/lib/libz.so.1
 Reading symbols from /usr/lib/libsasl2.so.2...done.
 Loaded symbols for /usr/lib/libsasl2.so.2
 Reading symbols from /usr/lib/libgpgme.so.11...done.
 Loaded symbols for /usr/lib/libgpgme.so.11
 Reading symbols from /usr/lib/libgpg-error.so.0...done.
 Loaded symbols for /usr/lib/libgpg-error.so.0
 Reading symbols from /usr/lib/libidn.so.11...done.
 Loaded symbols for /usr/lib/libidn.so.11
 Reading symbols from /lib/libdb-4.4.so...done.
 Loaded symbols for /lib/libdb-4.4.so
 Reading symbols from /lib/libc.so.6...done.
 Loaded symbols for /lib/libc.so.6
 Reading symbols from /lib/libdl.so.2...done.
 Loaded symbols for /lib/libdl.so.2
 Reading symbols from /lib/libresolv.so.2...done.
 Loaded symbols for /lib/libresolv.so.2
 Reading symbols from /lib/libpthread.so.0...done.
 Loaded symbols for /lib/libpthread.so.0
 Reading symbols from /lib/ld-linux.so.2...done.
 Loaded symbols for /lib/ld-linux.so.2
 Reading symbols from /lib/libnss_compat.so.2...done.
 Loaded symbols for /lib/libnss_compat.so.2
 Reading symbols from /lib/libnsl.so.1...done.
 Loaded symbols for /lib/libnsl.so.1
 Reading symbols from /lib/libnss_nis.so.2...done.
 Loaded symbols for /lib/libnss_nis.so.2
 Reading symbols from /lib/libnss_files.so.2...done.
 Loaded symbols for /lib/libnss_files.so.2
 Reading symbols from /usr/lib/gconv/ISO8859-1.so...done.
 Loaded symbols for /usr/lib/gconv/ISO8859-1.so
 Reading symbols from /usr/lib/gconv/ISO8859-2.so...done.
 Loaded symbols for /usr/lib/gconv/ISO8859-2.so
 Reading symbols from /lib/libnss_dns.so.2...done.
 Loaded symbols for /lib/libnss_dns.so.2
 Reading symbols from /usr/lib/sasl2/libcrammd5.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libcrammd5.so.2
 Reading symbols from /usr/lib/sasl2/libdigestmd5.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libdigestmd5.so.2
 Reading symbols from /usr/lib/sasl2/liblogin.so.2...done.
 Loaded symbols for /usr/lib/sasl2/liblogin.so.2
 Reading symbols from /lib/libcrypt.so.1...done.
 Loaded symbols for /lib/libcrypt.so.1
 Reading symbols from /usr/lib/sasl2/libotp.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libotp.so.2
 Reading symbols from /usr/lib/sasl2/libplain.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libplain.so.2
 Reading symbols from /usr/lib/sasl2/libsasldb.so.2...done.
 Loaded symbols for /usr/lib/sasl2/libsasldb.so.2
 Reading symbols from /usr/lib/libgdbm.so.3...done.
 Loaded symbols for /usr/lib/libgdbm.so.3
 Core was generated by `mutt'.
 Program terminated with signal 11, Segmentation fault.
 [New process 20837]
 #0  0xb73319e1 in free () from /lib/libc.so.6
 (gdb) bt full
 #0  0xb73319e1 in free () from /lib/libc.so.6
 No symbol table info available.
 #1  0x080c1c47 in safe_free (ptr=0x81e60d8) at lib.c:198
         p = (void **) 0x81e60d8
 #2  0x0805625a in mutt_parse_mailboxes (path=0xbfc8e468, s=0xbfc8e2d8,
 data=2, err=0xbfc8e478) at buffy.c:239
         tmp = (BUFFY **) 0x81e60c8
         tmp1 = (BUFFY *) 0x81066eb
         buf = "imap://host/az-isten-hu", '\0' <repeats 220 times>
         sb = {st_dev = 481171375049, __pad1 = 57704, __st_ino = 135038013,
 st_mode = 112, st_nlink = 3217614488,
   st_uid = 3074524040, st_gid = 2, st_rdev = 13204980408724226048, __pad2
 = 57752, st_size = -5245877500625551348,
   st_blksize = -1077354052, st_blocks = 71794000768, st_atim = {tv_sec =
 -1220448268, tv_nsec = -1220443264}, st_mtim = {
     tv_sec = -1077348376, tv_nsec = -1077354040}, st_ctim = {tv_sec =
 -1221418748, tv_nsec = 112},
   st_ino = 13204958679407321800}
         f1 =
 
"/home/daniell/imap:\000\000\000\000\000`ïÈ\000\000\000\0000l\023\b\000\000\000\000|ïÈ\bD-ï`ïÈ\020l\023\b\000\000\000\000\000\000\000\000ïg\023\b`ïÈ\000\000\000\000\000\000\000\000ïoAïPïÈ`ïÈïïÈzQ-ïïg\023\b(ïÈ$ïÈ\fïAïïC-ïïg\023\bïïÈ(ïÈ`ïÈOP-ïïoAïïU?ïï0>ï8ïÈz9-ï$ïÈ",
 '\0' <repeats 12 times>, "ïïÈ\000\000\000\000\000\000\000\000\001", '\0'
 <repeats 19 times>, "Pïï"...
         f2 = "/home/daniell/imap:\000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0 0 0 0 0 0ïï.ï 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
 0ïïïï\000\000\000\000\005\000\000\000 ïÈ\000\000\000\000 0
 1\000\000\000\000\231\231\231\031 0
 0ï\213\033\000ïoAï@\000\000\000\200ïÈ\000ïÈïï.ï
 ïÈPïÈ\n\000\000\000\000\000\000\000\200sAï\000\000\000\000dïÈaï0ï"...
         p = 0x0
         q = 0x0
 #3  0x08077866 in mutt_parse_rc_line (line=0xbfc8e588 "unmailboxes
 \"imap://host/az-isten-hu\"",
     token=0xbfc8e468, err=0xbfc8e478) at init.c:2376
         i = 24
         r = -1
         expn = {data = 0xbfc8e588 "unmailboxes \"imap://host/az-isten-
 hu\"", dptr = 0xbfc8e5b9 "",
   dsize = 49, destroy = 0}
 #4  0x080fbce5 in imap_subscribe (path=0x8226aa0 "imap://host/az-isten-
 hu", subscribe=0) at imap.c:1845
         conn = (CONNECTION *) 0x81c4cb0
         idata = (IMAP_DATA *) 0x81c5228
         buf = "az-isten-
 
hu\000\024\000\000\0008ï\023\bjC2ï\000\000\000\001z\000\000\000ïV(ï\030ïwïUïÈhïwïïïÈ\211BvïC\000\000\000ïtAïïV(ï\030ïwï\025ï\023\bhïwï\bïÈ\211BvïYBvï\030ïwï\030ïÈZDvïC\000\000\000ï\001\000\000ï\001\000\000LïÈPïÈï\001\000\000ï\001\000\000\030ïwïïïïï\001\000\000\000hïÈïïtïLïÈ\001\000\000\000PBvïLïÈLïÈ\022\000\000\000\003\000\000\000\217Fvï\000\000\000\000\001\000\000\0008\000\000\000\033[H\n"...
         mbox = "unmailboxes \"imap://host/az-isten-
 
hu\"\000Aï\004ïÈïïÈïï2ï\004ïÈ\232ï\033\bïïïïïïÈïïwïïoAï\004ïÈ\232ï\033\bïïÈïï1ï\004ïÈ\b\035\"\bïïÈ\232ï\033\b\000\000\000\000\001\200ïï\232ï\033\b\232ï\033\b\232ï\033\b\232ï\033\b\235ï\033\bïïïï\232ï\033\bïïïï",
 '\0' <repeats 20 times>, "
 \000\000\000\000\002\00040\000\000\000\000\000\000\000\000\232\000\000\000ïïÈ
 "...
         errstr =
 
"\000ïÈ\232ï\033\b\000\000\000\000\001\200ïï\232ï\033\b\232ï\033\b\232ï\033\b\232ï\033\b\233ï\033\bïïïï\232ï\033\bïïïï",
 '\0' <repeats 20 times>,
 
"\006\001\000\000\000\000\000\000ï\005\000\000\000\000\000ï\000\000\000\000\vï\023\bï\003\000\000\000kAï\000\000\000\000\000\000\000\000ïoAï\000\000\000\000ïïïï\030ïÈïj0ï\232ï\033\b\b\035\"\b(ïÈ\030ïwïXïÈï)vïïï\023\b\b\035\"\b\000kAï\000\000\000\000ïïïïïoAï\000\000\000\000\b\035\"\bXïÈïj0ï\232ï\033\b\b\035\"\bhïÈ\030121\bï"...
         err = {data = 0xbfc8e488 "", dptr = 0xb731e9cc
 "\211ï\213\205hïïï;\205lïïïs\022ï", dsize = 256,
   destroy = 136453384}
         token = {data = 0x8226b90 "imap://host/az-isten-hu", dptr =
 0x8226bb4 "", dsize = 128, destroy = 0}
         mx = {account = {user = '\0' <repeats 63 times>, login = '\0'
 <repeats 63 times>,
     pass = '\0' <repeats 63 times>, host = "host", '\0' <repeats 111
 times>, port = 143, type = 1 '\001',
     flags = 0 '\0'}, mbox = 0x8139328 "az-isten-hu"}
 #5  0x08054a10 in _mutt_select_file (f=0xbfc8fee0 "", flen=1024, flags=4,
 files=0x0, numfiles=0x0) at browser.c:873
         buf =
 
"ïz4ï\030ïwï\000\000\000\000ï\002\000\000xïÈ\201ïsïR\000\000\000\000\000\000\000ï>\020\bpïÈPïÈ\000\000\000\000\000\000\000\000x3\031\b\000\000%\000\0350.ï&\000\000\0009\000\000\00047\031\b\001",
 '\0' <repeats 15 times>, "tïÈS!>ï\000\000\000\000R", '\0' <repeats 15
 times>,
 
"ïï\023\bR\000\000\000ïoAï\030ïwïR\000\000\000\000\000\000\000ïïÈF\001tï\000\000\000\000R",
 '\0' <repeats 19 times>,
 
"F-8\000\000\000\000\000\000\000\000\000\004/wï\000\000\000\000\004\000\000\000ï\032.ï\000|Aï\220ïÈ\000\000\000\000ï[?"...
         prefix = '\0' <repeats 255 times>
 ---Type <return> to continue, or q <return> to quit---
         helpstr = "y:Exit  c:Chdir  m:Mask
 
?:Help\000ïïÈ\235ï\033\b\000\000\000\000\001\200ïï\235ï\033\b\235ï\033\b\235ï\033\b\235ï\033\bïï\033\bïïïï\235ï\033\bïïïï",
 '\0' <repeats 20 times>,
 
"\235ï\033\b\000\000\000\000\001\200ïï\000\000\000\b\000\000\000\000\235ï\033\b\235ï\033\b\236ï\033\bïïïï\000\000\000\000ïïïï\000\000\000\000ïïïï",
 '\0' <repeats 12 times>,
 
"ïï,ï\000\000\000\000H\000\000\000ïïÈï)vï$ï\023\b\200\b{ï\000kAï\000\000\000\000ïïïïïoAï\000\000\000\000"...
         title = "Mailboxes [10]\000://host/], File mask:
 
!^\\.[^.]\000\000\000\000\000\000\000\n\000\000\000\a\000\000\000ïïÈïïÈ\000kAï\000\000\000\000ïïÈïoAï
 ", '\0' <repeats 11 times>, "\a\000\000\000\232ï\033\b       \000
 102erfood
 
\000\033\b9\000\000\000ïïzï$ïÈïïÈ`ïwï\001\000\000\0009\000\000\000\b\000\000\000\001ï\023\b\000\000\000\000\000\000\000\0019\00012'\202-ïïï{ïx"...
         state = {entry = 0x8223408, entrylen = 75, entrymax = 256,
 imap_browse = 0, folder = 0x0, noselect = 0,
   marked = 0, unmarked = 0}
         menu = (MUTTMENU *) 0x81e76f0
         st = {st_dev = 72057594037927936, __pad1 = 7, __st_ino =
 3217617448, st_mode = 3077978007, st_nlink = 136453384,
   st_uid = 136453385, st_gid = 0, st_rdev = 13819561143263297543, __pad2 =
 61900, st_size = 7373046624,
   st_blksize = -1077349904, st_blocks = 582040894073470984, st_atim =
 {tv_sec = 0, tv_nsec = 0}, st_mtim = {tv_sec = 0,
     tv_nsec = 0}, st_ctim = {tv_sec = -1216890344, tv_nsec = 32}, st_ino =
 13819561435321074096}
         i = 11
         killPrefix = 0
         multiple = 0
         folder = 1
         buffy = 1
 #6  0x08065328 in _mutt_enter_fname (prompt=0x81042e7 "Open mailbox",
 buf=0xbfc8fee0 "", blen=1024, redraw=0x81e6a84,
     buffy=1, multiple=0, files=0x0, numfiles=0x0) at curs_lib.c:576
         ch = {ch = 63, op = 0}
 #7  0x0806885c in mutt_index_menu () at curs_main.c:1089
         buf = "\000Folder\000host/Folder", '\0' <repeats 991 times>
         helpstr = "q:Quit  d:Del  u:Undel  s:Save  m:Mail  r:Reply
 g:Group
 
?:Help\000Bvï\030ïwï3\000\000\000ïDvï\030ï\023\b>\000\000\000\001\000\000\000\000\000\000\000lb\022ï\000\b\000\000\001\000\000\000\030ïwïz\000\000\000p\v\000\000xïÈ\217Fvï\023ï\023\b\001\000\000\000PBvïïï,ïiFvï\030ïwï\030ïÈïKuï\023ï\023\b\200\b58Eqsï\024ïXïïï{ï0ï+ï\n\000\000\000HïÈÙzïïn?\001"...
         op = 99
         done = 0
         i = 0
         j = 0
         tag = 0
         newcount = 10
         oldcount = -1
         rc = -1
         menu = (MUTTMENU *) 0x81e6a70
         cp = 0x81042e7 "Open mailbox"
         index_hint = 13
         do_buffy_notify = 1
         close = 0
         attach_msg = 0
 #8  0x08086cd7 in main (argc=1, argv=0xbfc90b24) at main.c:1020
         folder = "imap://host/INBOX", '\0' <repeats 226 times>
         subject = 0x0
         includeFile = 0x0
         draftFile = 0x0
         newMagic = 0x0
         msg = (HEADER *) 0x0
         attach = (LIST *) 0x0
         commands = (LIST *) 0x0
         queries = (LIST *) 0x0
         alias_queries = (LIST *) 0x0
         sendflags = 0
         flags = 0
         version = 0
 ---Type <return> to continue, or q <return> to quit---
         i = 135353004
         explicit_folder = 0
         dump_variables = 0
         double_dash = 1
         nargc = 1
 (gdb) quit
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3389#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent