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

Bug #1022521 reported by Clemens Tewinkel
10
This bug affects 2 people
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/unsigned.eml', $ret, $ret_val);
    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/unsigned.eml

and it worked fine:

$ mu extract /home/clemens/unsigned.eml
MIME-parts in this message:
  0 <none> text/plain [<none>] (1.7 kB)
  1 Antrag.pdf application/octet-stream [attachment] (62.0 kB)

The problem does not occur in 11.10 and other commands (e.g. exec('openssl...');) work fine in 12.04.

A very big THANK YOU for any help in advance!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maildir-utils (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.