php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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/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

Patches

Pull Requests

History

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] david@php.net
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: Sat Dec 21 17:01:58 2024 UTC