To reproduce in Jaunty (may require at least two physical CPU cores
because this is a race condition) simply run the following bash command:

$ while true; do php -r ""; done

(hit CTRL+C after seeing at least one "Segmentation fault")

The above code repeatedly starts php interpreter and runs no code before
exit. At it still causes random segfaults.

To reproduce, you must have package "php5-mysql" or equivalent installed
(try "php -m | grep mysql" to see if you have mysql support in php).

I believe that this may cause minor performance hit with the non-CLI php
variant also but because the segmentation fault occurs in (transparent)
paraller process, the problem is not visible through apache.

-- 
php-cli segmentation fault with mysql extension
https://bugs.launchpad.net/bugs/343870
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to