Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190359 - mail-client/pine-4.64-r5 crashes with signal 11 on start
Summary: mail-client/pine-4.64-r5 crashes with signal 11 on start
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-27 02:03 UTC by Michael Kers
Modified: 2007-09-01 23:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
pine crash dump info (.pine-crash,33.99 KB, text/plain)
2007-08-27 02:06 UTC, Michael Kers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kers 2007-08-27 02:03:56 UTC
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
Comment 1 Michael Kers 2007-08-27 02:06:29 UTC
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.
Comment 2 Michael Kers 2007-08-27 02:11:35 UTC
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.
Comment 3 Michael Kers 2007-08-27 02:36:27 UTC
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
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2007-08-31 17:40:32 UTC
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.
Comment 5 Michael Kers 2007-08-31 20:18:22 UTC
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.
> 

Comment 6 Michael Kers 2007-08-31 20:26:52 UTC
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.                                                                                     
Comment 7 Michael Kers 2007-08-31 20:30:39 UTC
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.
Comment 8 Andrej Kacian (RETIRED) gentoo-dev 2007-09-01 05:13:45 UTC
Ok, -r7 is in the tree. Give it a whirl when it hits your portage mirror.
Comment 9 Michael Kers 2007-09-01 23:58:55 UTC
Yay! It works, no more crashing with 4.64-r7!

Bug fixed!