Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416563 - dev-db/sqlite-3.7.12 causes gnome-shell-3.4.1 to segfault in sqlite3ExprCodeTarget() at sqlite3.c:77024
Summary: dev-db/sqlite-3.7.12 causes gnome-shell-3.4.1 to segfault in sqlite3ExprCodeT...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
URL: http://www.sqlite.org/src/info/c2ad16...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-18 21:35 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2012-05-23 09:05 UTC (History)
6 users (show)

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


Attachments
complete backtrace (backtrace,113.34 KB, text/plain)
2012-05-18 21:35 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-18 21:35:37 UTC
Created attachment 312225 [details]
complete backtrace

If sqlite-3.7.12 is installed, gnome-base/gnome-shell-3.4.1 always crashes a few seconds after starting. The attached gdb backtrace indicates that the immediate cause of the crash is a segfault is in sqlite's code, in sqlite3ExprCodeTarget().

With sqlite-3.7.11, gnome-shell-3.4.1 works perfectly.

gnome-shell-3.2.2.1 does not seem to be affected by this problem.

# emerge --info sqlite:3
Portage 2.2.0_alpha107 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r2, 3.3.6 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.3.6-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Fri, 18 May 2012 16:05:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.8, 2.7.3-r2, 3.1.5, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.5
sys-devel/binutils:       2.20.1-r1, 2.21, 2.21.1-r1, 2.22-r1
sys-devel/gcc:            3.3.6-r1, 4.4.7, 4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
[...]
dev-db/sqlite-3.7.12 was built with the following:
USE="doc extensions fts3 icu (multilib) readline secure-delete soundex threadsafe unlock-notify -debug -tcl -test"
CFLAGS="-march=native -O2 -pipe -ggdb"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-05-18 21:40:26 UTC
Please subscribe to sqlite-dev mailing list and report this bug on this mailing list.
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-dev
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-18 22:45:33 UTC
(In reply to comment #1)
I sent sent a subscription request, but apparently it needs to get approved by a moderator.
Comment 3 Bernd Feige 2012-05-20 10:16:37 UTC
Dear Alexandre,

I' unable to start gnome-shell-3.2.2.1 after the sqlite3 update, and some others as well: http://forums.gentoo.org/viewtopic-p-7039922.html

kernel: gnome-shell[12607]: segfault at 54 ip b567de65 sp bfce1dc0 error 4 in libsqlite3.so.0.8.6[b5632000+ab000]

I didn't debug it properly but the segfault always follows
goa[12689]: goa-daemon version 3.2.1 starting
I first suspected it would have to do with some outdated sqlite db in my home dir but the error persists if I rename my whole home directory.

How did you test with gnome-shell-3.2.2.1?

Best regards,
Bernd

emerge --info
Portage 2.1.10.62 (default/linux/x86/10.0, gcc-4.6.3, glibc-2.15-r2, 3.3.5-gentoo i686)
=================================================================
System uname: Linux-3.3.5-gentoo-i686-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.1
Timestamp of tree: Sun, 20 May 2012 10:00:01 +0000
app-shells/bash:          4.2_p28
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo bfown jmbsvicetto systemd
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/gentoo/packages/x32"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/home"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/gentoo/overlay /var/lib/layman/jmbsvicetto /var/lib/layman/systemd"
SYNC="rsync://rsync.gentoo.org/gentoo-portage/"
USE="3dnow 3dnowext X a52 aac acl acpi alsa bacula-clientonly bash-completion berkdb blas bzip2 cairo caps cddb cdparanoia cdr cli consolekit cpudetection cracklib crypt cscope cups cxx dbus dga djvu dri dv dvd dvdr dvdread dvi eds enblend encode evo exif extrafilters ffmpeg fftw firefox flac fluidsynth fontconfig fortran fuse g3dvl gdbm ggi gif gimp gmp gnome gnome-keyring gnutls gpm graphics graphviz gs gstreamer gtk gtk3 hddtemp hdri iconv icu id3tag imagemagick ipv6 jack java java6 javascript jbig jpeg jpeg2k kerberos kpathsea ladspa lame lapack latex lcms ldap libnotify libsamplerate lm_sensors lyx lzma lzo mad matplotlib matroska md5sum midi mjpeg mmx mmxext mng modules mp2 mp3 mpeg mpi mudflap musepack nautilus ncurses networkmanager nls nptl ofx ogg openal openexr opengl openmp pam pcre pda pdf pkcs11 plotutils plugins png pnm policykit postgres postscript pppd pulseaudio python qt3support quicktime radio rar readline romio rtc rtmp scanner science sdl session sift smartcard sound soundtouch speex spell sqlite sse sse2 ssl ssse3 svg systemd t1lib tcpd theora threads tiff tivo tk tracker truetype udev unicode v4l2 vidix vim-syntax vim-with-x vorbis vpx win32codecs wmf x264 x86 xattr xcomposite xetex xinerama xml xmp xorg xulrunner xv xvid xvmc zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" SANE_BACKENDS="hp5590 mustek" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Travis Hansen 2012-05-20 22:13:11 UTC
Same issue here on ~amd64 running gnome-base/gnome-shell-3.2.2.1.

Thanks!
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-21 13:34:57 UTC
I've talked to sqlite upstream, and the gnome-shell crash was identified to be the same as http://www.sqlite.org/src/info/c2ad16f997; upstream says "We'll get this fixed as soon as we can".
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-22 02:31:17 UTC
The following sqlite beta release fixes the bug: http://www.sqlite.org/beta/sqlite3-amalgamation-20120521212617.zip

(Also, since the crash appears to also affect gnome-shell-3.2 users, I am removing the gnome3.4 blocker.)
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-22 23:29:49 UTC
Fixed by sqlite-3.7.12.1, which was added to portage today.
Comment 8 Bernd Feige 2012-05-23 09:05:05 UTC
(In reply to comment #7)
> Fixed by sqlite-3.7.12.1, which was added to portage today.

Also fixes the issue in gnome-base/gnome-shell-3.2.2.1.
Thanks Alexandre!