Mutt crashes (segmentation fault) when the "limit" input contains an unmatched, unescaped open bracket. Since mutt in Gentoo is heavily patched, I am guessing this is the right place to report the bug. Reproducible: Always Steps to Reproduce: 1. Run mutt 2. Press l 3. Type in "[Bug" and hit enter Actual Results: Backtrace: ... ---Mutt: ~/.mail/inbox [Msgs:3594 Flag:1 170M]---(date/date)-------------- Compiling search pattern... Program received signal SIGSEGV, Segmentation fault. ___vsnprintf_chk (s=0x7ffff76872e1 "\203\370\001\031\322f\203;", maxlen=<value optimized out>, flags=1, slen=<value optimized out>, format=0x48a951 "'%s': %s", args=0x7fffffffc190) at vsnprintf_chk.c:57 57 vsnprintf_chk.c: No such file or directory. in vsnprintf_chk.c gdb> bt #0 ___vsnprintf_chk (s=0x7ffff76872e1 "\203\370\001\031\322f\203;", maxlen=<value optimized out>, flags=1, slen=<value optimized out>, format=0x48a951 "'%s': %s", args=0x7fffffffc190) at vsnprintf_chk.c:57 #1 0x000000000046a370 in vsnprintf (buf=0x7fffffffca30, fmt=0x48a951 "'%s': %s") at /usr/include/bits/stdio2.h:78 #2 mutt_buffer_printf (buf=0x7fffffffca30, fmt=0x48a951 "'%s': %s") at muttlib.c:1706 #3 0x000000000044cb1d in eat_regexp (pat=0x7b93d0, s=0x7fffffffc400, err=0x7fffffffca30) at pattern.c:297 #4 0x000000000044c64f in mutt_pattern_comp (s=<value optimized out>, flags=<value optimized out>, err=0x7fffffffca30) at pattern.c:919 #5 0x000000000044d101 in mutt_pattern_func (op=17, prompt=<value optimized out>) at pattern.c:1307 #6 0x000000000041ce69 in mutt_index_menu () at curs_main.c:848 #7 0x0000000000435c50 in main (argc=-11168, argv=<value optimized out>) at main.c:1026 $ emerge --info mutt Portage 2.2_rc67 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34-x86_64-Intel-R-_Core-TM-2_CPU_T5300_@_1.73GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 11 Jun 2010 20:15:01 +0000 app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11 dev-lang/python: 2.6.5-r2 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4, 4.5.0 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.34 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL skype-eula dlj-1.1" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fno-ident -ggdb -floop-interchange -floop-strip-mine -floop-block" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe -fno-ident -ggdb -floop-interchange -floop-strip-mine -floop-block" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.chem.wisc.edu/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="gzip" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/tree/official" PORTDIR_OVERLAY="/usr/portage/tree/layman/kde /usr/portage/tree/layman/qting-edge /usr/portage/tree/local" SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi aio alsa amd64 audiofile avi bash-completion berkdb branding bzip2 cairo cdparanoia cdr chm cli cracklib crypt css cups curl custom-optimization cxx dbus dell dirac dri dvd dvdr encode exif expat ffmpeg fftw firefox flac foomaticdb fortran gdbm gif git gmp gpm gtk iconv imagemagick imlib inotify java5 java6 jpeg kde kdehiddenvisibility laptop latex lcms logrotate lqr lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap musepack ncurses nptl nptlonly nsplugin nvidia ogg opengl openmp openssl pam pch pcre perl plasma png ppds pppd python qt qt4 quicktime rar readline reflection resolvconf samba schroedinger sdl session sndfile speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 subversion svg sysfs tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd videos vorbis webkit wifi wmf x264 xcb xcomposite xorg xscreensaver xulrunner xv xvid xvmc xz zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nv" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS_FLAGS ================================================================= Package Settings ================================================================= mail-client/mutt-1.5.20-r15 was built with the following: USE="berkdb crypt gdbm -debug -doc -gnutls -gpg -idn -imap -mbox -nls -nntp -pop -qdbm -sasl -sidebar -smime -smtp -ssl -tokyocabinet -vanilla"
Can reproduce the segfault here, thanks. We grabbed a lot of patches from upstream to fix issues, but reporting here is indeed the right approach given the current state of mutt :/
env USE=vanilla emerge mutt Results in a mutt that doesn't crash on the limit. Do you by chance use this pattern regularly so you can tell me that it was introduced in the bugfixes for -r15?
I committed a patch that solves the crash for me. Could you sync in a couple of hours and rebuild mutt-1.5.20-r15 to try if it works for you too? Thanks.
(In reply to comment #3) > I committed a patch that solves the crash for me. Could you sync in a couple > of hours and rebuild mutt-1.5.20-r15 to try if it works for you too? Thanks. > Thanks! It doesn't crash for me either.