Bug #781: Segfaults when both Sybase & MySQL compiled in & running NIS

From: Date: Thu, 24 Sep 1998 19:50:24 +0000
Subject: Bug #781: Segfaults when both Sybase & MySQL compiled in & running NIS
Groups: php.dev 
Request: Send a blank email to php-dev+get-1470@lists.php.net to get a copy of this message
From: jah@cultnet.fi Operating system: Linux 2.0.34 (glibc based) PHP version: 3.0 Latest CVS PHP Bug Type: Reproduceable crash Bug description: Segfaults when both Sybase & MySQL compiled in & running NIS Shortest script to reproduce the problem: <? ?> ./configure --with-sybase=/opt/sybase --with-mysql --with-zlib --with-config-file-path=/etc/apache --enable-track-vars --enable-magic-quotes --enable-debug MySQL 3.21.33, SyBase what they just released for Linux. Backtrace: #0 0x4003de9e in db__init_charset () #1 0x4004064e in dbopen () #2 0x40212807 in _nss_db_getprotobynumber_r () #3 0x402129e1 in _nss_db_endservent () #4 0x40212c31 in _nss_db_getservbyname_r () #5 0x401e7436 in getservbyname_r () #6 0x401e72a2 in getservbyname () #7 0x8082ed9 in php3_minit_mysql (type=1, module_number=9) at functions/mysql.c:259 #8 0x8064cc0 in module_startup_modules () at internal_functions.c:483 #9 0x80599f5 in php3_module_startup () at main.c:1167 #10 0x805a5cb in main (argc=3, argv=0xbffffdd0) at main.c:1618 Both /lib/libnss_db-2.0.7.so and /opt/sybase/lib/libsybdb.so contain a function named dbopen(), so I already see what's happening. (This begins to be not in any way related to PHP but someone else's fault...) Any ideas of a workaround, or should this be put in FAQ under the section 'Thing's you just can't do because some moron didn't think about naming functions.'? -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1470) next »