my qmail-smtpd creates segfaults. I think it has something to do with
the shared library.

I created a few lines c code to reproduce the problem (to show what i
have in qmail-smtpd).

#include <stdio.h>

#include "/home/vpopmail/include/vpopmail/vpopmail.h"
#include "/home/vpopmail/include/vpopmail/vauth.h"
#include "/home/vpopmail/include/vpopmail/vpopmail_config.h"

int main()
    if (valias_select("info", "rumtun.de") != NULL) {
    } else {

    return 0;

gcc -g -O0 -L/home/vpopmail/lib -lvpopmail -lcrypt -ldl test.c

# LD_LIBRARY_PATH=/home/vpopmail/lib ./a.out
Segmentation fault (core dumped)

I don't know how to get a useful backtrace:

(gdb) backtrace
#0  0x0000000000000000 in ?? ()
#1  0x0000000000400aef in main () at test.c:9

Should I build vpopmail static? Or is there another solution?



Reply via email to