THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A user has added themself to the list of users assigned to this task.
FS#201 - support for parsing URNs
User who did this - Wolfgang Kampichler (wkampich)
http://sip-router.org/tracker/index.php?do=details&task_id=201
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.
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
2012/1/30 Henning Westerholt <henning.westerholt(a)1und1.de>:
> They are regularly updated to the newest version, so maybe they are a good
> starting point in getting a recent version into debian.
Yes, indeed.
> Jon Bonilla (added to CC) maintains this package files and our daily package
> building, e.g. for the master branch at:
> http://deb.kamailio.org/master-nightly/
>
> If you've specific questions to the package file in our tree, the best would be to
> contact our developer mailling list at <sr-dev(a)lists.sip-router.org>
Well there are problems with your modules packages... they are empty
of modules files.
Example:
maniac@tv:/tmp$ LC_ALL=C wget
http://deb.kamailio.org/kamailio32/pool/main/k/kamailio/kamailio-nth_3.2.0+…
--2012-02-01 23:16:10--
http://deb.kamailio.org/kamailio32/pool/main/k/kamailio/kamailio-nth_3.2.0+…
Resolving deb.kamailio.org... 91.121.79.216
Connecting to deb.kamailio.org|91.121.79.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108922 (106K) [application/x-debian-package]
Saving to: `kamailio-nth_3.2.0+squeeze1_i386.deb.2'
100%[========================================================================================================================================================================>]
108,922 305K/s in 0.3s
2012-02-01 23:16:11 (305 KB/s) -
`kamailio-nth_3.2.0+squeeze1_i386.deb.2' saved [108922/108922]
maniac@tv:/tmp$ dpkg-deb -c kamailio-nth_3.2.0+squeeze1_i386.deb
drwxr-xr-x root/root 0 2011-11-02 12:00 ./
drwxr-xr-x root/root 0 2011-11-02 12:00 ./usr/
drwxr-xr-x root/root 0 2011-11-02 12:00 ./usr/share/
drwxr-xr-x root/root 0 2011-11-02 12:00 ./usr/share/doc/
drwxr-xr-x root/root 0 2011-11-02 12:00 ./usr/share/doc/kamailio-nth/
-rw-r--r-- root/root 1030 2011-10-18 17:50
./usr/share/doc/kamailio-nth/copyright
-rw-r--r-- root/root 106176 2011-10-18 17:51
./usr/share/doc/kamailio-nth/changelog.gz
-rw-r--r-- root/root 634 2011-11-02 11:16
./usr/share/doc/kamailio-nth/changelog.Debian.gz
maniac@tv:/tmp$
There are no .so files
I manage to fix this with this [0] on the Debian pkg-voip svn.
[0] http://anonscm.debian.org/viewvc/pkg-voip/kamailio/trunk/debian/rules?r1=94…
I Hope this helps.
Greetings
Module: sip-router
Branch: master
Commit: 29a87c81bab87c5b34d053ed5937cfa271d756f2
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=29a87c8…
Author: Anca Vamanu <anca.vamanu(a)1and1.ro>
Committer: Anca Vamanu <anca.vamanu(a)1and1.ro>
Date: Fri Jan 27 11:24:37 2012 +0200
modules/db_cassandra Addition in documentation
Specified how keyspaces and column families should be created in
Cassandra
---
modules/db_cassandra/README | 15 +++++++++++++--
modules/db_cassandra/doc/db_cassandra_admin.xml | 17 ++++++++++++++++-
2 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/modules/db_cassandra/README b/modules/db_cassandra/README
index be27201..b545ee9 100644
--- a/modules/db_cassandra/README
+++ b/modules/db_cassandra/README
@@ -94,8 +94,19 @@ Chapter 1. Admin Guide
You will find the schemas for location, subscriber and version tables
in utils/kamctl/dbcassandra directory. You have to provide the path to
the directory containing the table definitions by setting the module
- parameter schema_path. NOTE that there is no need to configure a table
- metadata in Cassandra cluster.
+ parameter schema_path.
+
+ There is no need to configure a table metadata in Cassandra cluster.
+ You only need to define a keyspace with the name of the database and
+ for each table a column family inside that keyspace with the name of
+ the table. The comparator and validators should be either UTF8Type or
+ ASCIIType. Example:
+ ...
+ create keyspace openser;
+ use openser;
+ create column family 'location' with comparator='UTF8Type' and
+default_validation_class='UTF8Type' and key_validation_class='UTF8Type';
+ ...
Special attention was given to performance in Cassandra. Therefore, the
implementation uses only the native row indexing in Cassandra and no
diff --git a/modules/db_cassandra/doc/db_cassandra_admin.xml b/modules/db_cassandra/doc/db_cassandra_admin.xml
index 1a59500..1c00067 100644
--- a/modules/db_cassandra/doc/db_cassandra_admin.xml
+++ b/modules/db_cassandra/doc/db_cassandra_admin.xml
@@ -52,9 +52,24 @@
utils/kamctl/dbcassandra directory. You have to provide the path to the
directory containing the table definitions by setting the module parameter
schema_path.
- NOTE that there is no need to configure a table metadata in Cassandra cluster.
</para>
<para>
+ There is no need to configure a table metadata in Cassandra cluster.
+ You only need to define a keyspace with the name of the database and for each table
+ a column family inside that keyspace with the name of the table. The comparator
+ and validators should be either UTF8Type or ASCIIType.
+ Example:
+ </para>
+<programlisting format="linespecific">
+ ...
+ create keyspace openser;
+ use openser;
+ create column family 'location' with comparator='UTF8Type' and
+default_validation_class='UTF8Type' and key_validation_class='UTF8Type';
+ ...
+</programlisting>
+
+ <para>
Special attention was given to performance in Cassandra. Therefore, the
implementation uses only the native row indexing in Cassandra and no secondary
indexes, because they are costly. Instead, we simulate a secondary index by