• I just recently switched servers and upgraded my wordpress system. Everything worked fine, until I recompilled apache. Now everytime I hit my wordpress site I get a segmentation fault in my apache log files.

    I am using php 4.3.11, mysql 4.1, and apache 1.3.33 with wordpress 1.5.

    I have narrowed things down to being when wordpress tries to query the database, however what is strange is that I can create a script and query the database no problem, it is only when wordpress tries to use its database functions that I get the segmentation fault. Also lastly I notice I get the same segmentation fault when using phpMyAdmin on JUST the wordpress database. All my other databases are fine…

    Anyway light onto why this is happening would be great.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you check over your httpd.conf file to see if everything is correct after you recompilled apache?

    Thread Starter WritersBlock

    (@writersblock)

    Yup everything looks good… After doing some more digging it turns out that php’s mysql_fetch_field is causing the seg fault…

    This may be related to a bug in PHP.

    MFH: Fixed bug #31288 (Possible crash in mysql_fetch_field(), if mysql_list_fields() was not called previously).

    See https://www.phpdoc.info/commits/3720

    Should WordPress call mysql_list_fields() before mysql_fetch_field()?

    Steve

    Turns out this

    See https://www.phpdoc.info/commits/3720

    was not my problem. I had two apache modules loaded that were compiled against different versions of the mysql client library. I am waiting for another domain to be pointed at my server before seeing if using the correct version of the mysql client library fixes the problem. I should know in a couple of days.

    Thanks,
    Steve

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Segmentation Fault’ is closed to new replies.