php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6824 Getting a core dumps when trying to free blob space
Submitted: 2000-09-21 00:47 UTC Modified: 2000-12-07 11:39 UTC
From: todd_benson at ao dot uscourts dot gov Assigned: danny (profile)
Status: Closed Package: Informix related
PHP Version: 4.0.2 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: todd_benson at ao dot uscourts dot gov
New email:
PHP Version: OS:

 

 [2000-09-21 00:47 UTC] todd_benson at ao dot uscourts dot gov
GDB Info
Program received signal SIGSEGV, Segmentation fault.
0x807df3c in php_if_ifx_free_blob ()
(gdb) bt
#0  0x807df3c in php_if_ifx_free_blob ()
#1  0x807defb in php_if_ifx_free_blob ()
#2  0x8107d24 in execute ()
#3  0x80dd3c0 in zend_execute_scripts ()
#4  0x80707d0 in php_execute_script ()
#5  0x80e80ed in apache_php_module_main ()
#6  0x806e1b6 in send_php ()
#7  0x806e1e8 in send_parsed_php ()
#8  0x8129a93 in ap_invoke_handler ()
#9  0x813d041 in ap_some_auth_required ()
#10 0x813d0a0 in ap_process_request ()
#11 0x8134685 in ap_child_terminate ()
#12 0x813481c in ap_child_terminate ()
#13 0x8134977 in ap_child_terminate ()
#14 0x8134f68 in ap_child_terminate ()
#15 0x81357c7 in main ()
#16 0x806d62f in _start ()
(gdb)

PHP Compiled Modules
with-informix=yes --enable-track-vars --with-apache

Sample Script
<?php


		    	$db = ifx_connect("defect@defectdb","informix","in4mix");


 			$sql = "update defect$test set defect_assigned_to='$assigned_to', defect_class='$class' ,defect_module_id='$module_id',
				  defect_custom='$custom', defect_status='$status', defect_priority='$priority' ,defect_short_desc='$short_desc',
			        defect_test_case='$test_case',defect_test_area='$test_area',defect_verified_by='$verified_by',
                           defect_prior_itc='$prior_itc',defect_prior_dev='$prior_dev', 
				  defect_status_dev='$status_dev', defect_access_lvl='$access_lvl', defect_source_mod='$source_mod' 
			        where defect_id='$error'";
			$result = ifx_query($sql,$db);
			
			ifx_free_blob($long_desc_id);
			//$textid = ifx_create_blob(0, 0, "$long_desc" );
			//$blobidarray[] = $textid;
			//$query = "insert into  defect$test (defect_long_desc) values (?) where defect_id='$error'";
			//$result = ifx_query($query, $db, $blobidarray); 
echo "This is done";
			

?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-01 23:12 UTC] danny@php.net
Can you provide me with the exact version of your Informix 
client esql/c library (esql -V) ? 

The Informix driver contains a work-around for a bug in 
certain versions of the Informix ESQL/C library when 
freeing blobs.

Also, in your example, is it the first ifx_free_blob() that 
crashes ? And if it is the first one, where has it been 
created ? Or is it the second one that has been patched out ?

Danny
--
 [2000-12-07 11:39 UTC] sniper@php.net
Reopen, if this still happens when using latest snapshot
from http://snaps.php.net/

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC