Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178741 - dev-lang/php-5.2.2-r1 with USE="sybase" segfaults when calling sybase_connect()
Summary: dev-lang/php-5.2.2-r1 with USE="sybase" segfaults when calling sybase_connect()
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 11:19 UTC by Guido Winkelmann
Modified: 2007-05-16 11:24 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 Guido Winkelmann 2007-05-16 11:19:15 UTC
If I call a PHP script that calls sybase_connect() on my webserver running with net-www/apache-2.0.58-r2 and dev-lang/php-5.2.2-r1, the webbrowser tells me the connection to the server was unexpectedly closed.

In /var/log/apache2/error_log, I find entries like this afterwards:

Wed May 16 13:00:23 2007] [notice] child pid 8851 exit signal Segmentation fault (11)

I've tested this with a minimal test script that does nothing but call sybase_connect() (with and without correct values for a working sybase db-server and a working username/password pair).

Reproducible: Always

Steps to Reproduce:
1. Create a PHP-script with <?php $conn = sybase_connect("fakeserver", "fakeuser", "fakepw"); echo "hi";?>
2. Place the script into the www-root of the webserver
3. Call the script from a browser

Actual Results:  
The browser tells me that the connection to the server was unexpectedly interrupted.

The logfile /var/log/apache2/error_log gains a line like this one:
Wed May 16 13:00:23 2007] [notice] child pid 8851 exit signal Segmentation fault (11)

Expected Results:  
The browser should display "hi".

$ emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Celeron(R) CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 14 May 2007 01:47:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-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.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirror.solnet.ch http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.intergenia.de"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de en nds"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aiglx alsa apache2 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt ctype cups cvs dbus dri dvd dvdr eds emboss encode fam firefox fortran gdbm gif gnutls gpm graphviz gstreamer gtk hal iconv imlib ipv6 isdnlog java jpeg kde ldap libg++ mad midi mikmod mp3 mpeg mplayer ncurses nls nptl nptlonly ogg opengl oss pam paste64 pcre pdf perl php png ppds pppd python qt3 quicktime readline reflection sdl session spell spl ssl svg sybase tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs x264 x86 xml xorg xterm xv xvid 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en nds" USERLAND="GNU" VIDEO_CARDS="nv sis ati radeon mga vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-16 11:24:00 UTC
Sorry, USE=sybase is unsupported by Gentoo, we have no way of testing it and its provided for convenience only. You should take this upstream.

http://bugs.php.net/