Bug#307314: mutt: header cache seg fault when accessing same folder from two different locales

2007-03-08 Thread Christoph Berg
tags 307314 + moreinfo
thanks

Re: David Everly 2005-05-02 [EMAIL PROTECTED]
 Package: mutt
 Version: 1.5.9-1
 Severity: normal
 
 I have a setup where all my mail goes to a local instance of
 courier-imap.  Then I use mutt to access this imap server.  I have a
 habit of leaving mutt running on my INBOX on my local machine.  Then at
 times during the day I ssh to this machine from whichever unix machine I
 happen to be near and start a second instance of mutt.  It seems that
 because this other machine uses a different locale, this practice
 corrupts the header cache and causes a segmentation fault some time
 later.  Here are the exact steps to reproduce this (for convenience, all
 on one machine):
 
- set the locale to LANG=en_US.UTF-8 and open mutt to the INBOX on an
  imap server
- in another window or terminal, unset any locale (LANG) so that it
  defaults to C and open a second instance of mutt to the INBOX on
  the same imap server
- delete a message on the second instance of mutt
- exit the second instance of mutt
- wait until a new message is received on the first instance
  (LANG=en_US.UTF-8) of mutt
- exit the first instance (LANG=en_US.UTF-8) of mutt
- open again the first instance (LANG=en_US.UTF-8) of mutt to the
  INBOX on the imap server (this is the point where it will seg fault
  unless you delete the header cache)

Hi David,

sorry for the late followup - can you still reproduce this crash with
recent mutt packages? I just tried here and couldn't.

Christoph
-- 
[EMAIL PROTECTED] | http://www.df7cb.de/


signature.asc
Description: Digital signature


Bug#307314: mutt: header cache seg fault when accessing same folder from two different locales

2007-03-08 Thread deckrider

This appears to be fixed for me also (mutt 1.5.13-1.1).

On 3/8/07, Christoph Berg [EMAIL PROTECTED] wrote:

tags 307314 + moreinfo
thanks

Re: David Everly 2005-05-02 [EMAIL PROTECTED]
 Package: mutt
 Version: 1.5.9-1
 Severity: normal

 I have a setup where all my mail goes to a local instance of
 courier-imap.  Then I use mutt to access this imap server.  I have a
 habit of leaving mutt running on my INBOX on my local machine.  Then at
 times during the day I ssh to this machine from whichever unix machine I
 happen to be near and start a second instance of mutt.  It seems that
 because this other machine uses a different locale, this practice
 corrupts the header cache and causes a segmentation fault some time
 later.  Here are the exact steps to reproduce this (for convenience, all
 on one machine):

- set the locale to LANG=en_US.UTF-8 and open mutt to the INBOX on an
  imap server
- in another window or terminal, unset any locale (LANG) so that it
  defaults to C and open a second instance of mutt to the INBOX on
  the same imap server
- delete a message on the second instance of mutt
- exit the second instance of mutt
- wait until a new message is received on the first instance
  (LANG=en_US.UTF-8) of mutt
- exit the first instance (LANG=en_US.UTF-8) of mutt
- open again the first instance (LANG=en_US.UTF-8) of mutt to the
  INBOX on the imap server (this is the point where it will seg fault
  unless you delete the header cache)

Hi David,

sorry for the late followup - can you still reproduce this crash with
recent mutt packages? I just tried here and couldn't.

Christoph
--
[EMAIL PROTECTED] | http://www.df7cb.de/

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF8FzBxa93SlhRC1oRAsZ3AJ9h8Ebdmc9Kn9U8G9nxPMSeyk979QCfRqdn
Fck9VCk0CDVfxICrVqbQ6q0=
=bOY0
-END PGP SIGNATURE-





--
ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
   Information:  http://www.expita.com/nomime.html


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307314: mutt: header cache seg fault when accessing same folder from two different locales

2005-05-02 Thread David Everly
Package: mutt
Version: 1.5.9-1
Severity: normal

I have a setup where all my mail goes to a local instance of
courier-imap.  Then I use mutt to access this imap server.  I have a
habit of leaving mutt running on my INBOX on my local machine.  Then at
times during the day I ssh to this machine from whichever unix machine I
happen to be near and start a second instance of mutt.  It seems that
because this other machine uses a different locale, this practice
corrupts the header cache and causes a segmentation fault some time
later.  Here are the exact steps to reproduce this (for convenience, all
on one machine):

   - set the locale to LANG=en_US.UTF-8 and open mutt to the INBOX on an
 imap server
   - in another window or terminal, unset any locale (LANG) so that it
 defaults to C and open a second instance of mutt to the INBOX on
 the same imap server
   - delete a message on the second instance of mutt
   - exit the second instance of mutt
   - wait until a new message is received on the first instance
 (LANG=en_US.UTF-8) of mutt
   - exit the first instance (LANG=en_US.UTF-8) of mutt
   - open again the first instance (LANG=en_US.UTF-8) of mutt to the
 INBOX on the imap server (this is the point where it will seg fault
 unless you delete the header cache)

Thanks for your help!

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages mutt depends on:
ii  exim4   4.50-4   metapackage to ease exim MTA (v4) 
ii  exim4-daemon-light [mail-tr 4.50-4   lightweight exim MTA (v4) daemon
ii  libc6   2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libdb4.34.3.27-2 Berkeley v4.3 Database Libraries [
ii  libgnutls11 1.0.16-9 GNU TLS library - runtime library
ii  libidn110.5.13-1.0   GNU libidn library, implementation
ii  libncursesw55.4-4Shared libraries for terminal hand
ii  libsasl22.1.19-1.5   Authentication abstraction library

-- no debconf information

-- 
Encrypted Mail Preferred:
Key ID:  8527B9AF
Key Fingerprint:  E1B6 40B6 B73F 695E 0D3B  644E 6427 DD74 8527 B9AF
Information:  http://www.gnupg.org/

ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
Information:  http://www.expita.com/nomime.html


signature.asc
Description: Digital signature


Bug#307314: mutt: header cache seg fault when accessing same folder from two different locales

2005-05-02 Thread David Everly
On Mon, May 02, 2005 at 08:13:09PM +0200, Adeodato Simó wrote:
   To make sure it fixes, what about following this procedure:
 
 - with the old package, set header_cache to a new dir, e.g.
   /tmp/cache1, and reproduce the crash.
 
 - install the new package set header_cache to e.g. /tmp/cache2 (or
   rm cache1/*), and try to reproduce following the same steps than
   with the old package.

Sorry, but I see no change in behavior (the bug is not fixed) with the
new package.

-- 
Encrypted Mail Preferred:
Key ID:  8527B9AF
Key Fingerprint:  E1B6 40B6 B73F 695E 0D3B  644E 6427 DD74 8527 B9AF
Information:  http://www.gnupg.org/

ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
Information:  http://www.expita.com/nomime.html


signature.asc
Description: Digital signature


Bug#307314: mutt: header cache seg fault when accessing same folder from two different locales

2005-05-02 Thread David Everly
On Mon, May 02, 2005 at 06:25:43PM +0200, Adeodato Simó wrote:
 - do you set $charset in your ~/.muttrc?

No, since I have previously followed /usr/share/doc/mutt/README.Debian.

 - can you reproduce without using your ~/.muttrc? (I.e., start mutt
   with mutt -F /dev/null).

I haven't tried, but I'm fairly certain I will be unable to reproduce
this without my ~/.muttrc, since header_cache is by default not enabled.

I'm attaching my ~/.muttrc for informational purposes.  I've done no
other mutt customization other than that.

-- 
Encrypted Mail Preferred:
Key ID:  8527B9AF
Key Fingerprint:  E1B6 40B6 B73F 695E 0D3B  644E 6427 DD74 8527 B9AF
Information:  http://www.gnupg.org/

ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
Information:  http://www.expita.com/nomime.html
#my_hdr Reply-To: David Everly [EMAIL PROTECTED]
alternates [EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL PROTECTED]|[EMAIL 
PROTECTED]

set mbox_type=Maildir
set imap_user=deverly
set folder=imap://localhost/
set imap_home_namespace=INBOX.
set spoolfile=+INBOX
set mbox=+INBOX
set postponed=+INBOX.Drafts
set record=+INBOX.Sent
set timeout=15
set header_cache=~/.mutt_header_cache

set crypt_autosmime=no
set editor=vim \+set ft=mail\
set index_format=%4C %Z %{%b %d} %-15.15L (%4c) %s
set mark_old=no
set markers=no
set mime_forward=yes
set crypt_autosign=yes
set pgp_timeout=14400
set sort=threads
set sort_aux=reverse-date
set strict_threads=yes

# colors
color attachment yellowdefault
color hdrdefault blue  default
color markersbrightred default
color normal default   default
color quoted green default
color signature  cyan  default
color tilde  blue  default
color tree   red   default

# get rid of most headers in the default view
ignore *
unignore  from subject to cc date user-agent x-mailer
hdr_order from subject to cc date user-agent x-mailer

# interface with abook
#set query_command=abook --mutt-query '%s'
#macro pager A |'abook --add-email'\n

# ldap interface to evolution address book
set query_command = /usr/lib/lbdb/mutt_ldap_query --ignorant '%s'

# report spam
#macro index X |'spamassassin -r'\n

# get new mail
macro index G |'fetchmail ; fetchyahoo'\n 'get new mail from servers'

# use muttprint
set print_command=muttprint

# move to Inbox and mark as non-spam (ham)
macro index,pager I 'enter-commandunset wait_keyenterpipe-entrysa-learn 
--no-sync --hamenterenter-commandset 
wait_keyentersave-entry+INBOXenter' 'mark the current message as Ham'

# move to Spam and mark as spam (spam)
macro index,pager X 'enter-commandunset wait_keyenterpipe-entrysa-learn 
--no-sync --spamenterenter-commandset 
wait_keyentersave-entry+INBOX.Spamenter' 'mark the current message as 
Spam'



signature.asc
Description: Digital signature


Bug#307314: mutt: header cache seg fault when accessing same folder from two different locales

2005-05-02 Thread David Everly
On Tue, May 03, 2005 at 05:19:14AM +0200, Adeodato Simó wrote:
  OK. The maintainer of the header cache patch ask me to try another
  fix:
 
  
 http://the-swirl.org/~adeodato/tmp/2005/05/02/mutt-307314/mutt_1.5.9-1+fix307314b_i386.deb
 
  2001d3504a72b0a0bb6a28ee14c347da  mutt_1.5.9-1+fix307314b_i386.deb

Sorry I see no difference in this one either.  FYI, I am using a file as
cache (instead of a directory).

Also, I find that a work around for me is to start mutt from a script
which first exports LANG=en_US.UTF-8 before starting mutt.

I may be unavailable for most of tomorrow, so don't be worried, I can
respond when I return late in the evening.

-- 
Encrypted Mail Preferred:
Key ID:  8527B9AF
Key Fingerprint:  E1B6 40B6 B73F 695E 0D3B  644E 6427 DD74 8527 B9AF
Information:  http://www.gnupg.org/

ASCII ribbon campaign:
()  against HTML email
/\  against Microsoft attachments
Information:  http://www.expita.com/nomime.html


signature.asc
Description: Digital signature