|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3837 ./php -i crashes at sybase info...
Submitted: 2000-03-15 10:22 UTC Modified: 2000-07-24 17:37 UTC
From: peter dot greis at wdr dot com Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0 Latest CVS (15/03/2000) OS: Solaris 2.6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: peter dot greis at wdr dot com
New email:
PHP Version: OS:


 [2000-03-15 10:22 UTC] peter dot greis at wdr dot com
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/
(gdb) bt
#0  0xef424674 in strlen () from /usr/lib/
#1  0xef45a41c in _doprnt () from /usr/lib/
#2  0xef4638c0 in vsnprintf () from /usr/lib/
#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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-22 03:44 UTC] joey at cvs dot php dot net
PHP 4.0 should be released sometime this week. If you still experience this, please open a
new report, and thanks...

Also, I reccomend the ct-lib. db-lib is deprecated (by Sybase)
 [2000-07-24 17:37 UTC]
Closed. Please open a new report if you have this trouble with 4.0.1pl2.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 09:01:28 2024 UTC