#41888 [Asn->Fbk]: Segfault when attempting to update PDO LOB column in a stream wrapper
| From: | felipe@php.net | Date: | Fri, 13 Feb 2009 22:13:06 +0000 |
| Subject: | #41888 [Asn->Fbk]: Segfault when attempting to update PDO LOB column in a stream wrapper | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133809@lists.php.net to get a copy of this message | ||
ID: 41888
Updated by: felipe@php.net
Reported By: hans at velum dot net
-Status: Assigned
+Status: Feedback
Bug Type: PDO related
Operating System: Gentoo Linux
PHP Version: 5.2.4
Assigned To: iliaa
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-01-14 20:53:04] hans at velum dot net
Any idea when this issue might get fixed? This is a big deal to us,
since this bug prevents us from swapping out filesystem-based storage
with a db-storage engine.
------------------------------------------------------------------------
[2007-10-01 20:04:40] hans at velum dot net
Updating version to reflect that problem is still present in 5.2.4
------------------------------------------------------------------------
[2007-09-06 13:40:07] hans at velum dot net
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!
------------------------------------------------------------------------
[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