Score:0

503 Service Unavailable or Empty Response on specific pages over PHP (PHP-FPM) on MacOS

gd flag

I've got a strange problem here involving some versions of PHP installed in my local machine (MacOS Ventura 13.5).

Certain pages (two at this moment) doesn't load in some versions of PHP. It's loads ok in [email protected] but doesn't load in [email protected], [email protected] and [email protected]. Detail: these pages are compatible with any php version and works on Windows and Linux over [email protected], for example.

I can't debug this error (or i don't know how can i do that).

dmesg show me only this:

[ 3074.896856]: Waking up reference: 1001
Thread waiting on reference 1001 woke up
evaluation result: 1001, allowed, skip-cache,  0
Waking up reference: 1002
Thread waiting on reference 1002 woke up
evaluation result: 1002, allowed, skip-cache,  0
Waking up reference: 1003
Thread waiting on reference 1003 woke up
evaluation result: 1003, allowed, skip-cache,  0
php-fpm[10627] Corpse allowed 1 of 5

Apache log or php-fpm log show me something like this:

WARNING: [pool www] child 10627 exited on signal 11 (SIGSEGV) after 632.773071 seconds from start

More info:

  • Without php-fpm: same problems.
  • Tried to change some options in php-fpm.conf, no success.
  • I think it's related with some php extension not compiled very well, maybe?
Score:0
ws flag

It sounds like PP is crashing on those pages. To reolve this you need to enable core dumps, analyze the dumps with a debugger to identify the cause, re-write the relevant parts of PHP or the extension, recompile and re-deploy. That's not very practical for most people.

Clearly, these pages are NOT compatible with any version of PHP.

some php extension not compiled very well

No, it's most likely a bug in the code somewhere. Any dependency issues would be flagged in the error logs when you restart PHP-FPM.

You do however appear to have a reprocible test case, so it should be trivial to instrument that with detailled logging to isolate where it is crashing.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.