php exec('mu extract testmail.eml') gives Segmentation fault in Browser but not on the command line as user www-data, 12.04 Server 64Bit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maildir-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hello,
I reproduced this error with a fresh setup of Ubuntu 12.04 Server 64 Bit.
I chose openssh and LAMP during install.
After Install I only executed:
sudo apt-get upgrade
sudo apt-get install maildir-utils
sudo mkdir /var/www/.mu
sudo chown www-data:www-data /var/www/.mu
Then I created /var/www/test.php with
<html>
<?php
$ret = array();
exec('mu extract /home/clemens/
print_r($ret);
echo "$ret_val\n";
?>
</html>
In my Browser I get:
<html>
Array
(
[0] => MIME-parts in this message:
[1] => 0
)
139
</html>
I tried:
sudo su -
su www-data
mu extract /home/clemens/
and it worked fine:
$ mu extract /home/clemens/
MIME-parts in this message:
0 <none> text/plain [<none>] (1.7 kB)
1 Antrag.pdf application/
The problem does not occur in 11.10 and other commands (e.g. exec('openssl.
A very big THANK YOU for any help in advance!
Status changed to 'Confirmed' because the bug affects multiple users.