Juha Heinanen wrote:
> i installed a very bare debian squeeze on a virtual host on the same pc
> and there kamailio starts fine.
kamailio started fine on virtual host, but the reason turned out to be
that i didn't have geoip enabled in the virtual host kamailio instance.
once i loaded also geoip module, kamailio crashed the same way as on the
real host. i also tried another real host running debian squeeze and
also there, kamailio crashes if and only if geoip module is enabled.
the crash happens very early during config processing. on one host like
this:
(gdb) where
#0 0xb7870424 in __kernel_vsyscall ()
#1 0xb75ce781 in raise () from /lib/i686/cmov/libc.so.6
#2 0xb75d1bb2 in abort () from /lib/i686/cmov/libc.so.6
#3 0xb760f584 in ?? () from /lib/i686/cmov/libc.so.6
#4 0xb7611fd4 in ?? () from /lib/i686/cmov/libc.so.6
#5 0xb7613d8c in malloc () from /lib/i686/cmov/libc.so.6
#6 0xb765a7ac in ?? () from /lib/i686/cmov/libc.so.6
#7 0xb765b33e in regcomp () from /lib/i686/cmov/libc.so.6
#8 0x0809a880 in set_mod_param_regex (
regex=0xb71a25f0 "auth_db|dialplan|domain|htable|lcr|local|msilo|mtree|permissions|usrloc", name=0xb71a2678 "db_url", type=1, val=0xb71a2700)
at modparam.c:86
#9 0x081807dd in yyparse () at cfg.y:1733
#10 0x08095d9f in main (argc=18, argv=0xbf808934) at main.c:2084
and on another like this:
#0 0xb788a424 in __kernel_vsyscall ()
#1 0xb75e3781 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0xb75e6bb2 in *__GI_abort () at abort.c:92
#3 0xb7624584 in __malloc_assert (assertion=<value optimized out>, file=<value optimized out>, line=4636,
function=0xb76dbc10 "_int_malloc") at malloc.c:352
#4 0xb7626fd4 in _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:4636
#5 0xb7628d8c in *__GI___libc_malloc (bytes=8) at malloc.c:3661
#6 0xb769690a in nss_parse_file (database=0xb76dcf07 "passwd", alternate_name=0x0,
defconfig=0xb76e0d40 "compat [NOTFOUND=return] files", ni=0xb76ff834) at nsswitch.c:542
#7 *__GI___nss_database_lookup (database=0xb76dcf07 "passwd", alternate_name=0x0,
defconfig=0xb76e0d40 "compat [NOTFOUND=return] files", ni=0xb76ff834) at nsswitch.c:134
#8 0xb769728e in *__GI___nss_passwd_lookup2 (ni=0xbf96ebe8, fct_name=<value optimized out>,
fct2_name=<value optimized out>, fctp=0xbf96ebe4) at XXX-lookup.c:71
#9 0xb764f7ff in __getpwnam_r (name=0xbf96f8cc "root", resbuf=0xb76fdc1c,
buffer=0x9497150 "\320\323o\267\320\323o\267d symbol: mod_register", buflen=1024, result=0xbf96ec18)
at ../nss/getXXbyYY_r.c:200
#10 0xb764f14f in getpwnam (name=0xbf96f8cc "root") at ../nss/getXXbyYY.c:117
#11 0x08134560 in user2uid (uid=0x81f1c20, gid=0x81f1c24, user=0xbf96f8cc "root") at ut.c:57
#12 0x080ebb91 in init_shm () at shm_init.c:63
#13 0x081807aa in yyparse () at cfg.y:1728
#14 0x08095d9f in main (argc=18, argv=0xbf96f324) at main.c:2084
crash happens no matter if my local module is loaded or it is not the
culprit.
could there be something wrong with geoip module even when the
backtraces are not geoip related?
any suggesting on how to dig further are welcome.
-- juha
Module: sip-router
Branch: master
Commit: 06e71ad96e8f13bafac1fa5d968538f98bd08df5
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=06e71ad…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 31 23:08:02 2012 +0100
snmpstats: safe destroy in case of invalid startup
- some pointers were not intialized yet, but due to destroy of no-startup
they were accessed
- reported by Klaus Feichtinger
---
modules_k/snmpstats/interprocess_buffer.c | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/modules_k/snmpstats/interprocess_buffer.c b/modules_k/snmpstats/interprocess_buffer.c
index c36b079..3ad7113 100644
--- a/modules_k/snmpstats/interprocess_buffer.c
+++ b/modules_k/snmpstats/interprocess_buffer.c
@@ -61,15 +61,15 @@
*
* 2) maps a given aor to a contact list.
*/
-hashSlot_t *hashTable;
+hashSlot_t *hashTable = NULL;
/*! All interprocess communication is stored between these two declarations. */
-interprocessBuffer_t *frontRegUserTableBuffer;
-interprocessBuffer_t *endRegUserTableBuffer;
+interprocessBuffer_t *frontRegUserTableBuffer = NULL;
+interprocessBuffer_t *endRegUserTableBuffer = NULL;
/*! This is to protect the potential racecondition in which a command is added to
* the buffer while it is being consumed */
-gen_lock_t *interprocessCBLock;
+gen_lock_t *interprocessCBLock = NULL;
/*!
* This function takes an element of the interprocess buffer passed to it, and
@@ -103,12 +103,23 @@ int initInterprocessBuffers(void)
* command was received while the interprocess buffer was being consumed.
*/
interprocessCBLock = lock_alloc();
+ if(interprocessCBLock==NULL)
+ {
+ LM_ERR("cannot allocate the lock\n");
+ shm_free(frontRegUserTableBuffer);
+ frontRegUserTableBuffer = NULL;
+ shm_free(endRegUserTableBuffer);
+ endRegUserTableBuffer = NULL;
+ return -1;
+ }
lock_init(interprocessCBLock);
hashTable = createHashTable(HASH_SIZE);
if(hashTable == NULL)
{
LM_ERR("no more shared memory\n");
+ lock_destroy(interprocessCBLock);
+ lock_dealloc(interprocessCBLock);
shm_free(frontRegUserTableBuffer);
frontRegUserTableBuffer = NULL;
shm_free(endRegUserTableBuffer);
@@ -351,7 +362,9 @@ void freeInterprocessBuffer(void)
{
interprocessBuffer_t *currentBuffer, *previousBuffer;
- if (frontRegUserTableBuffer->next == NULL) {
+ if (frontRegUserTableBuffer==NULL
+ || frontRegUserTableBuffer->next == NULL
+ || endRegUserTableBuffer==NULL) {
LM_DBG("Nothing to clean\n");
return;
}
Hello,
Kamailio SIP Server v3.2.2 stable release is out.
This is a maintenance release of the latest stable branch, 3.2, that
includes fixes since release of v3.2.1. There is no change to database
schema or configuration language structure that you have to do on
installations of v3.2.0 or v3.2.1. Deployments running previous v3.2.x
versions are strongly recommended to be upgraded to v3.2.2.
For more details about version 3.2.2 (including links and hints to
download the tarball or from GIT repository), visit:
* http://www.kamailio.org/w/2012/01/kamailio-v3-2-2-released/
RPM packages are currently on the build service, Debian/Ubuntu packages
will be available soon as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Hello,
I would like to schedule an IRC meeting to discuss about the development
of the project in 2012.
The topics coming in my mind at this moment:
- roadmap to next major release v3.3.0
- outstanding issues at this time, if any
- packaging - ways to automate the process better
- documentation - suggestions to improve it and attract more
contributions in this field
- ideas for new features
- administration - web site, mailing lists, etc ... do we miss some good
resource out there that should be added in the eco-system?
Please add your suggestions for agenda to the wiki page:
* http://www.kamailio.org/wiki/devel/irc-meetings/2012a
I proposed two dates (Jan 26 and Jan 31, 15:00GMT) and made a Doodle
poll for it:
* http://www.doodle.com/qzteweb62sqax5r6
If you wish other options for dates, let me know. Based on results, we
will announce the final date.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#196 - rtpproxy timeout functionality via dlg_terminate_dlg mi command
User who did this - Daniel-Constantin Mierla (miconda)
----------
Patch to rtpproxy module was applied with condition on U command and to_tag.len>0.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=196#comment494
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.