Seg fault when adding retention and archive rules
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)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
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
-
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.
-
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.
-
repo owner This is not what I recommended, just keep your current mysql configuration, engine, client libraries, etc, don't switch them.
However download https://downloads.mariadb.org/f/mariadb-native-client/Centos-6.3/amd64/mariadb_client-1.0.0-Linux.tar.gz/from/http:/mariadb.mirror.nucleus.be/
It's not an rpm, just a tar.gz, you can put it under /usr/local, and it won't interfere with anything.
-
repo owner if you need help, just skype me: janos.suto
-
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 function
import_from_imap_server': /tmp/piler/src/pilerimport.c:333: undefined reference tosend_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 -
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.
-
repo owner OK, good news is that I managed to compile the latest master branch on centos 6.4 x64 using mariadb.
-
repo owner Please download the latest master branch, it should fix this error.
-
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.
-
repo owner OK.
-
repo owner Do you have some time for a test?
-
repo owner - changed status to resolved
No news is good news. Be sure to reopen the issue if there's any update on the matter.
- Log in to comment
Hello, please show me piler -V and mysql -V