[UPHPU] segmentation fault in PHP 5 and Pear
DavidSmith at byu.net
Thu Sep 22 21:01:30 MDT 2005
Richard K. Miller wrote:
>> You should never, ever, ever, ... ever, ever, ever see a segmentation
>> fault in PHP. If you do, it's a bug in the PHP interpreter itself (C
>> code), and you should report it on bugs.php.net. No PHP code should
>> be able to produce a segmentation fault.
> Is this because PHP code (as an interpreted language?) doesn't have
> the ability to directly access memory? That makes sense.
> In my case, could it be MySQL that's bad? Could it be PEAR? (Does
> PEAR have any C code?)
> If not, I'll try to get another build of PHP5 and try it.
Actually, the truth is that no program *should* ever seg-fault, ever. If
it does, it's a bug. Period. It means someone did something bad in
memory somewhere that they shouldn't have been. However, in theory, no
PHP code should ever be capable of producing a seg-fault.
In my days, I've run into a couple cases where I could make PHP
seg-fault, and I managed to trace it down to a buggy function.
ldap_explode_dn() in my case (coincidence, eh?). I recommend you poke
around until you can create a minimal PHP script that seg-faults every
time. Then, report back.
More information about the UPHPU