#41888 [Asn]: Segfault when attempting to update PDO LOB column in a stream wrapper
ID: 41888
User updated by: hans at velum dot net
Reported By: hans at velum dot net
Status: Assigned
Bug Type: PDO related
Operating System: Gentoo Linux
PHP Version: 5.2.3
Assigned To: iliaa
New Comment:
Note, here is some revised reproduce code (there was a bug in the
original code such that it was creating two DB connections):
http://pastebin.com/f40fa427d
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2007-09-06 13:36:53] hans at velum dot net
Any update on this ticket? I just confirmed that this is still
segfaulting in latest 5.2.4 PHP release.
------------------------------------------------------------------------
[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
Thread (10 messages)