PHP 4.0 Bug #3837: ./php -i crashes at sybase info...
| From: | peter dot greis at wdr dot com | Date: | Wed, 15 Mar 2000 15:22:02 +0000 |
| Subject: | PHP 4.0 Bug #3837: ./php -i crashes at sybase info... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16834@lists.php.net to get a copy of this message | ||
From: peter.greis@wdr.com
Operating system: Solaris 2.6
PHP version: 4.0 Latest CVS (15/03/2000)
PHP Bug Type: Sybase (dblib) related
Bug description: ./php -i crashes at sybase info...
After building php4-200003150545 with --with-sybase and running ./php -i from the command line, php
crashes thus:
<hr><a name="module_xml"><h2>xml</h2>
XML support active<hr><a name="module_sybase"><h2>sybase</h2>
Program received signal SIGSEGV, Segmentation fault.
Backtrace from GDB:
0xef424674 in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0 0xef424674 in strlen () from /usr/lib/libc.so.1
#1 0xef45a41c in _doprnt () from /usr/lib/libc.so.1
#2 0xef4638c0 in vsnprintf () from /usr/lib/libc.so.1
#3 0x79390 in php_printf (
format=0x165f90 "<table cellpadding=5><tr><td>Allow persistent
links:</td><td>%s</td></tr>\n<tr><td>Persistent
links:</td><td>%d/%s</td></tr>\n<tr><td>Total
links:</td><td>%d/%s</td></tr>\n<tr><td>Application
name:</td><"...) at main.c:290
#4 0x102e44 in php_info_sybase (zend_module=0x1d0760) at sybase.c:1202
#5 0x48cc8 in _display_module_info (module=0x1d0760, arg=0xeffff5c8) at info.c:46
#6 0xa4ab4 in zend_hash_apply_with_argument (ht=0x1c8b7c, apply_func=0x48c58
<_display_module_info>, argument=0xeffff5c8)
at zend_hash.c:672
#7 0x494e8 in php_print_info (flag=-1) at info.c:196
#8 0x24b20 in main (argc=2, argv=0xeffff72c) at cgi_main.c:470
Yet, a simple test script allows me to connect to a database fetch about 700 rows with no problem:
sybase.c(933) : Freeing 0x00389740 (16 bytes), script=phptest.php
Last leak repeated 2996 times
sybase.c(938) : Freeing 0x00384AD8 (4 bytes), script=phptest.php
zend_variables.c(126) : Actual location (location was relayed)
Last leak repeated 2992 times