Seg fault when adding retention and archive rules

Issue #180 resolved
Henti Smith created an issue

Good day.

I followed the howto at : https://www.jcputter.co.za/centos/mailpiler-setup-on-centos-6-x/ but using the latest version of mailpiler.

I also set setsebool -P httpd_can_network_connect=1 for selinux to connect to DB.

I can add domains without a problem, but as soon as I add retention or archive rules pilertest segfaults and restarting the daemon segfaults.

I've attached strace -ff -o strace pilertest message.eml output.

Comments (15)

  1. Henti Smith reporter

    Morning.

    [root@archon ~]# piler -V piler 0.1.24-master-branch, build 836, Janos SUTO sj@acts.hu

    Build Date: Fri Oct 11 07:35:25 SAST 2013 ldd version: ldd (GNU libc) 2.12 gcc version: gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) Configure command: ./configure --localstatedir=/var --with-database=mysql

    [root@archon ~]# mysql -V mysql Ver 14.14 Distrib 5.1.69, for redhat-linux-gnu (x86_64) using readline

  2. Janos SUTO repo owner

    Please download the latest master branch. Then run ./configure --localstatedir=/var --with-database=mariadb

    It tells you to download the mariadb client library (tells you from where, etc), then rebuild piler, and let's see if survives reading the retention rules.

  3. Henti Smith reporter

    I cannot install the mariadb client. The repo's for centos break compatibility with mysql and creates conflicts.

    This is obviosly not your issue, but I need to run a standard config on my servers for service level agreements, so I cannot switch to mariaDB for the database backend if the supported DB in Centos is MySQL.

  4. Henti Smith reporter

    Thanks for the clarification. installed client libs in /usr/local and updated paths accordingly. Now I get a "undefined reference" error :

    Making all in src make[1]: Entering directory /tmp/piler/src' gcc -O2 -Wall -g -I. -I.. -I/usr/local/mariadbclient/include -D_GNU_SOURCE -DHAVE_TRE -DNEED_MYSQL -o pilerimport pilerimport.c -lpiler -lz -lm -ldl -lcrypto -lssl -ltre -lzip -L/usr/local/lib -lmariadb -lssl -ldl -L. /tmp/cczgKwXi.o: In functionimport_from_imap_server': /tmp/piler/src/pilerimport.c:333: undefined reference to send_imap_close' collect2: ld returned 1 exit status make[1]: *** [pilerimport] Error 1 make[1]: Leaving directory/tmp/piler/src' make: *** [all-recursive] Error 1

  5. Janos SUTO repo owner

    Hmm, it seems that something is missing or wrong with the downloaded tarball. I've just updated the master branch, fixing a typo. Please download it again, and it should compile. Let me know how it goes.

  6. Janos SUTO repo owner

    OK, good news is that I managed to compile the latest master branch on centos 6.4 x64 using mariadb.

  7. Henti Smith reporter

    Hi Jsuto,

    Still broken on my system. I've had to de-prioritize this project in my space due to urgent operational issues. I'll likely only be able to revisit this in a week or so and will then have time to reinstal my test machine and re-attempt.

    Thanks for the awesome support so far.

  8. Log in to comment