Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 429693 - php-pdo reproducable segmentation fault
php-pdo reproducable segmentation fault
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: php (Show other bugs)
x86_64 Linux
low Severity medium
: rc
: ---
Assigned To: Joe Orton
Depends On:
  Show dependency treegraph
Reported: 2008-01-22 09:24 EST by Arturas Moskvinas
Modified: 2009-01-20 17:05 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-01-20 17:05:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch fixing segfault (1.18 KB, patch)
2008-01-22 09:24 EST, Arturas Moskvinas
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
PHP Bug Tracker 37445 None None None Never
Red Hat Product Errata RHBA-2009:0226 normal SHIPPED_LIVE php bug fix update 2009-01-20 11:06:27 EST

  None (edit)
Description Arturas Moskvinas 2008-01-22 09:24:54 EST
Description of problem:
Php segfault when there is a pdo error. 

Version-Release number of selected component (if applicable):

How reproducible:

    $oDB= new PDO('mysql:host=localhost;dbname=mysql',
// emulated or not does not matter
    $oDB->setAttribute(PDO :: ATTR_EMULATE_PREPARES, true);
    $oStm = $oDB->prepare("SELECT * FROM user WHERE user=:character_set");
    $oStm->bindParam(':character_set', "some");
bindParam requires reference (error)

Steps to Reproduce:
1. Change to correct username and password
2. Start script through command line (php test.php) or through web
3. php segfault or httpd segfaults
Actual results:

Fatal error: Cannot pass parameter 2 by reference in test.php on line 7
Segmentation fault

Expected results:
Fatal error: Cannot pass parameter 2 by reference in test.php on line 7

Additional info:
PHP bug report: http://bugs.php.net/bug.php?id=37445
PHP cvs diff: http://news.php.net/php.cvs/39679
Comment 1 Arturas Moskvinas 2008-01-22 09:24:54 EST
Created attachment 292513 [details]
Patch fixing segfault
Comment 2 Joe Orton 2008-01-23 11:22:01 EST
Thanks for the report.
Comment 3 RHEL Product and Program Management 2008-06-04 18:47:00 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 8 errata-xmlrpc 2009-01-20 17:05:13 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.