|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14702 segfault in OCIFetchStatement with 1 or 2 chars CLOB
Submitted: 2001-12-26 13:28 UTC Modified: 2002-05-18 00:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:6 of 6 (100.0%)
Same Version:1 (16.7%)
Same OS:4 (66.7%)
From: ora at mlkj dot net Assigned:
Status: No Feedback Package: OCI8 related
PHP Version: 4.1.0 OS: Linux 2.4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-12-26 13:28 UTC] ora at mlkj dot net
php segfault with the following code :

$stmt = OCIParse($conn,"select myclob from I18N");

when myclob contains at least one row with one or two characters. work fine when clob length = 0 or >= 3.
oracle and php use utf-8.

php : 4.1.0 and 4.0.6 on linux x86
oracle : on sparc64


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-27 05:52 UTC]
Can you provide a backtrace? (
 [2001-12-27 07:55 UTC] ora at mlkj dot net
(gdb) bt
#0  0x4056bc67 in ttci2u () from /opt/oracle/Oracle8iR3/lib/
#1  0x40335490 in kpulbcr () from /opt/oracle/Oracle8iR3/lib/
#2  0x40579002 in ttcdrv () from /opt/oracle/Oracle8iR3/lib/
#3  0x40448855 in nioqwa () from /opt/oracle/Oracle8iR3/lib/
#4  0x4035a9f2 in upirtrc () from /opt/oracle/Oracle8iR3/lib/
#5  0x4033742d in kpurcsc () from /opt/oracle/Oracle8iR3/lib/
#6  0x4032500c in kpulfrd () from /opt/oracle/Oracle8iR3/lib/
#7  0x40344d7a in OCILobRead () from /opt/oracle/Oracle8iR3/lib/
#8  0x80781c6 in oci_loadlob (connection=0x81d7d0c, mydescr=0x81d7c24, buffer=0xbfffd9b8, loblen=0xbfffd9bc)
    at oci8.c:1860
#9  0x80771f4 in _oci_make_zval (value=0x81f206c, statement=0x81db77c, column=0x81e641c, 
    func=0x811d5ef "OCIFetchStatement", mode=8) at oci8.c:1242
#10 0x807bbc6 in zif_ocifetchstatement (ht=2, return_value=0x81e65e4, this_ptr=0x0, return_value_used=1) at oci8.c:3970
#11 0x8103a55 in execute (op_array=0x81d15e4) at /home/ch/php-4.1.0/Zend/zend_execute.c:1590
#12 0x80e5cc2 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:814
#13 0x8063921 in php_execute_script (primary_file=0xbffff9d0) at main.c:1309
#14 0x8061bc4 in main (argc=2, argv=0xbffffa74) at cgi_main.c:738
#15 0x407faf31 in __libc_start_main (main=0x80613d4 <main>, argc=2, ubp_av=0xbffffa74, init=0x805f8d0 <_init>, 
    fini=0x811843c <_fini>, rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffffa6c) at ../sysdeps/generic/libc-start.c:129
 [2002-04-13 09:03 UTC]
please send me a short selfcontained testcase for this

 [2002-05-18 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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: Fri May 24 04:01:31 2024 UTC