Re: Bug #781: Segfaults when both Sybase & MySQL compiled in & running NIS
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Bug #781: Segfaults when both Sybase & MySQL compiled in & running NIS | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-1471@lists.php.net to get a copy of this message | ||
> #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.'?
Ok, what am I missing here? Why does getservbyname() end up calling
dbopen()? And which dbopen() function is this?
-Rasmus
--
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