<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello Bron,<br>
    <br>
    I don't wanna stress you up, but do you have some new news for my
    problem?<br>
    I realised right now, that I didn't sent my answer to your questions
    to the mailing list, sorry for that.<br>
    <br>
    I still have the same sync_client problems.<br>
    <br>
    <br>
    Regards,<br>
    <br>
    Darius<br>
    <br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject: </th>
          <td>Re: sync_client general protection fault</td>
        </tr>
        <tr>
          <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
          <td>Sat, 21 Jan 2012 14:50:34 +0100</td>
        </tr>
        <tr>
          <th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
          <td>Darius Spitznagel <a class="moz-txt-link-rfc2396E" href="mailto:d.spitznagel@goodbytez.de">&lt;d.spitznagel@goodbytez.de&gt;</a></td>
        </tr>
        <tr>
          <th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
          <td>Bron Gondwana <a class="moz-txt-link-rfc2396E" href="mailto:brong@fastmail.fm">&lt;brong@fastmail.fm&gt;</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>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:
&gt; On Sat, Jan 21, 2012, at 01:09 PM, Darius Spitznagel wrote:
&gt;&gt; Hello,
&gt;&gt;
&gt;&gt; i have a test-system with 2 cyrus mail servers (squeeze and
&gt;&gt; squeeze-slave) running cyrus-imapd 2.4.13.
&gt;&gt; When plaintext logins are not allowed (allowplaintext: no) sync_client
&gt;&gt; crashes after some time.
&gt; Are you capturing core files?  A stack trace would help a lot.  To
&gt; capture core files you usually need to set a ulimit and chdir to
&gt; somewhere that Cyrus can write to.  We do (on Debian, in the init
&gt; script which is Perl):
&gt;
&gt;      # Setup core dumping
&gt;      chdir "$CONFDIR/cores";
&gt;      if (-f "/proc/sys/kernel/core_uses_pid") {
&gt;        system("echo 1&gt;/proc/sys/kernel/core_uses_pid");
&gt;      }
&gt;      # Start master process, and save pid
&gt;      # (limit core dumps to 400M, avoid possible IO flood on core dump)
&gt;      system("ulimit -c 409600&amp;&amp;  ulimit -n 8192&amp;&amp;  $DAEMON -l 255 -p $PIDFILE -d $SLOT_CONFIG");
&gt;
&gt;&gt; Here is what the kernel log shows after crash...
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Jan 18 18:36:08 squeeze cyrus/sync_client[19784]: sync_client RESTART
&gt;&gt; succeeded
&gt;&gt; Jan 18 18:36:08 squeeze kernel: [20819.197061] sync_client[19784]
&gt;&gt; general protection ip:7f1fcef7d1f9 sp:7fffaa8f4e10 error:0 in
&gt;&gt; libcrypto.so.0.9.8[7f1fcee6c000+175000]
&gt;&gt;
&gt;&gt; Jan 21 12:10:04 squeeze-slave cyrus/sync_client[18798]: sync_client
&gt;&gt; RESTART succeeded
&gt;&gt; Jan 21 12:10:04 squeeze-slave kernel: [125161.364980] sync_client[18798]
&gt;&gt; general protection ip:7f9db3cbe1f9 sp:7fff8b8ba9c0 error:0 in
&gt;&gt; libcrypto.so.0.9.8[7f9db3bad000+175000]
&gt; So it looks like we're not re-initializing the crypto library properly
&gt; in a "RESTART".  That's definitely possible.
&gt;
&gt;&gt; Both servers are configured as sync_client and sync_server, so they
&gt;&gt; replicate each other.
&gt;&gt; I KNOW this is not recommended (on our productive-system we have this
&gt;&gt; running over 2 years now without any problems but with "plaintext logins
&gt;&gt; allowed" because of one stupid app which can't handle encrypted
&gt;&gt; connections).
&gt;&gt; To prevent any problems only one server has the "magic"
&gt;&gt; failover-ip-address which allows access.
&gt; We ran something like this for quite a while ... it's really not too bad
&gt; unless you have things happening on the replica (reconstructs in particular
&gt; can get messy)
&gt;
&gt; At some point, this will become the recommended configuration, once we
&gt; iron out the remaining risk points.
&gt;
&gt;&gt; Both servers are runnung debian squeeze and using ldap authentication
&gt;&gt; via saslauthd.
&gt;&gt; cyrus-imapd is compiled with openssl and openldap with gnutls (installed
&gt;&gt; from apt-repo).
&gt; Can you give me your configure flags as well, just to help with debugging.
&gt; I won't get to this today, but I am very interested in making it work!
&gt;
&gt; Thanks,
&gt;
&gt; Bron.


</pre>
  </body>
</html>