* Thus wrote Jeff: > Hey all.... > > Total PHP newbie here. I posted a day ago about php working > 'intermittently'. I was told to check my apache logs which was a good hint > cause php is seg faulting. I've broken it down to my connection script to my > database and I ran it in gdb to see if it would tell me anything. Since I am > linux-tarded I don't have any clue what the problem is.
well, you're not that l-tarded if you know how to obtain a backtrace :) There are a lot of variables that are contributing to this behaviour. 1. You're OS and Version 2. Mysql Version 3. PHP version. > Here is the backtrace!!!! > > (gdb) bt > #0 0x4207492e in _int_free () from /lib/tls/libc.so.6 > #1 0x42073908 in free () from /lib/tls/libc.so.6 > #2 0x0812b20d in _efree () > #3 0x40962a35 in _close_mysql_link (rsrc=0x0) > at /usr/src/redhat/BUILD/php-4.2.2/ext/mysql/php_mysql.c:253 This answers 1 and 2. and by the version of php your using, which happens to be almost 2 years old, You've probably have redhat 3.x installed. So, at this point I can only tell you to upgrade you're php. But.. if you installed mysql with an rpm you'll probably want to upgrade mysql as well. now how to do that.. is a whole nother ball park, iirc, that has been answered recently on the list. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php