A month ago or so pine started crashing every time I would go to start it up. I've been using pine for many years to read my email. I use pine with maildir. Now, suddenly pine started crashing. I did not perform an upgrade, this happened rather spontaneously. Upgrading to 4.64-r5 didn't fix the problem. I suspected that one particular email I received might have caused it, so I removed the previous 10 emails received. No luck, still crashed. My final suspicion is that pine simply cannot handle the number of email messages I have. I have a large, but not unreasonable number: 5075. As I said, removing a few messages from just after I started having the crashes didn't help. Reproducible: Always Steps to Reproduce: 1. type `pine` on command line, press enter 2. crash with sigsegv 3. Actual Results: kers@willdkers ~ $ pine Problem detected: "Received abort signal(sig=11)". Pine Exiting. Attempting to save debug file to /home/kers/.pine-crash Aborted kers@willdkers ~ $ Expected Results: Pine should work. I will attach the .pine-crash file to this bug report
Created attachment 129274 [details] pine crash dump info Crash log seems to indicate it may have something to do with maildir/imap support built into pine.
The crashes began to occur on may 16th, 2007. This was around email message 4704. At the time I tried removing about 12 messages to see if this would help. It didn't, the crashes persisted.
Okay, I tried running gdb against it... Watching it crash with symbols compiled in (CXXFLAGS=-g option and USE="debug" for emerge). Here is the output from the crash: Program received signal SIGSEGV, Segmentation fault. R RelNotes maildir_get_date (stream=<value optimized out>, msgno=<value optimized out>) at maildir.c:2140 2140 maildir.c: No such file or directory. in maildir.c (gdb) bt #0 maildir_get_date (stream=<value optimized out>, msgno=<value optimized out>) at maildir.c:2140 #1 0x00000000005e5a65 in maildir_parse_dir (stream=0x9c3f80, nmsgs=0, dirtype=Cur, names=0xa02bf0, nfiles=5075, full=<value optimized out>) at maildir.c:718 #2 0x00000000005e702d in maildir_parse_folder (stream=0x9c3f80, full=1) at maildir.c:569 #3 0x00000000005e9f3c in maildir_open (stream=0x9c3f80) at maildir.c:498 #4 0x00000000005a196b in mail_open (stream=0x9c3f80, name=0x7fff11cfa050 "inbox", options=<value optimized out>) at mail.c:1221 #5 0x000000000051035d in pine_mail_open (stream=0x8f9ea0, mailbox=0x7fff11cfa050 "inbox", openflags=1, retflags=0x7fff11cfc160) at pine.c:4972 #6 0x0000000000434281 in context_open (context=<value optimized out>, old=0x0, name=<value optimized out>, opt=117440512, retflags=0x7fff11cfc160) at context.c:342 #7 0x0000000000498dbc in do_broach_folder (newfolder=0x9ae060 "INBOX", new_context=0xffffffff9d816561, streamp=0x0, flags=0) at mailcmd.c:8283 #8 0x000000000051772b in main (argc=<value optimized out>, argv=0x7fff11cfd858) at pine.c:1290
Hm, before we take this upstream, can you please try 4.64-r6, and if that doesn't help, wait for 4.64-r7 with latest chappa-all patchset (it was updated on Aug 26th). I will be adding it in few hours.
I've been in touch with Eduardo Chappa (author of that patchset). Using his latest maildir.c without any other patches (to only that file) applied seems to work fine. I will try the latest as you suggested to see if it goes away. > Hm, before we take this upstream, can you please try 4.64-r6, and if that > doesn't help, wait for 4.64-r7 with latest chappa-all patchset (it was updated > on Aug 26th). I will be adding it in few hours. >
Okay, the 4.64-r6 also breaks. I will wait for -r7 and try it. kers@willdkers ~ $ pine -v Pine 4.64 built Fri Aug 31 14:22:15 MDT 2007 on willdkers kers@willdkers ~ $ pine Problem detected: "Received abort signal(sig=11)". Pine Exiting. Attempting to save debug file to /home/kers/.pine-crash Aborted kers@willdkers ~ $ eix pine [... omitted for brevity] [D] mail-client/pine Available versions: ~4.64 4.64-r1 ~4.64-r3 4.64-r5 4.64-r5[1] ~4.64-r6 Installed versions: 4.64-r6(14:22:26 08/31/07)(debug -kerberos -largeterminal -ldap pam -passfile ssl) Homepage: http://www.washington.edu/pine/ http://staff.washington.edu/chappa/pine/ Description: A tool for reading, sending and managing electronic messages. [... output omitted] Found 4 matches.
Regarding my discussions with Eduardo about this crash: either his latest patchset fixes this issue, or it is a problem with Gentoo and any additional patches besides the Chappa-patch that are being done on the source prior to compilation.
Ok, -r7 is in the tree. Give it a whirl when it hits your portage mirror.
Yay! It works, no more crashing with 4.64-r7! Bug fixed!