Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228305 - www-client/mozilla-firefox-3.0: segfaults when entering something in the input bar
Summary: www-client/mozilla-firefox-3.0: segfaults when entering something in the inpu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 228513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-19 08:29 UTC by Sebastien Vasey
Modified: 2008-06-20 13:44 UTC (History)
3 users (show)

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


Attachments
GDB Backtrace (bt.log,16.54 KB, text/plain)
2008-06-19 08:32 UTC, Sebastien Vasey
Details
strace log (strace.log,1.14 MB, text/plain)
2008-06-19 08:33 UTC, Sebastien Vasey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Vasey 2008-06-19 08:29:57 UTC
When running firefox 3, removing the existing URL and entering something in the address bar, firefox segfaults apparently because of some false assertion in sqlite's code:

$ firefox
firefox: ./src/vdbemem.c:255: sqlite3VdbeMemFinalize: Assertion `0==(pMem->flags&0x0040) && !pMem->xDel' failed.
Aborted (core dumped)

I have no problem when browsing the web or doing other tasks inside firefox. I have tried rebuilding and reinstalling firefox without success.

Reproducible: Always

Steps to Reproduce:
1. Run firefox
2. Remove the existing address in the URL bar
3. Input some random string

Actual Results:  
Program segfaults

Expected Results:  
Continue reading my input

emerge --info
Portage 2.1.5.6 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22.1 i686)
=================================================================
System uname: 2.6.22.1 i686 Intel(R) Pentium(R) M processor 2.00GHz
Timestamp of tree: Thu, 19 Jun 2008 04:32:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /etc/sudoers /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS=""
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa arts bash-completion berkdb boundschecking cli cracklib crypt cups dbus debug doc dri fortran gdbm gpm iconv ipv6 isdnlog jpeg kde midi mudflap ncurses nls nptl nptlonly offensive openmp pam pcre perl png pppd python qt4 readline reflection session source spl ssl startup-notification tcpd threads truetype unicode x86 xorg zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

USE flags I have set:
www-client/mozilla-firefox-3.0  USE="dbus ipv6 startup-notification xulrunner -bindist -gnome -java -mozdevelop -restrict-javascript" LINGUAS="en_US -af -ar -be -ca -cs -da -de -el -en -en_GB -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB

I have captured a backtrace with gdb:
Always 
  Steps to Reproduce 1. Run firefox
2. Remove the existing address in the URL bar
3. Input some random string
   
 Describe how to reproduce the problem, step by step. Include any special setup steps. 
  Actual Results Program segfaults   
 What happened after you performed the steps above? 
  Expected Results Continue reading my input   
 What should the software have done instead? 
  Additional Information emerge --info
Portage 2.1.5.6 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6-r0, 2.6.22.1 i686)
=================================================================
System uname: 2.6.22.1 i686 Intel(R) Pentium(R) M processor 2.00GHz
Timestamp of tree: Thu, 19 Jun 2008 04:32:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /etc/sudoers /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS=""
LINGUAS="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa arts bash-completion berkdb boundschecking cli cracklib crypt cups dbus debug doc dri fortran gdbm gpm iconv ipv6 isdnlog jpeg kde midi mudflap ncurses nls nptl nptlonly offensive openmp pam pcre perl png pppd python qt4 readline reflection session source spl ssl startup-notification tcpd threads truetype unicode x86 xorg zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

USE flags I have set:
www-client/mozilla-firefox-3.0  USE="dbus ipv6 startup-notification xulrunner -bindist -gnome -java -mozdevelop -restrict-javascript" LINGUAS="en_US -af -ar -be -ca -cs -da -de -el -en -en_GB -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB

A backtrace and strace log are attached.
Comment 1 Sebastien Vasey 2008-06-19 08:32:04 UTC
Created attachment 157555 [details]
GDB Backtrace
Comment 2 Sebastien Vasey 2008-06-19 08:33:30 UTC
Created attachment 157557 [details]
strace log
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-19 15:12:48 UTC
Please don't play with the severity. FF 3 is just a few hours in testing and this would be just a major bug, if it were stable.
Comment 4 indarios 2008-06-19 17:21:27 UTC
Im getting this same error, but i cant type anything into the address bar without it crashing, unless its in the middle of a address then it seems not to crash.

firefox: ./src/vdbemem.c:255: sqlite3VdbeMemFinalize: Assertion `0==(pMem->flags&0x0040) && !pMem->xDel' failed.

emerge --info
Portage 2.1.5.6 (default-linux/amd64/2007.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Thu, 19 Jun 2008 16:46:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/desktop-effects /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 avahi berkdb cairo cdparanoia cdr cli cracklib crypt cups dbus debug dri dv dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gnome-print gnutls gpm gstreamer gtk gtkhtml hal iconv ipod ipv6 isdnlog jpeg kerberos ldap libnotify mad midi mikmod mjpeg mmx mono mozdevelop mp3 mpeg mplayer mtp mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png pppd python quicktime readline reflection samba sasl sdl session spell spl sse sse2 ssl startup-notification svg tcpd tiff truetype unicode vcd vorbis x264 xine xml xorg xv xvid zeroconf zlib" ALSA_CARDS="emu10k1 usb-audio" 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" 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 5 Marcin Gryszkalis 2008-06-20 08:45:35 UTC
I have the same effect though in different source line:

firefox: sqlite3.c:37482: sqlite3VdbeMemFinalize: Assertion `0==(pMem->flags&0x0040) && !pMem->xDel' failed.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2008-06-20 09:04:21 UTC
Fixed in xulrunner-1.9-r2 and mozilla-firefox-3.0-r1.
Comment 7 Rafał Mużyło 2008-06-20 10:08:15 UTC
Any idea what did cause that problem,
cause I can't reproduce it.
dev-db/sqlite-3.5.6 USE="doc soundex tcl threadsafe -debug"
Comment 8 Rafał Mużyło 2008-06-20 10:27:29 UTC
Same with:
dev-db/sqlite-3.5.6 USE="doc soundex tcl threadsafe -debug"
I get a feeling, that 'threadsafe' is the requirement.
Comment 9 Rafał Mużyło 2008-06-20 10:46:44 UTC
The last comment was about dev-db/sqlite-3.5.9 and no simply switching that use flag is not enough to trigger the crash.
However, I still think it's a threading issue. Maybe during build of xulrunner/firefox a check is done for thread safety of sqlite and if it fails,
some other code is used, that triggers those crashes ?
Comment 10 Raúl Porcel (RETIRED) gentoo-dev 2008-06-20 13:44:08 UTC
*** Bug 228513 has been marked as a duplicate of this bug. ***