Ubuntu 9.10 segfault

Ask you installation, configuration and optimization questions here. Also the integration with your MTA, webserver and linux distribution can be asked here.

Ubuntu 9.10 segfault

Postby xinit on 2009-10-31, 01:03

Hi all,

After updating ubuntu from 9.04 to 9.10, zarafa webaccess segfaults. Anyone else experiences this problem?

Greetings,

Wouter
xinit
Junior Member
 
Posts: 2
Joined: 2009-06-03, 15:48

Re: Ubuntu 9.10 segfault

Postby dw2412 on 2009-10-31, 09:33

Hi Wouter,

I guess (since you did not wrote this) that you've installed the packages for Ubuntu (8.04!). Maybe it helps to take the source package of zarafa-server and install after compilation just the php-mapi.

But this is not recommended since the packages are for 8.04 and you're using 9.10. This would make it imho necessary that you compile from source to have a clean installation - so this is what I recommend you.

Best regards

Andreas
Using Zarafa 6.40.2.22542 with my tuning patches, Z-Push AS12.1 Branch with GZip, SMS and HTML Support. Patches are available upon request and being announced on #IRC.
dw2412
Special Member
 
Posts: 907
Joined: 2008-11-17, 16:23
Location: Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...

Re: Ubuntu 9.10 segfault

Postby bjoern on 2009-11-02, 14:00

Hi xinit,

same problem with zarafa version 6.30.4 on fedora 11 system. Zarafa compiled from source with
rpm-spec from robert scheck.

Apache child process died with signal 11, after trying to login to webaccess.

See this post: http://forums.zarafa.com/viewtopic.php?f=13&t=3504

Can this be a php problem?
Which php version use Ubuntu 9.10?

Greetings,
Bjoern
bjoern
Junior Member
 
Posts: 14
Joined: 2009-10-28, 14:07

Re: Ubuntu 9.10 segfault

Postby bjoern on 2009-11-05, 11:23

Hi Wouter,

my segfaults are now gone.
Please see this post again: http://forums.zarafa.com/viewtopic.php?f=13&t=3504

Compiling php with --enable-debug let's the webaccess works on my fedora 11.

Greetings,
Bjoern
bjoern
Junior Member
 
Posts: 14
Joined: 2009-10-28, 14:07

Re: Ubuntu 9.10 segfault

Postby bilkusg on 2009-11-09, 16:08

Having the same problem - I have compiled and installed zarafa from source on an ubuntu 9.10 system and the server works just fine, but when I try to use the webaccess stuff with apache I get segfaults. If I run the webaccess on a different machine with Ubuntu 8.04 pointing to the 9.10 system for the zarafa server it all works , so it's definitely the apache-php stuff.

I'm not sure I understand the workaround above - is one meant to download php itself from source and recompile the entire ubuntu package, or just to compile the mapi plugin with debug enabled, or something yet different. In any case, this is clearly a hack - is anyone working on a proper fix?

Thanks,
Gary
bilkusg
Junior Member
 
Posts: 6
Joined: 2009-11-09, 16:01

Re: Ubuntu 9.10 segfault

Postby bjoern on 2009-11-09, 22:48

Hi Gary,

I download the src.rpm php package for my fedora 11 system, modify the configure part in the spec file
from --disable-debug to --enable-debug and let the rpm build. After installing this package, the webaccess
works.
This is a quick and dirty hack.
I hope someone can take a look at it and can fix it, too.

Greetings,
Bjoern.
bjoern
Junior Member
 
Posts: 14
Joined: 2009-10-28, 14:07

Re: Ubuntu 9.10 segfault

Postby bilkusg on 2009-11-10, 19:44

Thanks Bjorn,
Based on that information, I did the equivalent on Ubuntu - downloaded the source of the latest ubuntu php and modified it to enable-debug, and I've got it working now. I also had to recompile the php-ext stuff in zarafa against the new php installation to get a compatible version of the mapi plugin.

I assume there's a nasty bug somewhere in the code and the enable-debug is masking it. Not obvious whether the bug is in the mapi code or somewhere else in php which the mapi module just happens to expose.

But for the moment I'm in good shape.

Gary
bilkusg
Junior Member
 
Posts: 6
Joined: 2009-11-09, 16:01

Re: Ubuntu 9.10 segfault

Postby bilkusg on 2009-11-13, 12:52

An update to my previous post on this issue.
I discovered that although running with a debug version of php appears to work around the problem, it also causes z-push to fail in various places.
After some further digging, I've established that the easiest workaround appears to be to replace /usr/lib/apache2/modules/libphp5.so from Ubuntu karmic with the version from some older distribution. There is obviously some bug in the particular version of php used in Karmic.

In my case, I already had another machine running Hardy and I simply replaced that one file and now everything seems to work. There does not appear to be any problem using a mapi.so compiled against the slightly later version of php, probably because they are both php 5.2

If you prefer not to replace files like this, you can put the hardy file somewhere else and change /etc/apache2/mods-enabled/php5.load to point to the new location and restart apache.

(All this does mean that the apache-embedded version of php you are running will differ from the version you get with the command line, but in my case that doesn't bother me).
bilkusg
Junior Member
 
Posts: 6
Joined: 2009-11-09, 16:01

Re: Ubuntu 9.10 segfault

Postby rscheck on 2010-02-27, 16:29

You might try the patch http://cvs.fedoraproject.org/viewvc/devel/zarafa/zarafa-6.30.10-long-ulong.patch?view=log as what I read sounds like what we've seen at more recent Fedora releases as well.
Zarafa package maintainer at Fedora (read http://fedoraproject.org/wiki/Zarafa for more information)
rscheck
Junior Member
 
Posts: 93
Joined: 2008-02-27, 15:58
Location: Stuttgart/Germany

Re: Ubuntu 9.10 segfault

Postby mdebus on 2010-03-24, 10:44

I ran into the same problem. Is there any release which is working with Ubuntu 9.10?
mdebus
Junior Member
 
Posts: 26
Joined: 2008-07-31, 10:48

Re: Ubuntu 9.10 segfault

Postby Robin on 2010-03-24, 11:03

Hello Mdebus,

We do not support 9.10 (We only support LTS versions.)

There is a how to on building Zarafa on 9.10 here:
http://www.zarafa.com/wiki/index.php/ZCP_from_source_on_Ubuntu_9.10

Greetings,
Robin
Zarafa IRC chat: irc.freenode.com > #zarafa
Zarafa documentation: http://www.zarafa.com/content/documentation
User avatar
Robin
Administrator
 
Posts: 1434
Joined: 2009-07-21, 14:08
Location: Delft, Netherlands

Re: Ubuntu 9.10 segfault

Postby mdebus on 2010-03-24, 13:53

Robin wrote:Hello Mdebus,

We do not support 9.10 (We only support LTS versions.)

There is a how to on building Zarafa on 9.10 here:
http://www.zarafa.com/wiki/index.php/ZCP_from_source_on_Ubuntu_9.10

Greetings,
Robin


Hi Robin,

ok, I knew that. :)

For the Forum: The following works on Ubuntu 9.10 64Bit:

- Install Zarafa for 8.04 x64 with the debs.
- get the source as well
- patch main.cpp with http://cvs.fedoraproject.org/viewvc/dev ... h?view=log
- compile.
- Make a backup of /usr/lib/php5/20060613/mapi.so
- copy <build dir>/php-ext/.libs/mapi.so /usr/lib/php5/20060613/
- ldconfig + restart apache.

Greets,
Matthias
mdebus
Junior Member
 
Posts: 26
Joined: 2008-07-31, 10:48