Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 457632

Summary: mail-client/mutt: Occasional segfault in set_buffystats at sidebar.c:343
Product: Gentoo Linux Reporter: Reinis Danne <rei4dan>
Component: Current packagesAssignee: Fabian Groffen <grobian>
Severity: normal CC: net-mail+disabled
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: gdb bt full

Description Reinis Danne 2013-02-14 23:53:06 UTC
From time to time mutt segfaults, it seems that more often I'm using it the more it crashes. Basically the same backtrace all the time:
#0  __strcmp_sse2 () at ../sysdeps/x86_64/multiarch/../strcmp.S:214
#1  0x0000000000472051 in set_buffystats (Context=0x44b3940) at sidebar.c:343
#2  0x0000000000420011 in mutt_index_menu () at curs_main.c:678
#3  0x0000000000408ac9 in main (argc=1, argv=<optimized out>) at main.c:1083

Reproducible: Sometimes

Steps to Reproduce:
1. Have multiple IMAP accounts open
2. Jump between them reading/sending mail
3. Leave mutt running in byobu[tmux]

Actual Results:  
Sometimes it will segfault. It doesn't seem to correlate with the length of time it is left running without touching it. More like some interaction between switching accounts, IMAP connections idling out and changed state because of reading/sending mail. I suspect that sidebar somehow is losing context, but I couldn't track it down how it could happen exactly.

Expected Results:  
Mutt running until I close it.

Portage (default/linux/amd64/13.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r3, 3.6.11-gentoo x86_64)
                        System Settings
System uname: Linux-3.6.11-gentoo-x86_64-AMD_Phenom-tm-_II_X4_925_Processor-with-gentoo-2.1
KiB Mem:     4054056 total,     47104 free
KiB Swap:    8393956 total,   8201508 free
Timestamp of tree: Sun, 10 Feb 2013 11:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.4.7, 4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo science x-portage
CFLAGS="-march=native -mtune=native -O3 -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O3 -pipe"
FCFLAGS="-march=native -mtune=native -O3 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=native -mtune=native -O3 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdio cdr cleartype cli colord consolekit cracklib crypt cups cxx dbus dirac djvu dri dts dvd dvdr eds emboss encode evo exif fam fbcondecor ffmpeg firefox flac fontconfig fortran gdbm gif gnome gnome-keyring gnome-online-accounts gphoto2 gpm gsm gstreamer gtk iconv idn imagemagick ipv6 jpeg kate lcms ldap libcaca libnotify live mad matroska mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap multilib musepack nautilus ncurses nls nptl ogg openexr opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 raw readline schroedinger sdl session smp socialweb speex spell sse sse2 sse4a ssl startup-notification svg system-sqlite tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vorbis wmf wxwidgets x264 xcb xml xmp xpm xv xvid zlib" ABI_X86="64" 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="lv en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev fglrx radeon vesa" 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"

                        Package Settings

mail-client/mutt-1.5.21-r12 was built with the following:
USE="berkdb crypt gdbm idn imap mbox (multilib) nls pop sasl sidebar smtp ssl -debug -doc -gnutls -gpg -nntp -qdbm (-selinux) -smime -tokyocabinet" ABI_X86="64"
CFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
Comment 1 Reinis Danne 2013-02-14 23:57:33 UTC
Created attachment 338920 [details]
gdb bt full
Comment 2 Fabian Groffen gentoo-dev 2013-09-24 18:11:17 UTC
This bug is hard to tackle without knowing what Context->path and tmp->path are pointing too.  I suspect one of them is NULL.