Fwd: Re: sync_client general protection fault
Darius Spitznagel
d.spitznagel at goodbytez.de
Tue Jan 24 16:46:20 EST 2012
Hello Bron,
I don't wanna stress you up, but do you have some new news for my problem?
I realised right now, that I didn't sent my answer to your questions to
the mailing list, sorry for that.
I still have the same sync_client problems.
Regards,
Darius
-------- Original Message --------
Subject: Re: sync_client general protection fault
Date: Sat, 21 Jan 2012 14:50:34 +0100
From: Darius Spitznagel <d.spitznagel at goodbytez.de>
To: Bron Gondwana <brong at fastmail.fm>
Hello Bron,
thank you for your quick answer.
I mostly do my own backports when needed, so i took the cyrus-imapd
sources from testing (wheezy, right now 2.4.12-2) and copied the
debian-directory from there into the original sources from
cyrus-imapd-2.4.13 and made some necessary changes to some files like
changelog there and renamed the source-dir so dpkg-buildpackage won't blame.
So the configure flags are the same like for cyrus-imapd-2.4.12 from wheezy.
I have attached the debian rules file for you.
Sorry, i have no skills in perl, so I d'ont know how to implement your
core dump trace.
The init script in the debian cyrus-imapd package ist written in bash.
Regards,
Darius
On 21.01.2012 13:31, Bron Gondwana wrote:
> On Sat, Jan 21, 2012, at 01:09 PM, Darius Spitznagel wrote:
>> Hello,
>>
>> i have a test-system with 2 cyrus mail servers (squeeze and
>> squeeze-slave) running cyrus-imapd 2.4.13.
>> When plaintext logins are not allowed (allowplaintext: no) sync_client
>> crashes after some time.
> Are you capturing core files? A stack trace would help a lot. To
> capture core files you usually need to set a ulimit and chdir to
> somewhere that Cyrus can write to. We do (on Debian, in the init
> script which is Perl):
>
> # Setup core dumping
> chdir "$CONFDIR/cores";
> if (-f "/proc/sys/kernel/core_uses_pid") {
> system("echo 1>/proc/sys/kernel/core_uses_pid");
> }
> # Start master process, and save pid
> # (limit core dumps to 400M, avoid possible IO flood on core dump)
> system("ulimit -c 409600&& ulimit -n 8192&& $DAEMON -l 255 -p $PIDFILE -d $SLOT_CONFIG");
>
>> Here is what the kernel log shows after crash...
>>
>>
>>
>> Jan 18 18:36:08 squeeze cyrus/sync_client[19784]: sync_client RESTART
>> succeeded
>> Jan 18 18:36:08 squeeze kernel: [20819.197061] sync_client[19784]
>> general protection ip:7f1fcef7d1f9 sp:7fffaa8f4e10 error:0 in
>> libcrypto.so.0.9.8[7f1fcee6c000+175000]
>>
>> Jan 21 12:10:04 squeeze-slave cyrus/sync_client[18798]: sync_client
>> RESTART succeeded
>> Jan 21 12:10:04 squeeze-slave kernel: [125161.364980] sync_client[18798]
>> general protection ip:7f9db3cbe1f9 sp:7fff8b8ba9c0 error:0 in
>> libcrypto.so.0.9.8[7f9db3bad000+175000]
> So it looks like we're not re-initializing the crypto library properly
> in a "RESTART". That's definitely possible.
>
>> Both servers are configured as sync_client and sync_server, so they
>> replicate each other.
>> I KNOW this is not recommended (on our productive-system we have this
>> running over 2 years now without any problems but with "plaintext logins
>> allowed" because of one stupid app which can't handle encrypted
>> connections).
>> To prevent any problems only one server has the "magic"
>> failover-ip-address which allows access.
> We ran something like this for quite a while ... it's really not too bad
> unless you have things happening on the replica (reconstructs in particular
> can get messy)
>
> At some point, this will become the recommended configuration, once we
> iron out the remaining risk points.
>
>> Both servers are runnung debian squeeze and using ldap authentication
>> via saslauthd.
>> cyrus-imapd is compiled with openssl and openldap with gnutls (installed
>> from apt-repo).
> Can you give me your configure flags as well, just to help with debugging.
> I won't get to this today, but I am very interested in making it work!
>
> Thanks,
>
> Bron.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20120124/d48c9296/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rules
Url: http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20120124/d48c9296/attachment.ksh
More information about the Cyrus-devel
mailing list