php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28350 segfault on informix when select a blob column
Submitted: 2004-05-10 17:42 UTC Modified: 2005-02-11 01:00 UTC
Votes:6
Avg. Score:4.7 ± 0.7
Reproduced:5 of 5 (100.0%)
Same Version:1 (20.0%)
Same OS:1 (20.0%)
From: marco dot marinelli at halcomputers dot com Assigned:
Status: No Feedback Package: Informix related
PHP Version: 4.3.6 OS: linux 2.4.18
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-05-10 17:42 UTC] marco dot marinelli at halcomputers dot com
Description:
------------
When submit a query on informix with a blob column, i get: 
'Mon May 10 17:01:30 2004] [notice] child pid 3979 exit signal Segmentation fault (11)' in apache.
Php version is 4.3.6, Apache 1.3.23
Informix: INFORMIX-ESQL Version 9.51.UC3


Reproduce code:
---------------
$conn_id = ifx_connect("webnegozi@lnxi2000_on","informix","informix");
#ifx_byteasvarchar(1);
#ifx_textasvarchar(1);
ifx_blobinfile_mode(0);
ifx_nullformat(1);
$res_id = ifx_query("select modello,dexmode,photo from stk_webmod where modello = 'PANGELO'", $conn_id);
if (! $res_id) {
   printf("Can't select: %s\n<br />%s<br />\n", ifx_error());
   ifx_errormsg();
   die;
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-10 23:55 UTC] iliaa@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2004-05-12 10:31 UTC] marco dot marinelli at halcomputers dot com
Here the backtrace:
(gdb) bt
#0  php_intifx_release_blob (blob=0xbf00d2bc)
    at /usr/src/php/ext/informix/ifx.ec:3170
#1  0x405bcb28 in __DTOR_END__ () from /usr/lib/apache/libphp4.so
#2  0x4056fb72 in execute (op_array=0x8112544)
    at /usr/src/php/Zend/zend_execute.c:1637
#3  0x40559692 in zend_execute_scripts (type=-1073753716, retval=0x64ffd14c,
    file_count=32) at /usr/src/php/Zend/zend.c:886
 [2005-02-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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-2021 The PHP Group
All rights reserved.
Last updated: Fri Dec 03 10:01:41 2021 UTC