Hi,
dbtext don't work for trunk at the moment.
Steps to reproduce:
$openser-trunk:/ cd test && ./15.sh
causes:
Nov 22 13:39:07 ca ../openser[19757]: core:main: version: openser 1.3.0-pre1-notls (i386/linux)
Nov 22 13:39:07 ca ../openser[19757]: dbtext:dbt_cache_get_db: dbtext cache is not initialized!
Nov 22 13:39:07 ca ../openser[19757]: dbtext:dbt_init: cannot get the link to database
Nov 22 13:39:07 ca ../openser[19757]: dispatcher:init_ds_db: unable to connect to the database
Nov 22 13:39:07 ca ../openser[19757]: dispatcher:mod_init: could not initiate a connect to the database
Nov 22 13:39:07 ca ../openser[19757]: core:init_mod: failed to initialize module dispatcher
Nov 22 13:39:07 ca ../openser[19757]: core:main: error while initializing modules
Nov 22 13:39:07 ca ../openser[19757]: core:qm_free: bad pointer (nil) (out of memory block!) - aborting
openser -V:
version: openser 1.3.0-pre1-notls (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:3190M
@(#) $Id: main.c 3189 2007-11-22 10:43:25Z henningw $
main.c compiled on 13:36:20 Nov 22 2007 with gcc 4.1.3
Cheers,
Henning
Logged In: YES
user_id=1246013
Originator: NO
The issue is because the dbtext is loaded after the module that is using it (e.g., dispatcher). Unlike the other database drivers, dbtext needs to be loaded before, because it has to do some internal initialization (for the others, the initialization is done by the client library at load time).
I have made the log message a bit more explicit, to suggest the issue. Note that there other modules that have such loading dependencies (e.g., usrloc with registrar/nathelper).
Can you test and see if this resolves the issue?
Logged In: YES
user_id=337916
Originator: YES
Hi Daniel,
i was not aware of this issue, i assumed that it works the same way like mysql.
Solved for dbtext, test work now. Thank you,
Henning