Happened two time when quitting mutt. mutt[4099]: segfault at 4 ip 00000000004903c2 sp 00007fff87df82b0 error 4 in mutt[400000+b4000] Core was generated by `mutt'. Program terminated with signal 11, Segmentation fault. #0 0x00000000004903c2 in snprintf (msg=0x25f9690, ctx=0x2432560, msgno=<value optimized out>) at /usr/include/bits/stdio2.h:65 65 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, (gdb) bt #0 0x00000000004903c2 in snprintf (msg=0x25f9690, ctx=0x2432560, msgno=<value optimized out>) at /usr/include/bits/stdio2.h:65 #1 msg_cache_commit (msg=0x25f9690, ctx=0x2432560, msgno=<value optimized out>) at message.c:938 #2 imap_fetch_message (msg=0x25f9690, ctx=0x2432560, msgno=<value optimized out>) at message.c:533 #3 0x0000000000440e45 in mx_open_message (ctx=0x2432560, msgno=138) at mx.c:1492 #4 0x000000000041a761 in mutt_append_message (dest=0x25f9590, src=0x2432560, hdr=0x0, cmflags=10, chflags=4874794) at copy.c:740 #5 0x0000000000413752 in _mutt_save_message (h=0x263d330, ctx=0x25f9590, delete=1, decode=0, decrypt=0) at commands.c:710 #6 0x000000000048cb10 in imap_sync_mailbox (ctx=0x2432560, expunge=1, index_hint=<value optimized out>) at imap.c:1237 #7 0x000000000044284e in mx_sync_mailbox (ctx=0x2432560, index_hint=0x7fff87df9818) at mx.c:1238 #8 0x000000000041fac1 in mutt_index_menu () at curs_main.c:1025 #9 0x00000000004380c7 in main (argc=1, argv=0x7fff87dfa308) at main.c:1026 Reproducible: Sometimes Steps to Reproduce: Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32.7 x86_64) ================================================================= System uname: Linux-2.6.32.7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-1.12.13 Timestamp of tree: Sat, 23 Jan 2010 20:30:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r2 dev-lang/python: 2.6.4 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -ggdb" 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/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri gdbm gpm iconv ipv6 kde mmx mng modules mudflap multilib mysql ncurses nptl nptlonly opengl pcre perl png pppd python qt3support readline reflection session spl sql sse sse2 ssl ssse3 svg sysfs tcpd unicode webkit xinerama xorg 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Does it help to update the rest of your system?
(In reply to comment #1) > Does it help to update the rest of your system? > Please get back to us
The bug is so rare, so I can't say it was definitely fixed.
Happened again with mutt-1.5.20-r10, same backtrace. This somehow correlates with amount of activity besides mutt. make -j5 was running when crash happened.
please try mutt-1.5.20-r15, and tell me if it segfaults too.
... and run a memcheck or something. If it only happens under stress, it feels unlikely to me to be mutt.
Again with mail-client/mutt-1.5.21-r1 Now backtrace matches and the box is completely different, so it isn't hardware.
your backtrace from comment #0 doesn't match the code of 1.5.21-r1.
Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.4.5, libc-0-r0, 2.6.39-rc5-00127-g1be6a1f x86_64) ================================================================= System uname: Linux-2.6.39-rc5-00127-g1be6a1f-x86_64-Intel-R-_Core-TM-_i5_CPU_760_@_2.80GHz-with-gentoo-1.12.14 Timestamp of tree: Sat, 30 Apr 2011 08:00:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.11.3 virtual/os-headers: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa amd64 berkdb bzip2 cli cracklib crypt cxx dbus dri emacs gdbm gpm iconv ipv6 kde lzma mad mmx modules mudflap multilib ncurses nptl nptlonly opengl openmp pcre perl pppd python qt3support readline session sql sse sse2 sse3 ssl ssse3 svg sysfs tcpd unicode vim-syntax webkit xorg 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 271629 [details] gdb "bt full"
Again, what's common. Rare bug. Always happens when I quit mutt/mainblox closes. Always gmail/IMAP. Load doesn't matter, this time there was no load.
Hrpmh... How do I exact source code of the package to a directory?
This could be http://dev.mutt.org/trac/ticket/3288, for which the patches are included in 1.5.21-r3. Also http://dev.mutt.org/trac/ticket/3482
and it helps to know what hcache backend you use (Show your USE-flags)
Haven't seen this for a while with mutt-1.5.21-r12.
with -r12 being stable, assuming fixed then, thanks!