News for hackers. Stuff that matters.
Re:Don't Leave Coredumps on Web Servers by Xoros on Friday June 16, 2017 @07:14AM (#14567984)
"PHP used to crash relatively often." ?

In 15 years of hosting hundreds of PHP site, I've never seen a single coredump. Is it just me ?

Re:Don't Leave Coredumps on Web Servers by andreareina on Friday June 16, 2017 @07:42AM (#14568089)
No OS I've used in the last ~10 years left a core dump by default. Maybe longer, but I didn't know what core dumps were then, so I wouldn't know what I was looking at if they did.
Re:Don't Leave Coredumps on Web Servers by cyphar on Saturday June 17, 2017 @02:10AM (#14574538)
Almost all Unixes generate coredumps by default. illumos, FreeBSD, and yes GNU/Linux. The reason why you might not have seen coredumps in a cores/ directory is because most GNU/Linux distributions have configured the kernel such that all new coredumps are sent to a processing script (systemd has a coredump script) which results in a coredump file not included in the current directory.
Re:Don't Leave Coredumps on Web Servers by khedoros1 on Friday June 16, 2017 @04:00PM (#14572195)
A bunch of the Unixes I've worked with do, it seems like. And at least some of the Linux systems on my own computers (I'm almost positive that this was my first contact with the idea of a core dump).
Re:Don't Leave Coredumps on Web Servers by hannob on Friday June 16, 2017 @08:07AM (#14568195)
Do you have coredumps enabled on your hosting servers? As written in the blogpost the major distributions have a configuration that will forward coredumps to crash handling tools and not directly store them. Others simply have coredumps disabled by default.
Re:Don't Leave Coredumps on Web Servers by mpa000 on Friday June 16, 2017 @12:06PM (#14570131)
It depends on how you are running it, in my experience. We're forced, due to ISP restrictions, to use FastCGI. I've not tested this theory, so YMMV, but I've had more trouble doing it that way than when using PHP as a module. We've seen less of it over the past few years, but it happened regularly enough in the past to make "grep for coredumps" a regular task.
Re:Don't Leave Coredumps on Web Servers by _RPM on Friday June 16, 2017 @11:06AM (#14569625)
It's easy to make PHP segfault. All you have to do is create an infinite recursion.
Re:Don't Leave Coredumps on Web Servers by PetahNZ on Saturday June 17, 2017 @01:48AM (#14574486)
Unless you use xdebug.max_nesting_level
Re:Don't Leave Coredumps on Web Servers by watter on Sunday June 18, 2017 @09:03AM (#14580471)
Xdebug in production you say?
Re:Don't Leave Coredumps on Web Servers by tzakrajs on Friday June 16, 2017 @10:44AM (#14569437)
It's not hard to make PHP seg fault and in the course of doing web development and hosting you will need to use core files to debug opaque issues with GDB.
Re:Don't Leave Coredumps on Web Servers by bpicolo on Friday June 16, 2017 @10:50AM (#14569497)
I've had to do this ~3 times in the last couple years. In all cases it was extensions not playing well (xcache, gmagick/imagick). I actually couldn't find a single version of gmagick/imagick that tore down or something properly in php 7.0.x (broke when phpunit launched extra-process tests, among other places)
Re:Don't Leave Coredumps on Web Servers by octalmage on Friday June 16, 2017 @03:08PM (#14571825)
I've always found the cause to be extensions as well. Usually a version conflict or something. It's so difficult to debug though. Always takes a while just to get everything you need to finally dig in.
Re:Don't Leave Coredumps on Web Servers by mnm1 on Friday June 16, 2017 @12:20PM (#14570230)
I've experienced one or two over twelve years, usually due to a new version and always caught in dev. PHP crashes are incredibly rare.