THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Øyvind Kolbu (kolbu)
Attached to Project - sip-router Summary - tls module crash on initialization when used together with the dialog module Task Type - Bug Report Category - dialog Status - Assigned Assigned To - Timo Reimann Operating System - Linux Severity - Medium Priority - Normal Reported Version - Development Due in Version - Undecided Due Date - Undecided Details - I've tried to enable the tls module, but if the dialog module is loaded the tls module crash. If I disable the dialog module tls loads fine. Note that if «enable_tls» is «no» Kamailio doesn't crash.
Tested both on latest 3.2 and master branch. Built only with db_postgres and tls modules. Running on 32-bit RHEL 5.
Error message from Kamailio: Nov 25 18:49:45 voipt2-edge1 /nett/kamailio/current/sbin/kamailio[21067]: INFO: tls [tls_init.c:511]: tls: _init_tls_h: compiled with openssl version "OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008" (0x0090802f), kerberos support: on, compression: on Nov 25 18:49:45 voipt2-edge1 /nett/kamailio/current/sbin/kamailio[21067]: INFO: tls [tls_init.c:519]: tls: init_tls_h: installed openssl library version "OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008" (0x0090802f), kerberos support: on, zlib compression: on compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -I/usr/kerberos/include -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wa,--noexecstack -DOPENSSL_USE_NEW_FUNCTIONS -fno-strict-aliasing -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM Nov 25 18:49:45 voipt2-edge1 /nett/kamailio/current/sbin/kamailio[21067]: ERROR: tls [tls_init.c:550]: Unable to set the memory allocation functions Nov 25 18:49:45 voipt2-edge1 /nett/kamailio/current/sbin/kamailio[21067]: : <core> [main.c:2469]: could not initialize tls, exiting...
# /nett/kamailio/current/sbin/kamailio -V version: kamailio 3.3.0-dev2 (i386/linux) 629970 flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: 629970 compiled on 18:42:26 Nov 25 2011 with gcc 4.1.2
Example config which will cause Kamailio to crash:
#!KAMAILIO
debug=3 log_stderror=no log_facility=LOG_LOCAL0
fork=yes children=6
alias="voipt2-edge1.uio.no" alias="129.240.253.133"
port=5060 listen=udp:129.240.253.133:5060 listen=tcp:129.240.253.133:5060
enable_tls=yes
mpath="/nett/kamailio/current/lib/kamailio/modules_k/:/nett/kamailio/current/lib/kamailio/modules/"
#!define VOIP_DATA4 "postgres://redacted"
loadmodule "db_postgres.so" # POSTGRES-backend for database API module loadmodule "tm.so" # Transaction (stateful) module loadmodule "rr.so" # Record-Route and Route module loadmodule "pv.so" # Module holding Pseudo-Variables
loadmodule "dialog.so" # Dialog support module - For busy level handling
loadmodule "tls.so"
modparam("tls", "private_key", "/nett/edge/ssl/common.key") modparam("tls", "certificate", "/nett/edge/ssl/voipt2-edge1.uio.no.crt") modparam("tls", "ca_list", "/nett/edge/ssl/uninett-chain.pem") modparam("tls", "tls_method", "TLSv1")
modparam("dialog", "dlg_flag", 3) modparam("dialog", "default_timeout", 21600) modparam("dialog", "dlg_match_mode", 1) modparam("dialog", "db_url", VOIP_DATA4) modparam("dialog", "db_mode", 1) modparam("dialog", "table_name", "dialog2") modparam("dialog", "vars_table_name", "dialog_vars2") modparam("dialog", "profiles_with_value", "busy")
route{ exit; }
More information can be found at the following URL: http://sip-router.org/tracker/index.php?do=details&task_id=183
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.