php-cli segmentation fault with mysql extension
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
mysql-dfsg-5.0 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
Intrepid |
Won't Fix
|
Undecided
|
Unassigned | ||
Jaunty |
Won't Fix
|
Undecided
|
Unassigned | ||
Karmic |
Invalid
|
Medium
|
Unassigned | ||
mysql-dfsg-5.1 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Intrepid |
Won't Fix
|
Undecided
|
Unassigned | ||
Jaunty |
Won't Fix
|
Undecided
|
Unassigned | ||
Karmic |
Won't Fix
|
Medium
|
Unassigned | ||
php5 (Debian) |
Fix Released
|
Unknown
|
|||
php5 (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Intrepid |
Invalid
|
Undecided
|
Unassigned | ||
Jaunty |
Invalid
|
Undecided
|
Unassigned | ||
Karmic |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: php5-cli
$ php -v
PHP 5.2.6-2ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11 2009 20:38:24)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
Segmentation fault
The problem is intermittent, occurring about 9 out of 10 times.
Ubuntu version: 8.10
Package: php5-cli
Version: 5.2.6-2ubuntu4.1
Package: php5-mysql
Version: 5.2.6-2ubuntu4.1
The problem goes away if I remove both mysql.ini and mysqli.ini from /etc/php5/
=== Stable Release Update Information ===
IMPACT
This bug will affect any users of php that have installed the php5-mysql module, and so the impact is fairly high. Meanwhile, the patch is fairly small, and is already released in later upstream versions.
.
DEV RELEASE STATUS
This was fixed upstream in mysql v5.1.40, which is well below the Maverick version, 5.1.49. Lucid also has 5.1.41, and so is not affected.
TEST CASE
while true; do php -r ""; done
Will eventually produce a segmentation fault.
REGRESSION POTENTIAL
The change is very tiny and seeing as the patch has been in use in subsequent releases of Ubuntu, regression seems unlikely.
Related branches
- Artur Rona (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 66 lines (+43/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/00list (+1/-0)
debian/patches/10_fix_segfaults_lp343870.dpatch (+35/-0)
Changed in php5: | |
status: | Unknown → Incomplete |
Changed in mysql-dfsg-5.0: | |
importance: | Undecided → Low |
status: | New → Triaged |
importance: | Low → Medium |
Changed in php5 (Ubuntu Karmic): | |
status: | Confirmed → Fix Released |
Changed in mysql-dfsg-5.0 (Ubuntu Karmic): | |
status: | New → Confirmed |
Changed in php5 (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in php5 (Ubuntu Intrepid): | |
status: | New → Invalid |
Changed in php5 (Ubuntu Jaunty): | |
status: | New → Invalid |
Changed in php5 (Ubuntu Karmic): | |
status: | Confirmed → Invalid |
Changed in mysql-dfsg-5.0 (Ubuntu Karmic): | |
importance: | Undecided → Medium |
Changed in mysql-dfsg-5.0 (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: patch |
tags: |
added: patch-accepted-upstream removed: patch |
tags: | added: patch |
Changed in mysql-dfsg-5.0 (Ubuntu Intrepid): | |
status: | New → Won't Fix |
Changed in mysql-dfsg-5.1 (Ubuntu Intrepid): | |
status: | New → Won't Fix |
Changed in php5 (Debian): | |
status: | Incomplete → Fix Released |
This happens on Debian as well due to a race condition in libmysqlclient1 5off: bugs.mysql. com/bug. php?id= 42850
http://