Ticket #242 (new Bug)

Opened 1 year ago

Crash when selecting "Details..." on INBOX (on a Courier-IMAP server)

Reported by: niere Owned by: Cyrus Daboo
Priority: minor Milestone: unassigned
Component: Application Version: v4.0.8
Severity: Crash/data loss Keywords:
Cc: Operating System: Linux
OS Version:

Description

When I choose "Details..." from the right-click-menu of a certain INBOX, my Mulberry segfaults. Since I don't have it compiled myself (yet), the gdb output is kind of thin:

(gdb) run
Starting program: /home/xxxxx/bin/mulberry 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1212787024 (LWP 27710)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread -1216570464 (LWP 27721)]
[New Thread -1224963168 (LWP 27722)]
[New Thread -1233355872 (LWP 27723)]
[New Thread -1241748576 (LWP 27724)]
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212787024 (LWP 27710)]
0xb7cafc53 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7cafc53 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7caf975 in strdup () from /lib/tls/i686/cmov/libc.so.6
#2  0x084b08ed in _STL::ends<char, _STL::char_traits<char> > ()
#3  0x084d7245 in _STL::ends<char, _STL::char_traits<char> > ()
#4  0x084d2d2a in _STL::ends<char, _STL::char_traits<char> > ()
#5  0x084cc5a9 in _STL::ends<char, _STL::char_traits<char> > ()
#6  0x084c37f2 in _STL::ends<char, _STL::char_traits<char> > ()
#7  0x084c2eca in _STL::ends<char, _STL::char_traits<char> > ()
#8  0x084c332d in _STL::ends<char, _STL::char_traits<char> > ()
#9  0x084c354f in _STL::ends<char, _STL::char_traits<char> > ()
#10 0x084d2665 in _STL::ends<char, _STL::char_traits<char> > ()
#11 0x083f1752 in _STL::ends<char, _STL::char_traits<char> > ()
#12 0x0844233a in _STL::ends<char, _STL::char_traits<char> > ()
#13 0x082481e5 in _STL::ends<char, _STL::char_traits<char> > ()
#14 0x08243cd3 in _STL::ends<char, _STL::char_traits<char> > ()
#15 0x08242cd1 in _STL::ends<char, _STL::char_traits<char> > ()
#16 0x0835558d in _STL::ends<char, _STL::char_traits<char> > ()
#17 0x083a0bc6 in _STL::ends<char, _STL::char_traits<char> > ()
#18 0x083a3b98 in _STL::ends<char, _STL::char_traits<char> > ()
#19 0x0871e35c in JCompareSizes ()
#20 0x086962c8 in JXScrollbar::CompareScrolltabValues ()
#21 0x0869f92a in JXMenuTable::~JXMenuTable ()
#22 0x08666492 in JXDisplay::JXErrorHandler ()
#23 0x086700ac in JXWindow::GetNextMapNotifyEvent ()
#24 0x0866f681 in JXWindow::GetNextMapNotifyEvent ()
#25 0x08654d89 in JXSelectionManager::Data::CompareAtoms ()
#26 0x0861290d in strndup ()
#27 0x086126a9 in strndup ()
#28 0x0806764a in ?? ()
#29 0xb7c588cc in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#30 0x08067379 in ?? ()
(gdb) 

The (IMAP-)logging output might contain more information:

--> #Logging started by Mulberry on Mon Jul  9 12:57:53 2007

--> #1 Starting IMAP Session on Mon Jul  9 12:58:08 2007: xxxx.xxxxxxxxxxxxx.xx

--> #1.-1212856656 Mon Jul  9 12:58:09 2007
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.

--> #1.-1212856656 Mon Jul  9 12:58:09 2007
A00001 CAPABILITY
* CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION
A00001 OK CAPABILITY completed

--> #1.-1212856656 Mon Jul  9 12:58:14 2007


--> #1.-1212856656 Mon Jul  9 12:58:14 2007
A00003 LSUB "" "*"
* LSUB (\HasNoChildren) "." "INBOX.xxxxx-xxxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxx.xxxxx-xxxxxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxx.xxxxx-xxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxx.xxxxx-xxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxx.xxxxx-xxxxxxxxxxxxxx"
* LSUB (\HasChildren) "." "INBOX.xxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxx-xxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxxxx-xxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxxxx-xxxxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxxxxx-xxxxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxxxxxxxxx-xxxxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxxx-xxxxx"
* LSUB (\HasNoChildren) "." "INBOX.xxxxxxx-xxxxxxxx"
* LSUB (\HasNoChildren) "." "INBOX.Trash"
* LSUB (\HasNoChildren) "." "INBOX.Sent"
* LSUB (\Noselect \HasChildren) "." "INBOX"
A00003 OK LSUB completed

--> #1.-1212856656 Mon Jul  9 12:58:14 2007
A00004 LIST "" INBOX
* LIST (\Marked \HasChildren) "." "INBOX"
A00004 OK LIST completed

--> #1.-1212856656 Mon Jul  9 12:58:36 2007
A00005 STATUS INBOX (MESSAGES RECENT UNSEEN UIDVALIDITY UIDNEXT)
* STATUS "INBOX" (MESSAGES 14 RECENT 1 UIDNEXT 4072 UIDVALIDITY 1157269085 UNSEEN 3)
A00005 OK STATUS Completed.

--> #1.-1212856656 Mon Jul  9 12:58:37 2007
A00006 MYRIGHTS INBOX
* MYRIGHTS "INBOX" "acdilrsw"
A00006 OK MYRIGHTS completed.

--> #1.-1212856656 Mon Jul  9 12:58:37 2007
A00007 GETACL INBOX
* ACL "INBOX" "owner" "acdilrsw" "administrators" "acdilrsw"
A00007 OK GETACL completed.

--> #1.-1212856656 Mon Jul  9 12:58:37 2007
A00008 GETQUOTAROOT INBOX
* QUOTAROOT "INBOX" "ROOT"
* QUOTA "ROOT"

And with imtest (an IMAP testing tool) I get the following response from the server:

A0000 GETQUOTAROOT INBOX
* QUOTAROOT "INBOX" "ROOT"
* QUOTA "ROOT"
A0000 OK GETQUOTAROOT Ok.
Note: See TracTickets for help on using tickets.