php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16864 reproducable seg faults without --enable-debug
Submitted: 2002-04-26 17:28 UTC Modified: 2002-10-25 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: timspam at donet dot com Assigned:
Status: No Feedback Package: Sybase-ct (ctlib) related
PHP Version: 4.2.0 OS: Redhat 6.2
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: timspam at donet dot com
New email:
PHP Version: OS:

 

 [2002-04-26 17:28 UTC] timspam at donet dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 22:19 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 13:01:27 2024 UTC