php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7278 segmentation fault /signal 11
Submitted: 2000-10-17 10:20 UTC Modified: 2000-10-27 22:38 UTC
From: bretschneider at freestyling dot de Assigned: jah (profile)
Status: Closed Package: InterBase related
PHP Version: 4.0.3pl1 OS: Freebsd 4.1
Private report: No CVE-ID: None
 [2000-10-17 10:20 UTC] bretschneider at freestyling dot de
i build a php4.0.3.pl1 binary and changed to ext/interbase.
then i did "make test" .... and then u get the segmentation faults when using bind-vars in
ibase_query and ibase_execute

interbase.c(299) : Block 0x081A0948 status:
Beginning:  	Overrun (magic=0x00000B6E, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:06 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.L73836'
---------------------------------------
interbase.c(301) : Block 0x081B0D48 status:
Beginning:  	Overrun (magic=0x00000575, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:06 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.L73836'
---------------------------------------
interbase.c(299) : Block 0x081B24C8 status:
Beginning:  	Overrun (magic=0x00000A84, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:06 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.L73836'
---------------------------------------
interbase.c(301) : Block 0x081B2648 status:
Beginning:  	Overrun (magic=0x00000575, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:06 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.L73836'
---------------------------------------
interbase.c(299) : Block 0x081A0B88 status:
Beginning:  	Overrun (magic=0x00000A84, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:06 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.L73836'
---------------------------------------
interbase.c(301) : Block 0x081B2388 status:
Beginning:  	Overrun (magic=0x00000575, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(160) : Warning - InterBase: invalid database handle (no active connection) 
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(161) : Warning - InterBase: invalid database handle (no active connection) 
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(161) : Warning - 8 is not a valid InterBase link resource
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(163) : Warning - InterBase module: query argument missed
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/interbase.inc(24) : Warning - Supplied argument is not a valid InterBase result resource
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/interbase.inc(25) : Warning - Supplied argument is not a valid InterBase result resource
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(168) : Warning - Supplied argument is not a valid InterBase result resource
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(170) : Warning - InterBase module: query argument missed
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(172) : Warning - InterBase module: query argument missed
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/interbase.inc(24) : Warning - Supplied argument is not a valid InterBase result resource
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/interbase.inc(25) : Warning - Supplied argument is not a valid InterBase result resource
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.B73836(177) : Warning - Supplied argument is not a valid InterBase result resource
Segmentation fault - core dumped
/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836(47) : Warning - InterBase: Dynamic SQL Error SQL error code = -303 conversion error from string "04/13/1950 15:47:34" 
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E08 status:
Beginning:  	Overrun (magic=0x00000575, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E14 status:
Beginning:  	Overrun (magic=0x00000000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E20 status:
Beginning:  	Overrun (magic=0x00000078, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E2C status:
Beginning:  	Overrun (magic=0x46430000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E38 status:
Beginning:  	Overrun (magic=0x57490000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(299) : Block 0x08171E3C status:
Beginning:  	Overrun (magic=0x4A4F4F51, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E44 status:
Beginning:  	Overrun (magic=0x48460000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E50 status:
Beginning:  	Overrun (magic=0x44430000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(299) : Block 0x08171E54 status:
Beginning:  	Overrun (magic=0x4C574754, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E5C status:
Beginning:  	Overrun (magic=0x4B5A0000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(299) : Block 0x08171E60 status:
Beginning:  	Overrun (magic=0x453D16A8, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E68 status:
Beginning:  	Overrun (magic=0x4E4E0000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
[Tue Oct 17 16:18:07 2000]  Script:  '/usr/local/src/php-4.0.3pl1/ext/interbase/tests/phpt.T73836'
---------------------------------------
interbase.c(301) : Block 0x08171E74 status:
Beginning:  	Overrun (magic=0x41580000, expected=0x7312F8DC)
      End:	Unknown
---------------------------------------
FATAL:  erealloc():  Unable to allocate 1515870844 bytes
Segmentation fault - core dumped

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-17 11:11 UTC] jah@php.net
Please apply the following patch. It should help. Note that the tests will still not pass.
They were originally written for InterBase 4 and PHP 3 and must be fixed to
reflect the changes in InterBase 6 and some in the PHP 4's InterBase API too.

--- interbase.bak	Tue Oct 17 18:04:34 2000
+++ interbase.c	Tue Oct 17 18:09:22 2000
@@ -1412,7 +1412,7 @@
 _php_ibase_exec_error:		 /* I'm a bad boy... */
 	
 	if (in_sqlda){
-		_php_ibase_free_xsqlda(in_sqlda);
+		efree(in_sqlda);
 	}
 	if (bind_buf)
 		efree(bind_buf);
 [2000-10-27 22:38 UTC] jah@php.net
No feedback, but as this is the same problem as in #7117 that was confirmed to
be fixed by reporter, closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC