I've actually never had to even uncomment that setting in the past (with
2.2).

I just tried it -- set it to /usr/local/dbmail/lib/dbmail and nothing
changed (that is my dbmail library path).


On Fri, Sep 13, 2013 at 5:14 AM, Thomas Raschbacher <[email protected]>wrote:

> Just a hunch, but could your library_directory be set wrongly in
> dbmail.conf?
>
>
> On 2013-09-13 13:55, Vitaliy Mikitchenko wrote:
>
>> It literally segfaults when starting up and trying to connect to the
>> database (connection to database is OK, I can manually connect with
>> the same credentials from the commandline just fine):
>>
>>  My dburi is
>> mysql://hostname/dbmail?user=**uname&password=pw&charset=utf8
>>
>> I thought it was a config error as well, and went back to the
>> deprecated username/pw/host settings of 2.2, and it still gets the
>> same segfault.
>>
>> (gdb) run -D
>> Starting program: /usr/local/dbmail-3.1.6/sbin/**dbmail-imapd -D
>> [Thread debugging using libthread_db enabled]
>> Using host libthread_db library
>> "/lib/x86_64-linux-gnu/**libthread_db.so.1".
>> [New Thread 0x7ffff31ae700 (LWP 3838)]
>> [Thread 0x7ffff31ae700 (LWP 3838) exited]
>>
>> Program received signal SIGSEGV, Segmentation fault.
>> Connection_close (C=C@entry=0x0) at src/db/Connection.c:257
>> 257             ConnectionPool_**returnConnection(C->parent, C);
>> (gdb) backtrace
>> #0  Connection_close (C=C@entry=0x0) at src/db/Connection.c:257
>> #1  0x00007ffff5cde3c6 in db_con_close (c=c@entry=0x0) at dm_db.c:283
>>
>> #2  0x00007ffff5ce12f0 in db_connect () at dm_db.c:227
>> #3  0x00007ffff5cf8811 in server_run (conf=conf@entry=**0x7fffffffadc0)
>> at server.c:744
>> #4  0x00007ffff5cf93bd in server_mainloop
>> (config=config@entry=**0x7fffffffadc0, service=service@entry=0x413098
>> "IMAP", servicename=servicename@entry=**0x415c49 "dbmail-imapd") at
>> server.c:956
>> #5  0x000000000040744a in main (argc=<optimized out>,
>> argv=0x7fffffffe728) at imapd.c:53
>>
>> Syslog at debug level:
>>
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+989): max_db_connections [10]
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1001): timeout [4000] seconds
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1012): login_timeout [60] seconds
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1017): no value for SOCKET in config file
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1019): socket []
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1029): binding to PORT [143]
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1057): binding to IP [0.0.0..0]
>>
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1063): no value for BACKLOG in config file. Using
>> default value [128]
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1067): IMAP backlog [128]
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1074): not resolving client IP
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1083): Enabling IMAP-before-SMTP
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1088): no value for AUTHLOG in config file
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1090): Disabling IMAP Authentication logging
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1101): effective user shall be [exim]
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1111): effective group shall be [exim]
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1120): CA file is set to []
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1129): Certificate file is set to []
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1138): Key file is set to []
>> Sep 13 07:53:24 mail dbmail/imap4d[3843]: Debug:[server]
>> server_config_load(+1147): Cipher string is set to []
>>
>> On Fri, Sep 13, 2013 at 4:44 AM, Paul J Stevens <[email protected]> wrote:
>>
>>  On 09/13/2013 01:28 PM, Vitaliy Mikitchenko wrote:
>>>
>>>> No go, I just built and installed DBMail 3.1.6 and still get the
>>>>
>>> same
>>>
>>>> segfault:
>>>>
>>>> Sep 13 07:27:57 mail kernel: [33550.956359] dbmail-imapd[1373]:
>>>>
>>> segfault
>>>
>>>> at 48 ip 00007fe589538e68 sp 00007fffb0dbcb20 error 4 in
>>>> libzdb.so.10.0.0[7fe589530000+**13000]
>>>>
>>>> Anything I can check?
>>>>
>>>
>>> build with debugging symbols: CFLAGS+=-g
>>> run through gdb:
>>> gdb src/dbmail-imapd
>>> gdb> run -D
>>>
>>> talk to imapd until it hangs
>>>
>>> gdb> backtrace
>>>
>>> and send me the output.
>>>
>>> if you have a set of imap commands that reproduce this crash
>>> reliably,
>>> please share. Maybe I can reproduce this myself.
>>>
>>> also check the logs for possibly fatal errors. Maybe some
>>> misconfiguration isn't dealt with properly.
>>>
>>> --
>>> ______________________________**______________________________**____
>>> Paul J Stevens        pjstevns @ gmail, twitter, skype,
>>> linkedin
>>>
>>>   * Premium Hosting Services and Web Application Consultancy *
>>>
>>>            
>>> www.nfg.nl/[email protected]/+31.**85.877.99.97<http://www.nfg.nl/[email protected]/+31.85.877.99.97>[1]
>>>
>>> ______________________________**______________________________**____
>>> ______________________________**_________________
>>> DBmail mailing list
>>> [email protected]
>>> http://mailman.fastxs.nl/cgi-**bin/mailman/listinfo/dbmail<http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail>[2]
>>>
>>
>>
>>
>> Links:
>> ------
>> [1] 
>> http://www.nfg.nl/[email protected]/**+31.85.877.99.97<http://www.nfg.nl/[email protected]/+31.85.877.99.97>
>> [2] 
>> http://mailman.fastxs.nl/cgi-**bin/mailman/listinfo/dbmail<http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail>
>>
>>
>> ______________________________**_________________
>> DBmail mailing list
>> [email protected]
>> http://mailman.fastxs.nl/cgi-**bin/mailman/listinfo/dbmail<http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail>
>>
> ______________________________**_________________
> DBmail mailing list
> [email protected]
> http://mailman.fastxs.nl/cgi-**bin/mailman/listinfo/dbmail<http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail>
>
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to