Jo Rhett (jorhett) wrote,
Jo Rhett
jorhett

Segfaults when using postfix with MariaDB or Percona

I ran into a weird problem where postfix suddenly started segfaulting on me just after upgrading it to the latest version.

Jan 15 03:28:41 geode kernel: smtpd[8569]: segfault at c9 ip 00007fcff5fa8469 sp 00007fffe88163d0 error 4 in libcrypto.so.1.0.0[7fcff5ec8000+174000]

Debugging with strace showed me that the segfault happened just after attempting a MySQL query. Google tells me that people are having the same problem with Percona libraries too, although they didn’t figure out the answer. I’ll save you the story of all the debugging, but it turns out that if you install MariaDB-devel, then you must also install MariaDB-shared or programs that you compile will segfault. It is likely the same answer for Percona.

No, I don’t know why. It’s a bit late for debugging.

$ sudo yum install MariaDB-shared --enablerepo=mariadb
....
Running Transaction
  Installing : MariaDB-shared-5.5.28a-1.x86_64                                                       1/1 
  Verifying  : MariaDB-shared-5.5.28a-1.x86_64                                                       1/1 

Installed:
  MariaDB-shared.x86_64 0:5.5.28a-1                                                                                                                 

Complete!
This has been cut for brevity to my livejournal friends. You can read the entire article at http://www.netconsonance.com/2013/01/segfaults-when-using-postfix-with-mariadb-or-percona/.
Tags: geekery
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment