[php-maint] Bug#513204: segfaults averted using only PDO?

Noel T. herrnoel at yahoo.com
Mon Jun 15 19:03:12 UTC 2009


I have two pretty fresh builds of Lenny running on amd64 arch (a single cpu/dual core (2 cores) and a dual cpu/dual core (4 cores)), and have been getting these segfault issues.  The machines were set up in late May and thus have all the latest from the repos.

I confirmed using the shell script that mysql extensions are the problem (both php5-mysql and php5-mysqli).  What I'd like to point out and ask others to confirm is that the PDO mysql extension seems to work fine.  I'm running the script now with mysql.so and mysqli.so disabled but PDO mysql enabled and I'm 22,000th iteration.  This is a lot better than dying after 700 runs!

I also confirm that running on one cpu with taskset seems to avoid the segfaults.  Is the PDO mysql extension making use of a different libmysqlclient?

I'd also like to point out that while my system arch is amd64, debinstaller put the i686 optimized versions of libc6 on my system.  My first segfaults were always happening referencing librt-2.7.so (100%).  I uninstalled the i686 libs and installed the amd64 libs.  After this, the segfaults usually reference libgcc_s.so.1 but still sometimes reference librt-2.7.so (5%).  


      





More information about the pkg-php-maint mailing list