mutt is crashing with segfault when running a macro
- To: Mutt users list <mutt-users@xxxxxxxx>
- Subject: mutt is crashing with segfault when running a macro
- From: Asif Iqbal <vadud3@xxxxxxxxx>
- Date: Mon, 6 Sep 2010 15:01:56 -0400
- Cc: mutt-dev@xxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:cc:content-type; bh=W8zbdkiZDdkKLoLapQZtY5ybrw9G+iyFEC4DM8lYoas=; b=TqmujLJRt/tf0c0K7PsX1QFZhO1I1CKdKgVNeua8wFAq8JOhehxwZFxlaarYPFDZNg 2uodg71QXthwLuONopwttML7RrKg+SmFcVy6UF8E+vcpjlRLZeGBWksMwBRl+yuRskxi FitDOi0wJ7vKP339FTxjB4Gq5S6/PARIVKGNs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=RzaPOiogFsrUhgk6eEN5PqktVibu3q8mObBosSeNWCwt/7b7bWRxuk2g9P1f+v57eV XONll1yy5PGTzOL7JjXYEMA7kQBVvcrg84Rb1yUv4k8VQ2v+dkdka08GqsLGLv/zJhm3 llgkcLM3au1FADp6eQtERzTXw6HoD6vqu3Dr4=
- List-post: <mailto:mutt-dev@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-dev"
- Sender: owner-mutt-dev@xxxxxxxx
When I run the following macro mutt exits with segfault
macro index S
'<pipe-message>/home/axisys/.mutt/script/reportspam.sh<enter><delete-message>'
Here is the script
#!/bin/bash
# take the email and send it as attachment to abuse
# save to tmp file
spam=$(tempfile -s .eml)
ABUSE=abuse@xxxxxxxxxxx
cat > "$spam"
# use formail to extract subject (could use grep in a pinch)
subj=$(formail -x subject < $spam)
if [ ! -z "$spam" ]; then
mutt -e 'set from=user@xxxxxxxxxxx' -s "[spam]$subj" -a $spam
-- "$ABUSE"
fi
rm "$spam"
Here is the segfault in `dmesg'
http://pastebin.com/29JuFUCv
I am running mutt 1.5.20 on ubuntu lucid
If I add `set -x' in that macro script this is how it reports about the segfault
++ tempfile -s .eml
+ spam=/tmp/fileMWDTFO.eml
+ ABUSE=abuse@xxxxxxxxxxx
+ cat -
Segmentation fault
++ formail -x subject
+ subj=
+ '[' '!' -z /tmp/fileMWDTFO.eml ']'
+ mutt -e 'set from=user@xxxxxxxxxxx' -s '[spam]' -a
/tmp/fileMWDTFO.eml -- abuse@xxxxxxxxxxx
+ rm /tmp/fileMWDTFO.eml
Am I hitting a bug? Is there a way to run mutt in debug mode to get more details
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?