Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179300 - net-mail/mairix segfault when when compiled with -O2
Summary: net-mail/mairix segfault when when compiled with -O2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 07:13 UTC by Niko Sams
Modified: 2007-06-26 06:03 UTC (History)
0 users

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 Niko Sams 2007-05-21 07:13:49 UTC
When building the index on my mails mairix crashes on some mails.

Reproducible: Always

Steps to Reproduce:
1. start mairix -v to create the index
2. wait some time till it indexes the problematic mail
(sorry, I can't post that mail here, but I can mail it in private to anyone who needs it)
Actual Results:  
segmentation fault

Expected Results:  
index all mails

I tried to compile mairix manually - and it worked.
I found out the CFLAG -O2 causes the problem, when I remove the flag it works without a problem.

my .mairixrc:
base=/home/niko/.kde/share/apps/kmail
maildir=mail...
omit=mail/mairix
database=~/.mairix_db
mfolder=mairix


$ emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 14 May 2007 23:20:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ "
LANG="de_AT"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aiglx alsa amd64 berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dri dvd fortran gdbm gif gpm hal iconv isdnlog jpeg jpg kde libg++ midi ncurses nls nptl nptlonly opengl pam pcre perl png ppds pppd python qt qt3 qt4 readline reflection samba session spl ssl tcpd truetype-fonts type1-fonts unicode 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia i810 vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2007-06-16 14:25:50 UTC
Does it also fail if the problematic mail is in its own mailfolder? Can you then please send it to me?

mairix never failed for me with -O2.
Comment 2 Niko Sams 2007-06-18 06:22:18 UTC
Yes - it does also fail in its own mailfolder.
I sent you the file.
Comment 3 Niko Sams 2007-06-18 18:31:25 UTC
I was able to reproduce the segfault on x86.
However only with version 0.20!

On amd64 the problem doesn't appear with 0.19 either.

(I didn't write the version I used in the bugreport, sorry)
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2007-06-26 05:43:05 UTC
Please test the new version (0.21). Does is work? With and without -O2?

Version 0.20 did segfault for me too.
I found two debian bugreports:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416999
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=419138

and also the mairix-user list reports segfaults:
http://sourceforge.net/mailarchive/forum.php?thread_name=200705172249.15219.mister.woody%40gmail.com&forum_name=mairix-users

In the announcement of 0.21: "This at least solves (I hope!) the name/value parser bug that has been catching quite a lot of people (at least, I've had many reports about it.)"

So let's test and reopen this bugreport if it still segfaults.
Thanks.
Comment 5 Niko Sams 2007-06-26 06:03:14 UTC
Version 0.21 works for me!
(with and without -O2)

thanks for your help!