PDA

View Full Version : PHP Segmentation Fault (core dump)



md5hash
September 12th, 2007, 03:52 AM
why is it that php 5.2.x produces segmentation fault (core dump) on linux
and php 5.1.4 on windows doesnt im testing the same scripts.

Lux Perpetua
September 12th, 2007, 04:11 AM
Maybe because your code has a bug?

CptPicard
September 12th, 2007, 04:15 AM
Either PHP sucks more than I had ever imagined or he deserves an award for creating an interpreted language bug that segfaults the interpreter :)

md5hash
September 12th, 2007, 04:26 AM
Maybe because your code has a bug?

the script runs fine on windows which has a lower version of php

Lux Perpetua
September 12th, 2007, 05:57 AM
Either PHP sucks more than I had ever imagined or he deserves an award for creating an interpreted language bug that segfaults the interpreter :)I don't know of any such bug, but without seeing the code in question, that would be my wager.

md5hash: code that works, or appears to work, can still be buggy.

Of course, it's possible that you've uncovered a bug in PHP, but with the level of detail you're providing, we're never going to find out.

md5hash
October 9th, 2007, 10:33 AM
im attaching the code here.. code executed via cron timer.

md5hash
October 13th, 2007, 07:16 PM
bump.. anyone?

Lux Perpetua
October 13th, 2007, 11:56 PM
Even people who are good at debugging code are going to have a hard time unless you tell them how to reproduce the crash or at least under what circumstances the script crashed. Be as specific as possible. If it's a bug in the interpreter and not in your code (unlikely, but possible), then of course, you're going to have to let people reproduce the crash.