Bug #4337: Informix ifx_get_blob() causes SIGSEGV in Apache 1.3.9

From: Date: Fri, 05 May 2000 17:30:59 +0000
Subject: Bug #4337: Informix ifx_get_blob() causes SIGSEGV in Apache 1.3.9
Groups: php.dev 
Request: Send a blank email to php-dev+get-18465@lists.php.net to get a copy of this message
From: daniel.lashua@gte.com Operating system: Digital Unix 4.0F Linux 2.2.13 PHP version: 3.0.16 PHP Bug Type: Reproduceable crash Bug description: Informix ifx_get_blob() causes SIGSEGV in Apache 1.3.9 Reference the following code: $values_id = ifx_query($stmt_get, $dbcon); ifx_textasvarchar(0); ifx_blobinfile_mode(0); $data =ifx_fetch_row($values_id); $db_hubclli=$data["hub_clli"]; $db_sub_clli=$data["clli_code"]; $db_sfac=$data["sfac"]; $db_code=$data["code"]; $db_name=$data["name"]; $notes_id=$data["notes"]; $db_ri= $data["ri"]; $db_notes = ifx_get_blob($notes_id); ifx_free_blob($notes_id); ifx_free_result($values_id); The "ifx_get_blob" function causes Apache to SIGSEGV on more than one platform. The server product is Informix Online Server 7.24.FC6. The Informix Client Libraries are version 7.20. Apache version is 1.3.9. PHP version is 3.0.16. This occurs on both the Digital Unix 4.0F operating system running on Digital hardware (DS20) and on Linux 2.2.13. From the Linux box, here is the output of gdb: (gdb) run Starting program: /usr/local/apache/bin/./httpd -D TEST -X Program received signal SIGSEGV, Segmentation fault. 0x2ad37c2f in php3_intifxus_new_slob (list=0x0) at functions/ifx.ec:4563 4563 if(Ifx_slob==NULL) { (gdb) continue Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. The SIGSEGV is received when the above code snippet is accessed via web browser. Program received signal SIGSEGV, Segmentation fault.

« previous php.dev (#18465) next »