php segmentation fault

I m getting segmentation faults from php sometimes and I have traced them back to the mysql.so and mysqli.so php extensions. This is on Debian Lenny.

My php version is:

PHP 5.2.6-1+lenny2 with Suhosin-Patch 0.9.6.2 (cli) (built: Jan 26 2009 22:41:04)

Copyright © 1997-2008 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Segmentation fault

As you can see it even seg faults on a php -v.

I asked about this in the ISPConfig forums (as that is what I am running on my linode) and it was suggested that I check the hardware (ie memcheck), but that is a bit hard to do since it is a VPS.

Any ideas?

Thank you for any help you can provide.

Scott Blaydes

6 Replies

Are you using any sort of PHP cache? Such as eAccelerator, XCache or APC?

Random segmentation faults are characteristic of all three systems.

I've seen that if you've used something like pecl to recompile php-mysql, and it got compiled against an older version of the mysql libs

No, I am not using any type of cache.

I didn't compile the PHP or MySQL, they were installed via "apt-get install".

Any other ideas?

Thank you.

Also, which kernel version?

I had same problem a week ago, (debian 5.0 w/ xcache)

I removed gd from php-cli, now it is ok.

hope it helps someone.

Rgrds.

S

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct