Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559842 - mail-client/mutt-1.5.23-r8 and above segfault with sidebar
Summary: mail-client/mutt-1.5.23-r8 and above segfault with sidebar
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
: 567562 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-07 09:03 UTC by Johannes Hirte
Modified: 2016-06-06 15:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Hirte 2015-09-07 09:03:45 UTC
since 1.5.23-r8 mutt segfault on start. 

backtrace:

(gdb) thread apply all bt
                                                                                                                                                                             
Thread 1 (Thread 0x7ff572708700 (LWP 1505)):                                                                                                                                 
#0  draw_sidebar (menu=<optimized out>) at sidebar.c:341                                                                                                                     
#1  0x0000000000422ae2 in mutt_index_menu () at curs_main.c:655                                                                                                              
#2  0x0000000000408d0f in main (argc=1, argv=<optimized out>) at main.c:1130

mutt-1.5.23-r7 works as expected

Reproducible: Always
Comment 1 Johannes Hirte 2015-09-07 09:05:40 UTC
emerge --info:

Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.21-r1, 4.2.0-00065-g20251ea x86_64)
=================================================================
System uname: Linux-4.2.0-00065-g20251ea-x86_64-AMD_Athlon-tm-_II_P320_Dual-Core_Processor-with-gentoo-2.2
KiB Mem:     4045784 total,     86216 free
KiB Swap:    4194300 total,   3988668 free
Timestamp of repository gentoo: Mon, 07 Sep 2015 08:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo, 5.2.0::local
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x11
    location: /usr/local/portage/layman/x11
    masters: gentoo
    priority: 0
                                                                                                                                                                             
kde                                                                                                                                                                          
    location: /usr/local/portage/layman/kde                                                                                                                                  
    masters: gentoo                                                                                                                                                          
    priority: 1

gamerlay
    location: /usr/local/portage/layman/gamerlay
    masters: gentoo
    priority: 2

steam-overlay
    location: /usr/local/portage/layman/steam-overlay
    masters: gentoo
    priority: 3

toolchain
    location: /usr/local/portage/layman/toolchain
    masters: gentoo
    priority: 4

libressl
    location: /usr/local/portage/layman/libressl
    masters: gentoo
    priority: 5

java
    location: /usr/local/portage/layman/java
    masters: gentoo
    priority: 6

qt
    location: /usr/local/portage/layman/qt
    masters: gentoo
    priority: 7

local
    location: /usr/local/portage
    masters: gentoo
    priority: 8

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x AdobeFlash-10.1 AdobeFlash-10.3 ETQW google-chrome googleearth Google-TOS Intel-SDP MakeMKV-EULA Oracle-BCLA-JavaSE ut2003"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -ftree-vectorize -fvect-cost-model -pipe"
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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /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=amdfam10 -ftree-vectorize -fvect-cost-model -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-z,combreloc"
MAKEOPTS="-j3 -l3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacs acl acoustid addressbook aften aio alsa amd64 amr apng assistant attica audiofile autotools berkdb bluetooth bluray bzip2 cairo calendar canberra caps caps-ng cdda cddb chm clang cli cmake corefonts cracklib crypt cups cvs cxx d3d9 dbus declarative desktopglobe device-mapper dirac djvu dpi dri dri3 dts dv dvd dvdnav ebook egl eigen emf encode eps epub exif expoblending faac faad fam ffmpeg fftw fits flac flash fontconfig fortran fortran95 fpx ftdi gbm gd gdbm gfortran gif git glamor glew gmp gold google gpg gphoto2 gpm graphicsmagick graphviz gs hdri highlight iconv icu id3tag image-cache inotify int64 ipv6 jbootstrap jemalloc jpeg jpeg2k json kate kde kdepim kipi kpathsea lame lapack latex lcms lensfun libffi libinput libkms liblockfile libnotify libressl libsamplerate live lm_sensors lto lzma lzo mad marble matroska midi minizip mjpeg mmap mmx mmxext mng mobi modules mongodb mp3 mp4 mpeg mpfr mtp multilib musicbrainz mysql ncurses netlink networkmanager nfs nfsidmap nfsv3 nls nptl offensive ogg okteta openal opencv openexr opengl openmp opus oscar otr pam panorama pcre pdf pdfimport perl php plasma png policykit postproc postscript pulseaudio pyqt4 python python3 qmake qt3support qt4 qt5 qthelp quicktime rar raw readline redeyes reviewboard rle romio samba scanner schroedinger seccomp semantic-desktop session sift sip sndfile soundtouch spell sqlite sqlite3 sse sse2 sse3 ssl ssl2 startup-notification subversion svg sync-plugin-portage system-jsoncpp system-libvpx system-sqlite systemd taglib tcmalloc tcpd theora threads thumbnail tiff truetype twolame udev udisks unicode unwind usb v4l v8 valgrind vamp vdpau vhosts vlc vorbis vpx wav wayland webkit webp wmf x264 x265 xattr xcb xcomposite xetex xml xmp xscreensaver xv xvid yaz zip 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" 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="braindump flow karbon kexi kpresenter krita plan sheets stage tables words" CAMERAS="canon directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmx2 mmxext sse sse2 sse3" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby21" SANE_BACKENDS="net snapscan" USERLAND="GNU" VIDEO_CARDS="r600 radeon" 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Fabian Groffen gentoo-dev 2015-09-08 13:42:13 UTC
Interesting.  Does 1.5.24-r1 exhibit the same problem as 1.5.23-r8?
Comment 3 Fabian Groffen gentoo-dev 2015-09-08 13:43:30 UTC
Would you mind sharing your mailboxes?  You can | tr '[a-zA-Z]' 'X', I only care about the length of the mailbox names and slashes/dots in which places.
Comment 4 Michael Mair-Keimberger (iamnr3) 2015-09-22 18:12:46 UTC
I'm having the same issue with both 1.5.23-r8 and 15.24-r1. Compiling mutt with "-sidebar" fixes the issue.

My sidebar settings are as followed:
set sidebar_width=30
set sidebar_visible=yes
set sidebar_delim='|'
set sidebar_sort=no
set sidebar_shortpath=yes
set sidebar_folderindent=yes
color sidebar_new yellow default 
bind index CP sidebar-prev
bind index CN sidebar-next
bind index CO sidebar-open
bind pager CP sidebar-prev
bind pager CN sidebar-next
bind pager CO sidebar-open
macro index b ‘<enter-command>toggle sidebar_visible<enter>’
macro pager b ‘<enter-command>toggle sidebar_visible<enter>’

I wouldn't mind sharing my mailbox, but i'm not sure how to do so? I think a "ls -R ~/.maildir" is not exactly what's in your mind? :)
Comment 5 Fabian Groffen gentoo-dev 2015-09-23 06:12:17 UTC
I'm looking for your mailbox lines, e.g. the ones that look like

mailboxes "="
mailboxes "imaps://x@Y/a/b"

in addition, your 

set folder=xxxx
Comment 6 Michael Mair-Keimberger (iamnr3) 2015-09-23 18:13:00 UTC
OK, here we go:

mailboxes = =XXXXX. =XXXX =XXXXX =XXXXXX =XXXXXXXXX =XXX =XXXX =XXX =XXXXXXXXXXXX =XXXXXX =XXXXXX-XXXX =XX-XXXXXX-XXXX

set folder=imaps://XXXXXXX@XXXXXXXX/

Hope thats what you are looking for :)
Comment 7 Fabian Groffen gentoo-dev 2015-09-24 12:36:11 UTC
Yes, thanks.  I see a trailing dot, that likely is the problem.
Comment 8 Michael Mair-Keimberger (iamnr3) 2015-09-24 15:53:53 UTC
(In reply to Fabian Groffen from comment #7)
> Yes, thanks.  I see a trailing dot, that likely is the problem.

Sadly nope. I've removed the trailing dot (even the whole folder) but mutt still segfaults.
Comment 9 Tomáš Mózes 2015-12-05 19:34:30 UTC
*** Bug 567562 has been marked as a duplicate of this bug. ***
Comment 10 Jason Schulz 2015-12-05 20:04:56 UTC
I'm copying this from https://bugs.gentoo.org/show_bug.cgi?id=567562...

(In reply to Tomas Mozes from comment #2)
> Hello Jason, have you reported this upstream?

The patch gentoo is using actually looks like it's a few releases behind upstream (http://www.lunar-linux.org/mutt-sidebar/).

I gave a quick shot at using /etc/portage/patches to apply it as a user patch (sans USE="sidebar") but it seems to conflict with other gentoo patches.  It does appear to apply cleanly to un-patched source though.

Is there any effort to update the gentoo version of the patch?  It looks like the version gentoo is using is nearly two years old.
Comment 11 Fabian Groffen gentoo-dev 2015-12-05 20:56:28 UTC
The latest patch had a problem too, it's not that simple...  But upstream mutt is planning on doing a release (1.5.25) soon, I'd like to wait for that to happen and then revisit the sidebar patch which then hopefully is released for 1.5.25.
Comment 12 Jason Schulz 2015-12-05 23:46:15 UTC
(In reply to Fabian Groffen from comment #11)
> The latest patch had a problem too, it's not that simple...  But upstream
> mutt is planning on doing a release (1.5.25) soon, I'd like to wait for that
> to happen and then revisit the sidebar patch which then hopefully is
> released for 1.5.25.

Thanks, I can't speak for anyone else but it seems to segfault infrequently for me.  I'm not sure why the current sidebar patch conflicts with the gentoo patches.

I guess upstream doesn't accept many patches?
Comment 13 Fabian Groffen gentoo-dev 2015-12-06 13:55:24 UTC
basically yes.  upstream thinks most of these huge patches are too intrusive for the source and they fear the maintenance.
Comment 14 Fabian Groffen gentoo-dev 2016-06-04 17:51:20 UTC
mutt-1.6.1 uses neomutt sidebar, which is much more up-to-date and tested more widespread.  Do you have the same problem with the lastest mutt?
Comment 15 Jason Schulz 2016-06-06 14:48:00 UTC
(In reply to Fabian Groffen from comment #14)
> mutt-1.6.1 uses neomutt sidebar, which is much more up-to-date and tested
> more widespread.  Do you have the same problem with the lastest mutt?

I haven't seen any of the same issues using 1.6.1.  I hugely appreciate the sidebar patch being maintained.
Comment 16 Fabian Groffen gentoo-dev 2016-06-06 15:48:17 UTC
thanks, marking as fixed then