ID:               41888
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hans at velum dot net
-Status:           Open
+Status:           Assigned
 Bug Type:         PDO related
 Operating System: Gentoo Linux
 PHP Version:      5.2.3
-Assigned To:      
+Assigned To:      iliaa


Previous Comments:
------------------------------------------------------------------------

[2007-07-03 12:58:52] hans at velum dot net

Description:
------------
I am trying to use PDO LOB columns with PostgreSQL within a
user-defined stream wrapper class.  PDO is correctly handling the LOB
with PostgreSQL as stream resources; however, when I attempt to update a
LOB column using another stream (e.g. php://temp, php://memory) in my
stream_flush() command, I get a segmentation fault.

Reproduce code:
---------------
I was able to create a basic reproduce case; however, it is more than
20 lines of code.

Here is a link to a snippet that creates the stream wrapper and
attempts to perform an update:

http://pastebin.com/941246

This consistently segfaults in my environment.

Expected result:
----------------
No segfault.

Actual result:
--------------
Segfault.  I have PHP compiled w/ debug flags; however, the backtrace
in this case is very unhelpful.


Program terminated with signal 11, Segmentation fault.
#0  0x0830aabd in _zval_dtor_func ()
(gdb) bt
#0  0x0830aabd in _zval_dtor_func ()
#1  0x082fdf90 in ?? ()
#2  0x0870bf34 in ?? ()
#3  0x085bdec4 in ?? ()
#4  0x00000023 in ?? ()
#5  0x085c0268 in ?? ()
#6  0x00000001 in ?? ()
#7  0x00000001 in ?? ()
#8  0xbf8f0108 in ?? ()
#9  0x082fe146 in _zval_ptr_dtor ()
Backtrace stopped: frame did not save the PC
(gdb)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41888&edit=1

Reply via email to