Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271094 - Random crashes in Qt libs and sqlite after (probably) upgrade to glibc-2.10.1
Summary: Random crashes in Qt libs and sqlite after (probably) upgrade to glibc-2.10.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-24 18:00 UTC by Eugene Shalygin
Modified: 2009-05-26 22:38 UTC (History)
1 user (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 Eugene Shalygin 2009-05-24 18:00:34 UTC
Everything began with kdevelop:live crashes during loading. Backtraces after crashes were random, but most part contains memory management routines at the top (destructors, free(), ...). The second bell was Qt assistant crash during loading with following backtrace:

#0  0x00007ffff1ff4645 in raise () from /lib/libc.so.6
#1  0x00007ffff1ff5b63 in abort () from /lib/libc.so.6
#2  0x00007ffff2036280 in ?? () from /lib/libc.so.6
#3  0x00007fffe846940c in sqlite3_free () from /usr/lib/libsqlite3.so.0
#4  0x00007fffe846a9e8 in sqlite3PageFree () from /usr/lib/libsqlite3.so.0
#5  0x00007fffe848e631 in balance_nonroot () from /usr/lib/libsqlite3.so.0
#6  0x00007fffe848db9a in balance () from /usr/lib/libsqlite3.so.0
#7  0x00007fffe84944e1 in sqlite3BtreeInsert () from /usr/lib/libsqlite3.so.0
#8  0x00007fffe84bbc05 in sqlite3VdbeExec () from /usr/lib/libsqlite3.so.0
#9  0x00007fffe84ac7d0 in sqlite3_step () from /usr/lib/libsqlite3.so.0
#10 0x00007fffe86ddcca in QSQLiteResultPrivate::fetchNext(QVector<QVariant>&, int, bool) () from /usr/lib64/qt4/plugins/sqldrivers/libqsqlite.so
#11 0x00007fffe86df3ce in QSQLiteResult::exec() () from /usr/lib64/qt4/plugins/sqldrivers/libqsqlite.so
#12 0x00007ffff62c7fb6 in QSqlQuery::exec(QString const&) () from /usr/lib/qt4/libQtSql.so.4
#13 0x00007ffff7b969dc in QHelpDBReader::indicesForFilter(QStringList const&) const () from /usr/lib/qt4/libQtHelp.so.4
#14 0x00007ffff7b9ff16 in QHelpIndexProvider::run() () from /usr/lib/qt4/libQtHelp.so.4
#15 0x00007ffff3849999 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#16 0x00007ffff2cd12e7 in start_thread () from /lib/libpthread.so.0
#17 0x00007ffff209438d in clone () from /lib/libc.so.6
#18 0x0000000000000000 in ?? ()

It happens during every 3 runs of 4 or so for assistant and every time for kdevelop.

I found similar backtraces in sqlite bugs DB. With such backtraces sqlite developers close bugs with comments such as "this is a heap corruption problem, but not sqlite one".

I have re-emerged glibc, @system and @qt but nothing has changed.
However, I found that when launched via schedtool -a 0x1 -e <application> this crashes are gone.

Reproducible: Sometimes

Steps to Reproduce:
if crashes are related to glibc-2.10 and threads, then
0. have multi-core system
1. emerge glibc-2.10.1
2. emerge qt-assistant
3. launch assistant several times

Actual Results:  
assistant crashes


$ emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-tuxonice-r2-gentoo x86_64)
=================================================================                                                  
System uname: Linux-2.6.29-tuxonice-r2-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5550_@_1.83GHz-with-gentoo-2.0.0  
Timestamp of tree: Sun, 24 May 2009 10:15:01 +0000                                                                 
app-shells/bash:     4.0_p24                                                                                       
dev-java/java-config: 2.1.7                                                                                        
dev-lang/python:     2.6.2                                                                                         
dev-python/pycrypto: 2.0.1-r8                                                                                      
dev-util/cmake:      2.6.4                                                                                         
sys-apps/baselayout: 2.0.0                                                                                         
sys-apps/openrc:     0.4.3-r2                                                                                      
sys-apps/sandbox:    1.9                                                                                           
sys-devel/autoconf:  2.13, 2.63-r1                                                                                 
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                     
sys-devel/binutils:  2.19.1-r1                                                                                     
sys-devel/gcc-config: 1.4.1                                                                                        
sys-devel/libtool:   2.2.6a                                                                                        
virtual/os-headers:  2.6.29                                                                                        
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                     
CBUILD="x86_64-pc-linux-gnu"                                                                                       
CFLAGS="-O2 -march=native"                                                                                         
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/config"           
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                      
CXXFLAGS="-O2 -march=native"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://files.gentoo.gr http://gentoo.tiscali.nl/ http://gentoo.osuosl.org/ http://cdot.senecac.on.ca/software/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1,--hash-style=both"
LINGUAS="ru uk eo en"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="--best"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/repositories/mpd /var/repositories/qting-edge /var/repositories/devnull /var/repositories/kde-testing /var/repositories/sunrise /var/repositories/berkano /var/repositories/my"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 avahi bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdr cleartype cli consolekit cracklib crypt cups curl cxx dbus djvu dri dv dvd dvdr dvdread emacs emboss encode evo exif exiv2 fam fbcon ffmpeg firefox firefox3 flac fontconfig fortran freetype fuse gdbm gif gimp gnutls gphoto2 gpm gstreamer gtk hal iconv inotify ipw3945 isdnlog java java5 java6 joystick jpeg kde kde4 kdeenablefinal kdehiddenvisibility kerberos kipi kpathsea laptop latex lcms ldap libnotify lm_sensors lmsensors logrotate lzma mad matroska midi mikmod mmap mmx moznopango mp3 mpeg mudflap multilib musicbrainz ncurses networkmanager newspr nls nptl nptlonly nsplugin ogg openexr opengl openmp paludis pam pch pcre pdf perl phonon plasma png policykit ppds pppd python qt3 qt3support qt4 quicktime rcc readline reflection samba sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd tetex threads thumbnail tiff tk truetype unicode usb utemper v4l v4l2 vdpau vhosts vorbis webkit wmf x264 xattr xcb xcomposite xine xinetd xml xmp xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="intel-hda" 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" CAMERAS="canon sony fuji" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru uk eo en" USERLAND="GNU" VIDEO_CARDS="v4l vesa nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Eugene Shalygin 2009-05-24 18:05:11 UTC
These problems began after one of the system updates, during which glibc was upgrated (of course, with some other packages, but I don't remember their names).