Bug 751331

Summary: Glibc AVX patches required for building PHP with PDO on Sandy Bridge CPU
Product: Red Hat Enterprise Linux 6 Reporter: Iain Kay <i.kay>
Component: glibcAssignee: Andreas Schwab <schwab>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1CC: fweimer, mfranc, stuart.gilbertson
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-10 15:14:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Iain Kay 2011-11-04 11:37:11 UTC
Description of problem:
When attempting to build PHP with PDO (PHP Data Objects) module the resulting binary cannot execute when loading pdo module in php.ini.
Updating Glibc to 2.14.90-14 from Fedora 16 testing fixes the issue and allows PHP to execute.

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

How reproducible:
Build PHP with --enable-pdo and the resulting binary will not execute.

Steps to Reproduce:
1. Download PHP 5.3.8 from php.net, untar and enter directory.
2. Configure installation with --enable-pdo.
3. Build and install (make && make install)
4. Execute php and ask for version.
  
Actual results:
root@46-20-236-35 [~]# php -v
Illegal instruction
root@46-20-236-35 [~]# 


Expected results:
root@46-20-236-35 [~]# php -v
PHP 5.3.8 (cli) (built: Nov 4 2011 10:47:26) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
root@46-20-236-35 [~]# 

Additional info:
root@46-20-236-35 [~]# cat /usr/lib/php.ini | grep pdo
extension=pdo.so
extension=pdo_sqlite.so
extension=pdo_mysql.so
root@46-20-236-35 [~]#

Comment 2 Andreas Schwab 2011-11-04 12:14:49 UTC
Where does it crash?

Comment 3 Iain Kay 2011-11-04 12:23:38 UTC
The compilation doesn't crash per-sé it finishes with make status 0 and then the resulting binary of PHP is fine until loading PDO modules in php.ini.

The same build works fine on RHEL 5.5/5.6 with or without PDO.

cPanel (www.cpanel.net) Support put me on to the fact that it could be Glibc version, and after having patched that out with the f16 packages the build completes in the same way however loading the PDO module works fine.

The only way to tell that it has any issues at all are to execute the php application from the command line where one is presented with the error message: "Illegal instruction".

Comment 4 Andreas Schwab 2011-11-04 12:52:40 UTC
Where does it crash?

Comment 5 RHEL Program Management 2011-11-08 06:47:21 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 6 Andreas Schwab 2011-11-10 15:14:53 UTC

*** This bug has been marked as a duplicate of bug 752122 ***