Bug 99389

Summary: mutt crashes with segfault while sorting by thread
Product: [Retired] Red Hat Linux Reporter: Mate Wierdl <mw-redhat>
Component: muttAssignee: Bill Nottingham <notting>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
URL: http://www.csi.hu/mw/mutt-bug.tgz
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-21 03:58:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Mate Wierdl 2003-07-18 15:32:32 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
starting mutt with the maildir and muttrc provided, it crashes
with a segfault.  This happens during sorting by thread.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Download


and then

tar zxvfp mutt-bug.tgz
cd mutt-bug

2.  Start mutt with 

mutt -f Maildir -F mymuttrc


Actual Results:  Sorting mailbox...Segmentation fault

and the gnome terminal's foreground turns light blue. 

Expected Results:  see the two messages in the maildir.  And I do see them when
I do not load the rc file (which contains the single line

set sort=threads		# primary sorting method


Additional info:

strace output of

strace -o strace.out mutt -f Maildir -F mymuttrc

is included in the tarball.

If I start mutt from a script, then not only the terminal turns blue, but
echoing of my typing gets turned off too.  Try running the script


included in the tarball.

I sometimes saw mutt crash when subject line was long/weird, but
I have not  had time to investigate at the time.

Comment 1 Mate Wierdl 2003-07-21 03:06:28 UTC
The problem does not occur when I compile from sources with no arguments to 
./configure.  But as soon as I specify --with-slang, then I see the problem 
again.  It does not matter if I use the 1.4.1 or 1.5.4 sources.

Comment 2 Bill Nottingham 2003-07-21 03:11:08 UTC
What happens if you use the rawhide slang packages (cf: bug 97216)?
What locale are you running in, if any?

Comment 3 Mate Wierdl 2003-07-21 03:58:26 UTC
Indeed, installing the slang packages from rawhide, and recompiling 
mutt from sources (both 1.4 or 1.5.4) fixes the problem.

LC_TYPE is not set for me, and I have

cat /etc/sysconfig/i18n

Hope mutt/slang in RH beta will be OK.  Please test with 


Comment 4 Bill Nottingham 2003-07-21 04:00:52 UTC
Yeah, that test works fine for me with current code, that's why I immediately
thought of the slang problem.