Bug#786957: php-cgi: segfault after exec

2015-10-28 Thread Ondřej Surý
Dear NetLeaders,

unfortunately you have filled the bug against a wrong package (php-cgi
vs php5-cgi) and thus the bug script was not executed.

Could you run this command on affected system:

/usr/share/bug/php5-cli/script 3>&1

and attach the output to the #786957 bug?

Also upgrade to latest available version first before trying to
reproduce the bug again.

As a side note it's usually better to use php5-fpm these days instead of
running a pure php5-cgi in FastCGI mode.

Cheers,
-- 
Ondřej Surý 
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server



Bug#786957: php-cgi: segfault after exec

2015-05-27 Thread NetLeaders GmbH Co. KG
Package: php-cgi
Version: php5-cgi
Severity: important

Dear Maintainer,

environment
Apache 2.4.10-10
libapache2-mod-fcgid 1:2.3.9-1+b1
php5-cgi 5.6.7+dfsg-1

---

By calling an php-file with exec statement I receive after 2nd to 3rd call 
errors like following line
[core:notice] [pid 22388] AH00052: child pid 22394 exit signal Segmentation 
fault (11)

After this it isn't able to successfully recall the file.

as an example
?php
echo exec('whoami');
?

I tried this with several other commands, with the same result. 
I also tried to add exec to disabled_functions in php.ini and call the same 
file which results in segfault before, with disabled exec there isn't any 
problem (except there is no execution of course). 
And finaly I also tried to use popen instead of exec, with the same result 
(segfault).
So I'm pretty sure there is something strange with executions in general.


-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org