Hello,

On 8/9/10 12:51 PM, Ernest Mavrel wrote:
Hi all

Today I changed OS Ubunto 10.4 64-bit with Ubunto 10.4 32-bit and kamailio is on. Why I have problems with 64-bit?
I had couple of days off, I will look over the last emails and see if I can spot something. Looks like the value returned from DB is NULL.

Cheers,
Daniel



Ernest


On 06. 08. 2010 14:24, Ernest Mavrel wrote:
On 06. 08. 2010 14:21, Ernest Mavrel wrote:
And so on:

(gdb) print values
$1 = (db_val_t *) 0x0
(gdb) backtrace
#0  build_rule (values=0x0) at dp_db.c:375
#1  0x00007f1bbef393ef in dp_load_db () at dp_db.c:248
#2  0x00007f1bbef39a52 in init_db_data () at dp_db.c:97
#3  0x00007f1bbef39e9d in init_data () at dp_db.c:163
#4  0x00007f1bbef34f55 in mod_init () at dialplan.c:176
#5  0x00000000004c020a in init_mod (m=0x892a50) at sr_module.c:872
#6  0x00000000004c00c1 in init_mod (m=0x893e80) at sr_module.c:852
#7  0x00000000004c00c1 in init_mod (m=0x8947b0) at sr_module.c:852
#8  0x00000000004c00c1 in init_mod (m=0x894e80) at sr_module.c:852
#9  0x00000000004c00c1 in init_mod (m=0x8970f8) at sr_module.c:852
#10 0x00000000004c00c1 in init_mod (m=0x897570) at sr_module.c:852
#11 0x00000000004c00c1 in init_mod (m=0x898b40) at sr_module.c:852
#12 0x00000000004c00c1 in init_mod (m=0x898f60) at sr_module.c:852
#13 0x00000000004c00c1 in init_mod (m=0x899618) at sr_module.c:852
#14 0x00000000004c1462 in init_modules () at sr_module.c:902
#15 0x0000000000452d94 in main (argc=3, argv=0x7fffc49ceb18) at main.c:2187
(gdb)

Ernest


On 06. 08. 2010 14:13, Ernest Mavrel wrote:
This is what I got:

gdb /usr/local/sbin/kamailio /tmp/core

GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/sbin/kamailio...done.
[New Thread 14818]

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/local/lib/kamailio/modules/tm.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/tm.so
Reading symbols from /usr/local/lib/kamailio/modules_k/kex.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/kex.so
Reading symbols from /usr/local/lib/kamailio/libkmi.so.1...done.
Loaded symbols for /usr/local/lib/kamailio/libkmi.so.1
Reading symbols from /usr/local/lib/kamailio/libkcore.so.1...done.
Loaded symbols for /usr/local/lib/kamailio/libkcore.so.1
Reading symbols from /usr/local/lib/kamailio/modules_k/tmx.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/tmx.so
Reading symbols from /usr/local/lib/kamailio/modules_k/siputils.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/siputils.so
Reading symbols from /usr/local/lib/kamailio/libsrdb1.so.1...done.
Loaded symbols for /usr/local/lib/kamailio/libsrdb1.so.1
Reading symbols from /usr/local/lib/kamailio/modules/sanity.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/sanity.so
Reading symbols from /usr/local/lib/kamailio/modules/ctl.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/ctl.so
Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/local/lib/kamailio/modules/mi_rpc.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/mi_rpc.so
Reading symbols from /usr/local/lib/kamailio/modules_k/pv.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/pv.so
Reading symbols from /usr/local/lib/kamailio/modules_k/usrloc.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/usrloc.so
Reading symbols from /usr/local/lib/kamailio/modules/db_mysql.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/db_mysql.so
Reading symbols from /usr/lib/libmysqlclient.so.16...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmysqlclient.so.16
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/local/lib/kamailio/libsrdb2.so.1...done.
Loaded symbols for /usr/local/lib/kamailio/libsrdb2.so.1
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/local/lib/kamailio/modules_k/rr.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/rr.so
Reading symbols from /usr/local/lib/kamailio/modules_k/dialog.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/dialog.so
Reading symbols from /usr/local/lib/kamailio/modules_k/xlog.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/xlog.so
Reading symbols from /usr/local/lib/kamailio/modules_k/exec.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/exec.so
Reading symbols from /usr/local/lib/kamailio/modules_k/mi_datagram.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/mi_datagram.so
Reading symbols from /usr/local/lib/kamailio/modules_k/mi_fifo.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/mi_fifo.so
Reading symbols from /usr/local/lib/kamailio/modules_k/domain.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/domain.so
Reading symbols from /usr/local/lib/kamailio/modules_k/nathelper.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/nathelper.so
Reading symbols from /usr/local/lib/kamailio/modules_k/textops.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/textops.so
Reading symbols from /usr/local/lib/kamailio/modules_k/diversion.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/diversion.so
Reading symbols from /usr/local/lib/kamailio/modules_k/userblacklist.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/userblacklist.so
Reading symbols from /usr/local/lib/kamailio/libtrie.so.1...done.
Loaded symbols for /usr/local/lib/kamailio/libtrie.so.1
Reading symbols from /usr/local/lib/kamailio/modules_k/registrar.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/registrar.so
Reading symbols from /usr/local/lib/kamailio/modules_k/maxfwd.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/maxfwd.so
Reading symbols from /usr/local/lib/kamailio/modules_k/sl.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/sl.so
Reading symbols from /usr/local/lib/kamailio/modules_k/auth.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/auth.so
Reading symbols from /usr/local/lib/kamailio/modules_k/auth_db.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/auth_db.so
Reading symbols from /usr/local/lib/kamailio/modules_k/uri_db.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/uri_db.so
Reading symbols from /usr/local/lib/kamailio/modules/avpops.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/avpops.so
Reading symbols from /usr/local/lib/kamailio/modules/enum.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/enum.so
Reading symbols from /usr/local/lib/kamailio/modules_k/group.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/group.so
Reading symbols from /usr/local/lib/kamailio/modules_k/uac_redirect.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/uac_redirect.so
Reading symbols from /usr/local/lib/kamailio/modules/dialplan.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/dialplan.so
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /usr/local/lib/kamailio/modules_k/alias_db.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/alias_db.so
Reading symbols from /usr/local/lib/kamailio/modules_k/uac.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/uac.so
Reading symbols from /usr/local/lib/kamailio/modules_k/acc.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/acc.so
Reading symbols from /usr/local/lib/kamailio/modules_k/mi_xmlrpc.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/mi_xmlrpc.so
Reading symbols from /usr/lib/libxmlrpc_server.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxmlrpc_server.so.3
Reading symbols from /usr/lib/libxmlrpc.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxmlrpc.so.3
Reading symbols from /usr/lib/libxmlrpc_util.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxmlrpc_util.so.3
Reading symbols from /usr/lib/libxmlrpc_xmlparse.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxmlrpc_xmlparse.so.3
Reading symbols from /usr/lib/libxmlrpc_xmltok.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxmlrpc_xmltok.so.3
Reading symbols from /usr/local/lib/kamailio/modules_k/drouting.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/drouting.so
Reading symbols from /usr/local/lib/kamailio/modules/pdb.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules/pdb.so
Reading symbols from /usr/local/lib/kamailio/modules_k/siptrace.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/siptrace.so
Reading symbols from /usr/local/lib/kamailio/modules_k/pike.so...done.
Loaded symbols for /usr/local/lib/kamailio/modules_k/pike.so
Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_dns.so.2
Core was generated by `/usr/local/sbin/kamailio -w /tmp'.
Program terminated with signal 11, Segmentation fault.
#0  build_rule (values=0x0) at dp_db.c:375
375        GET_STR_VALUE(repl_exp, values, 6);
(gdb)


Ernest

On 06. 08. 2010 13:52, Ernest Mavrel wrote:
What should I do with core dump file? I cant open it.

Ernest


On 06. 08. 2010 12:53, Ernest Mavrel wrote:
With /usr/local/sbin/kamailio -w /tmp I got a core dump file in /tmp directory. I's size is 38MB.

BR

Ernest

On 06. 08. 2010 12:29, Daniel-Constantin Mierla wrote:

yes, you need argument to -w. In my previous email was a dot '.' -- so the parameter is '-w .' -- which means working directory is current directory. You can do '-w /tmp' and then look in /tmp directory.

Daniel


_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


-- 
Daniel-Constantin Mierla
http://www.asipto.com/