On 2014-11-22, Vadim Zhukov <persg...@gmail.com> wrote:
> Crazy idea just out of head:
>
> 1. Put /bin/sh and /usr/bin/kdump (both are statically linked) inside
> chroot. Rename them if you feel unsafe.
> 2. Write a shell script that runs 'exec ktrace -if ... perl ... "$@"'. Make
> sure ktrace will be able to write its output file, it will be run as CGI
> user!
> 3. Make this script handle a connection in your web server/FastCGI config.
> 4. Run kdump on resulting ktrace output file and investigate problems.
>
> If you won't get ktrace output, you'll likely have problem with FastCGI
> itself, look at its logs then.

Simpler way: run slowcgi under ktrace (with the -i flag).

Reply via email to