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

On 8/6/10 12:22 PM, Ernest Mavrel wrote:
You mean:
/usr/local/sbin/kamailio -w
Option `-w' requires an argument. Use -h for help.


    -W           poll method


BR

Ernest



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

On 8/3/10 7:11 AM, Ernest Mavrel wrote:
Hi


On 02. 08. 2010 18:19, Daniel-Constantin Mierla wrote:
Hello,

is nothing after messages?

No, after this messages is nothing.


 0(4311) DEBUG: <core> [db_val.c:117]: converting STRING []
 0(4311) DEBUG: dialplan [dp_db.c:374]: build_rule

the second set of messages looks ok. If you do:

ps auxw | grep kamailio

is no kamailio running?

No kamailio is not running.

kamailio  1214  0.0  0.0  30220   760 ?        Ssl  Aug02   0:00 /usr/local/bin/rtpproxy -u kamailio kamailio
root      9332  0.0  0.0   7620   900 pts/0    S+   07:09   0:00 grep --color=auto kamailio

if you give parameter '-w .', do you get a core dump file in current directory? It is strange that the logging messages end sudently, if there is an error and does not start, shut down log messages should be printed.

Cheers,
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




_______________________________________________
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




--


Ernest Mavrel
technical support

Novatel d.o.o.
informacijske tehnologije
Mariborska 88, SI - 3000 Celje

tel: +386 (0)82 800 823
fax: +386 (0)82 800 821
mobile: +386 (0)51 436 453
e-mail: ernest.mavrel@novatel.si