Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279473 - <dev-python/pysqlite-2.3.3 should block www-apache/mod_python due to symbol conflicts
Summary: <dev-python/pysqlite-2.3.3 should block www-apache/mod_python due to symbol c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High minor
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-28 14:05 UTC by George Nikandrov
Modified: 2009-10-03 20:40 UTC (History)
1 user (show)

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


Attachments
adds dependency on >=dev-python/pysqlite-2.3.3 if sqlite useflag enabled. (mod_python-3.3.1-r1.ebuild.patch,409 bytes, patch)
2009-07-28 22:13 UTC, James Earl Spahlinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description George Nikandrov 2009-07-28 14:05:59 UTC
www-apache/mod_python crashes apache when apache is configured using mod_cache and mod_python script uses pysqlite functions, and python uses internal pysqlite library.

Further references: http://oss.itsystementwicklung.de/trac/pysqlite/ticket/146

dev-lang/python, when built with USE=sqlite uses bundled pysqlite-2.3.2, which contains this bug. When system has dev-python/pysqlite-2.5.5 installed, everything works OK. Page above says that versions 2.3.3 should work too, but I've never checked this.

In my case, the problem is triggered with www-apps/trac, but this problem seems to be specific to apache+mod_python, when using pysqlite.


Reproducible: Always

Steps to Reproduce:
1. emerge apache with APACHE2_MODULES containing "proxy"
2. emerge mod_python and make sure dev-python/pysqlite is not installed
3. enable -DPROXY -DPYTHON in /etc/conf.d/apache2
4. make sure dev-python/pysqlite is not installed
5. install and setup www-apps/trac
6. open http://vhost/trac in browser, and watch apache2 error_log:

Actual Results:  
[Tue Jul 28 18:00:22 2009] [notice] child pid 8845 exit signal Segmentation fault (11)


Expected Results:  
Show trac main page.

The problem can be easily solved by installing recent pysqlite package, so it's probably good to add runtime dependency on '>=dev-python/pysqlite-2.3.3' when using sqlite use-flag.
Comment 1 James Earl Spahlinger 2009-07-28 22:13:54 UTC
Created attachment 199485 [details, diff]
adds dependency on >=dev-python/pysqlite-2.3.3 if sqlite useflag enabled.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-04 22:56:22 UTC
Post the output of `emerge --info`.
Comment 3 George Nikandrov 2009-08-07 10:33:13 UTC
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.23-gentoo-r8-i686-AMD_Athlon-TM-_XP-with-glibc2.0
Timestamp of tree: Fri, 07 Aug 2009 02:25:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.4-r3
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-mp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gles.tepkom.ru/ http://trumpetti.atm.tut.fi/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.muntinternet.net/pub/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cgi cli cracklib crypt ctype cups curl dri extraengine fortran ftp gd gdbm git gpm hash iconv imagemagick ipv6 isdnlog ithreads jpeg json kpoll ldap lm_sensors mailwrapper mod_muc mod_pubsub mudflap mysql nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses nethack nls nmap nptl nptlonly openmp openntpd overlays pampcntl pcre pdo perl png posix pppd python radius readline reflection samba sasl session simplexml smp snmp sockets spl sqlite sqlite3 ssl subversion svg svnserve sysfs tcpd threads truetype unicode ups vhosts x86 xml 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd     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 dbd deflate dir disk_cache env     expires ext_filter file_cache filter headers ident imagemap     include info log_config logio mem_cache mime mime_magic     negotiation proxy proxy_ajp proxy_balancer proxy_connect     proxy_http rewrite setenvif so speling status unique_id     userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2009-09-17 10:47:16 UTC
mod_python should not get a sqlite use flag just for DEPEND issues. instead pysqlite should block mod_python
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-10-03 20:40:05 UTC
I removed older versions of dev-python/pysqlite:2.