From:             [EMAIL PROTECTED]
Operating system: Redhat 6.2
PHP version:      4.2.0
PHP Bug Type:     Sybase-ct (ctlib) related
Bug description:  reproducable seg faults without --enable-debug

Sybase is installed stock, 11.9.2, also tried 12.5

./configure --with-mysql=/usr/local/mysql \
--with-apxs=/usr/local/apache/bin/apxs --enable-debug \
--enable-ftp --with-sybase-ct=/opt/sybase-11.9.2

stock php.ini, changed register_globals on, magic_quotes_sybase on,
magic_quotes_gpc on

Program that is causing the issue is phpSybaseAdmin 0.0.10 which can be
found on freshmeat.

The most common segfaults happen when i click on the master/sysusers
table, below is what enable-debug has to say about this:

[Fri Apr 26 15:28:10 2002] [error] PHP Warning:  Sybase:  Server message: 
Changed database context to 'master'.
 (severity 10, procedure N/A) in
/usr/local/apache/htdocs/sybase/tbl_properties.php on line 12
/usr/local/apache/htdocs/sybase/tbl_properties.php(12) : Warning - Sybase:
 Server message:  Changed database context to 'master'.
 (severity 10, procedure N/A)
[Fri Apr 26 15:28:10 2002] [error] PHP Warning:  Sybase:  Server message: 
For information on declarative integrity features : PRIMARY KEY, UNIQUE,
FOREIGN KEY, CHECK CONSTRAINT, REFERENTIAL CONSTRAINT, NULL/NOT NULL, and
DEFAULT, use sp_helpconstraint, a new system stored procedure. (severity
10, procedure sp_helpkey) in
/usr/local/apache/htdocs/sybase/tbl_properties.php on line 13
/usr/local/apache/htdocs/sybase/tbl_properties.php(13) : Warning - Sybase:
 Server message:  For information on declarative integrity features :
PRIMARY KEY, UNIQUE, FOREIGN KEY, CHECK CONSTRAINT, REFERENTIAL
CONSTRAINT, NULL/NOT NULL, and DEFAULT, use sp_helpconstraint, a new
system stored procedure. (severity 10, procedure sp_helpkey)
[Fri Apr 26 15:28:10 2002] [error] PHP Warning:  Sybase:  Server message: 
  (severity 10, procedure sp_helpkey) in
/usr/local/apache/htdocs/sybase/tbl_properties.php on line 13
/usr/local/apache/htdocs/sybase/tbl_properties.php(13) : Warning - Sybase:
 Server message:    (severity 10, procedure sp_helpkey)
[Fri Apr 26 15:28:10 2002]  Script: 
'/usr/local/apache/htdocs/sybase/tbl_properties.php'
---------------------------------------
./zend_execute.c(449) : Block 0x082388F0 status:
zend_variables.c(44) : Actual location (location was relayed)
Beginning:      OK (allocated on string.c:2262, 9 bytes)
      End:      Overflown (magic=0x2A8FCC00 instead of 0x2A8FCC84)
                1 byte(s) overflown
---------------------------------------
[Fri Apr 26 15:28:10 2002] [error] PHP Notice:  Undefined property:  Extra
in /usr/local/apache/htdocs/sybase/tbl_properties.php on line 104
/usr/local/apache/htdocs/sybase/tbl_properties.php(104) : Notice -
Undefined property:  Extra
[Fri Apr 26 15:28:10 2002]  Script: 
'/usr/local/apache/htdocs/sybase/tbl_properties.php'
---------------------------------------
./zend_execute.c(449) : Block 0x08238930 status:
zend_variables.c(44) : Actual location (location was relayed)
Beginning:      OK (allocated on string.c:2262, 9 bytes)
      End:      Overflown (magic=0x2A8FCC00 instead of 0x2A8FCC84)
                1 byte(s) overflown
---------------------------------------
[Fri Apr 26 15:28:10 2002] [error] PHP Notice:  Undefined property:  Extra
in /usr/local/apache/htdocs/sybase/tbl_properties.php on line 104
/usr/local/apache/htdocs/sybase/tbl_properties.php(104) : Notice -
Undefined property:  Extra
[Fri Apr 26 15:28:10 2002]  Script: 
'/usr/local/apache/htdocs/sybase/tbl_properties.php'
---------------------------------------
./zend_execute.c(449) : Block 0x08258430 status:
zend_variables.c(44) : Actual location (location was relayed)
Beginning:      OK (allocated on string.c:2262, 9 bytes)
      End:      Overflown (magic=0x2A8FCC00 instead of 0x2A8FCC84)
                1 byte(s) overflown
---------------------------------------
[Fri Apr 26 15:28:10 2002] [error] PHP Notice:  Undefined property:  Extra
in /usr/local/apache/htdocs/sybase/tbl_properties.php on line 104
/usr/local/apache/htdocs/sybase/tbl_properties.php(104) : Notice -
Undefined property:  Extra
[Fri Apr 26 15:28:10 2002]  Script: 
'/usr/local/apache/htdocs/sybase/tbl_properties.php'
---------------------------------------
./zend_execute.c(449) : Block 0x0825F0F8 status:
zend_variables.c(44) : Actual location (location was relayed)
Beginning:      OK (allocated on string.c:2262, 8 bytes)
      End:      Overflown (magic=0x2A8FCC00 instead of 0x2A8FCC84)
                1 byte(s) overflown
---------------------------------------
[Fri Apr 26 15:28:10 2002] [error] PHP Notice:  Undefined property:  Extra
in /usr/local/apache/htdocs/sybase/tbl_properties.php on line 104
/usr/local/apache/htdocs/sybase/tbl_properties.php(104) : Notice -
Undefined property:  Extra
[Fri Apr 26 15:28:10 2002]  Script: 
'/usr/local/apache/htdocs/sybase/tbl_properties.php'
---------------------------------------
./zend_execute.c(449) : Block 0x08232F88 status:
zend_variables.c(44) : Actual location (location was relayed)
Beginning:      OK (allocated on string.c:2262, 8 bytes)
      End:      Overflown (magic=0x2A8FCC00 instead of 0x2A8FCC84)
                1 byte(s) overflown
---------------------------------------
[Fri Apr 26 15:28:10 2002] [error] PHP Notice:  Undefined property:  Extra
in /usr/local/apache/htdocs/sybase/tbl_properties.php on line 104
/usr/local/apache/htdocs/sybase/tbl_properties.php(104) : Notice -
Undefined property:  Extra
[Fri Apr 26 15:28:11 2002] [error] PHP Warning:  Sybase:  Server message: 
For information on declarative integrity features : PRIMARY KEY, UNIQUE,
FOREIGN KEY, CHECK CONSTRAINT, REFERENTIAL CONSTRAINT, NULL/NOT NULL, and
DEFAULT, use sp_helpconstraint, a new system stored procedure. (severity
10, procedure sp_helpkey) in
/usr/local/apache/htdocs/sybase/tbl_properties.php on line 122
/usr/local/apache/htdocs/sybase/tbl_properties.php(122) : Warning -
Sybase:  Server message:  For information on declarative integrity
features : PRIMARY KEY, UNIQUE, FOREIGN KEY, CHECK CONSTRAINT, REFERENTIAL
CONSTRAINT, NULL/NOT NULL, and DEFAULT, use sp_helpconstraint, a new
system stored procedure. (severity 10, procedure sp_helpkey)
[Fri Apr 26 15:28:11 2002] [error] PHP Warning:  Sybase:  Server message: 
  (severity 10, procedure sp_helpkey) in
/usr/local/apache/htdocs/sybase/tbl_properties.php on line 122
/usr/local/apache/htdocs/sybase/tbl_properties.php(122) : Warning -
Sybase:  Server message:    (severity 10, procedure sp_helpkey)
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined property: 
Non_unique in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
154
/usr/local/apache/htdocs/sybase/tbl_properties.php(154) : Notice -
Undefined property:  Non_unique
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
sql_query in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  sql_query
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
zero_rows in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  zero_rows
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined property: 
Non_unique in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
154
/usr/local/apache/htdocs/sybase/tbl_properties.php(154) : Notice -
Undefined property:  Non_unique
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
sql_query in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  sql_query
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
zero_rows in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  zero_rows
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined property: 
Non_unique in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
154
/usr/local/apache/htdocs/sybase/tbl_properties.php(154) : Notice -
Undefined property:  Non_unique
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
sql_query in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  sql_query
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
zero_rows in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  zero_rows
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined property: 
Non_unique in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
154
/usr/local/apache/htdocs/sybase/tbl_properties.php(154) : Notice -
Undefined property:  Non_unique
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
sql_query in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  sql_query
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
zero_rows in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  zero_rows
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined property: 
Non_unique in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
154
/usr/local/apache/htdocs/sybase/tbl_properties.php(154) : Notice -
Undefined property:  Non_unique
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
sql_query in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  sql_query
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined variable: 
zero_rows in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
160
/usr/local/apache/htdocs/sybase/tbl_properties.php(160) : Notice -
Undefined variable:  zero_rows
[Fri Apr 26 15:28:11 2002] [error] PHP Notice:  Undefined property: 
Non_unique in /usr/local/apache/htdocs/sybase/tbl_properties.php on line
154
/usr/local/apache/htdocs/sybase/tbl_properties.php(154) : Notice -
Undefined property:  Non_unique
string.c(2262) :  Freeing 0x08232FAC (8 bytes),
script=/usr/local/apache/htdocs/sybase/tbl_properties.php
Last leak repeated 4 times


-- 
Edit bug report at http://bugs.php.net/?id=16864&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16864&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16864&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16864&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16864&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16864&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16864&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16864&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16864&r=submittedtwice

Reply via email to