Re: [Mutt] #3482: IMAP Segmentation fault when fetching message headers
#3482: IMAP Segmentation fault when fetching message headers
-------------------------------------+--------------------------------------
Reporter: duyang | Owner: brendan
Type: defect | Status: new
Priority: major | Milestone:
Component: IMAP | Version: 1.5.21
Keywords: IMAP Segmentation fault |
-------------------------------------+--------------------------------------
Comment(by duyang):
Replying to [comment:4 m-a]:
> {{{
> Please obtain a stack backtrace from GDB, with "backtrace" and "info
> locals" -- or possibly "backtrace full" which you need to double check
> for sensitive data *before* posting it.
> }}}
this should be what you need,
---------------------------------------------------
#0 mx_update_context (ctx=0x814a910, new_messages=116) at mx.c:1542
1542 h->security = crypt_query (h->content);
(gdb) backtrace
#0 mx_update_context (ctx=0x814a910, new_messages=116) at mx.c:1542
#1 0x080dbe7a in imap_read_headers (idata=0x81d38a0, msgbegin=0,
msgend=116) at message.c:376
#2 0x080d9ca7 in imap_open_mailbox (ctx=0x814a910) at imap.c:756
#3 0x0808ddc6 in mx_open_mailbox (path=0xbfe37158
"imaps://xxxxx_xx@xxxxxxxxxxxx/INBOX",
flags=<value optimized out>, pctx=<value optimized out>) at mx.c:661
#4 0x08082669 in main (argc=4, argv=0xbfe37394) at main.c:1017
(gdb) info locals
h = 0x0
msgno = 46
(gdb) backtrace full
#0 mx_update_context (ctx=0x814a910, new_messages=116) at mx.c:1542
h = 0x0
msgno = 46
#1 0x080dbe7a in imap_read_headers (idata=0x81d38a0, msgbegin=0,
msgend=116) at message.c:376
ctx = 0x814a910
buf = '\000' <repeats 44 times>,
"p\371\026\b\002\000\000\000\275\214A\267\360Z?_\343\277Q\373\016\b*",
'\000' <repeats 11 times>"\375,
\212A\267\016\000\000\000\200\000\000\000\016\000\000\000l\000\000\000p\026\\\267U\332Y\267\302oj\345@\"\036\b4WJZ\316\031F\213@[\343\277R:\212\071\350!\036\b\336\345\372\250\244H?\210M\302\064\264\344
\324.\311?\243?\346lM\267c\257\310>)\200\267\317\346\246Tc?B\221\221\216'I@Wb\227C]h\"\231\002\310\314i
\277\301$\223Q\346\350\310\360\304\327\266a!\231\271a\233.\311\350\262\000\000\000\000p\026\\\267X\a\000\000\240\023\\\267\364\377[\267\240\023\\\267\210F<\267x[?\243M\267\000\000\000\000\000\000\000\000\364\337C\267\310_\035\b\230[\343\277\334y=\267\310_\035\b\350!\036\b\310[?~A\267\364\337C\267\310_\035\b\330[\343\277s<=\267\310_\035\b\025\000\000\000\000\000\000\000\000\"\036\b\350\374C\267\350!\036\b\313}A\267\002\000\000\000\310_\035\b\330!\036\b\030\\\343"...
hdrreq = 0x81e3740 "BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT TO
CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO
REPLY-TO LINES LIST-POST X-LABEL)]"
fp = 0x81e37e0
tempfile = "/tmp/mutt-
omega-1000-2052-19025749951843760346\000\bt4\035\b(\000\000\000\000@\000\000\027\000\000\000\216~M\267\245\000\000\000\310^\343\277\000\243M\267X\337\035\b\020\370i\267\364\357i\000\020\370i\267\230#\036\b\264P\035\b\000\000\000\000\001\000\000\000\a\000\000\000\020\370i\267@\000\000\000\027\000\000\000\005\000\000\000$\331Y\267/\334Y\267\020\000\000\000\230#\036\b\230#\036\b\240\023\\\267X\000\000\000\216~M\267\364\357i\267\200I\035\b\000\004\000\000H_\343\277{\367`\267(L\035\b\027\000\000\000L_\343\277\364\377[\267\320_\024\b\001\000\000\000h_\343\277P\305T\267/\334Y\267(3\035\bP\305T\267\320_\024\bQ\373\016\b\250_\343\277\300F<\267\320_\024\b'\000\000\000\216~M\267"
msgno = <value optimized out>
h = {sid = 0, data = 0x81fe710, received = 0, content_length = 0}
status = <value optimized out>
rc = <value optimized out>
mfhrc = <value optimized out>
oldmsgcount = 0
fetchlast = 117
maxuid = 1293712734
progress = {inc = 10, flags = 2, msg = 0x80f16ba "Fetching message
headers...", pos = 110,
size = 117, timestamp = 0, sizestr = "117", '\000' <repeats 124
times>}
retval = <value optimized out>
uid_validity = 0x0
puidnext = 0x0
uidnext = <value optimized out>
evalhc = 117
#2 0x080d9ca7 in imap_open_mailbox (ctx=0x814a910) at imap.c:756
idata = 0x81d38a0
status = 0x81d5a28
buf =
"\"INBOX\"\000xxxxx_xx@xxxxxxxxxxxx/INBOX\000\335n\267\310d?Fm\267\017\000\000\000\340\004\\\267\310d\000\000\036\023k\267\320\034\024\b\001\000\000\000E\022k\267\364\317n\267\211Fm\267\364\317n\267\be\343\277\061Im\267\017\000\000\000\001\000\000\000\200Fm\267\024e\343\277h\000\000\000\000\"\020\bc\207R\267\364\377[\267\364\025M\267\001\000\000\000\000\"\020\bh\000\000\000\340\004\\\267\377\377\377\377\377\377\377\377\340\004\\\267\000\"\020\b@e\343\277\177\022M\267\340\004\\\267\000\"\020\bh\000\000\000\377\377\377\377\304?s\267\252qj\267\364\377[\267h\000\000\000\300F<\267Pe?\025M\267h\000\000\000\340\004\\\267pe?\037M\267\340\004\\\267\000\"\020\bh\000\000\000\001\000\000\000\364\377[\267\340\004\\\267\210e\343\277C^L\267\340\004\\\267\262\367k\267<\335n\267\000\003\000\000\250e\343\277\071Gm\267\340\004\\\267\200Fm\267\"\000\000\000"...
bufout = "SELECT
\"INBOX\"\000\267\001\000\000\000\304?s\267pa?%s\267Ha\343\277\322\370q\267\070a\343\277\304Lj\267,a\343\277TJs\267\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\330#s\267\000\000\000\000\000\000\000\000\364\377[\267\320_\024\b\304\372\r\bhf\343\277\063oJ\267\000\000\000\000pa\343\277,a\343\277\070a\343\277c\377m\267\330#s\267\000\000\000\000\000\000\000\000
\371[\000\273mj\267pf\343\277\002\000\000\000\352\343L\267\000\000\000\000\000a\343\277\300F<\267\364\317n\267\344a\343\277(\335n\267Xa?Fm\267d\000\000\000\340\004\\\267\377\377\377\377\304?s\267\273mj\267\001\000\000\000\200a\343\277V\360q\267\216\310G\267\315{j\267\230a\343\277\061Im\267@\244<\267\002\000\000\000\320Rr\267-cj\267P.s\267\304?s\267\254\312F\267\005\000\000\000\020b\343\277!\366q\267}\224k\267\364\317n\267<\335n\267-\000\000\000\bd\343\277\005\000\000\000\340a\343\277\001\000\000\000\200F"...
count = <value optimized out>
mx = {account = {user = "xxxxx_xx", '\000' <repeats 54 times>,
login = '\000' <repeats 63 times>, pass = '\000' <repeats 63
times>,
host = "imap.163.com", '\000' <repeats 115 times>, port = 993,
type = 1 '\001',
flags = 18 '\022'}, mbox = 0x80feb88 "INBOX"}
pmx = {account = {user = "xxxxx_xx", '\000' <repeats 54 times>,
login = '\000' <repeats 63 times>, pass = '\000' <repeats 63
times>,
host = "imap.163.com", '\000' <repeats 115 times>, port = 993,
type = 1 '\001',
flags = 18 '\022'}, mbox = 0x0}
rc = <value optimized out>
#3 0x0808ddc6 in mx_open_mailbox (path=0xbfe37158
"imaps://xxxxx_xx@xxxxxxxxxxxx/INBOX",
flags=<value optimized out>, pctx=<value optimized out>) at mx.c:661
ctx = 0x814a910
rc = <value optimized out>
#4 0x08082669 in main (argc=4, argv=0xbfe37394) at main.c:1017
folder = "imaps://xxxxx_xx@xxxxxxxxxxxx/INBOX", '\000' <repeats
219 times>
subject = 0x0
includeFile = 0x0
draftFile = 0x0
newMagic = 0x0
msg = 0x0
attach = 0x0
commands = 0x0
queries = <value optimized out>
alias_queries = <value optimized out>
sendflags = 0
flags = 0
version = 0
i = <value optimized out>
explicit_folder = 0
dump_variables = 0
double_dash = 4
nargc = <value optimized out>
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3482#comment:5>
Mutt <http://www.mutt.org/>
The Mutt mail user agent