Hello list,
I am trying to put up and ready a system based on openser. I am using
Openser 1.2.1 from the SVN.
The problem is that the system crashes continously without an aparent reason
when is managing an INVITE request from X-Lite. Openser is able to manage a
couple of calls and after that it crashes.
I dont really know if the configuration script has something to do with this
behaviour (I put the script attached).
The problem seems to be located in the avp.c function as per the following
backtrace generated from a coredump. I put also below the logs. If you need
more information, please let me know.
Thanks very much for your help.
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db
library "/lib/tls/i686/cmov/libthread_db.so.1".
warning: Can't read pathname for load map: Error de entrada/salida.
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/openser/modules/mysql.so...done.
Loaded symbols for //lib/openser/modules/mysql.so
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /usr/lib/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib/libmysqlclient.so.15
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/openser/modules/sl.so...done.
Loaded symbols for //lib/openser/modules/sl.so
Reading symbols from /lib/openser/modules/tm.so...done.
Loaded symbols for //lib/openser/modules/tm.so
Reading symbols from /lib/openser/modules/rr.so...done.
Loaded symbols for //lib/openser/modules/rr.so
Reading symbols from /lib/openser/modules/maxfwd.so...done.
Loaded symbols for //lib/openser/modules/maxfwd.so
Reading symbols from /lib/openser/modules/usrloc.so...done.
Loaded symbols for //lib/openser/modules/usrloc.so
Reading symbols from /lib/openser/modules/registrar.so...done.
Loaded symbols for //lib/openser/modules/registrar.so
Reading symbols from /lib/openser/modules/auth.so...done.
Loaded symbols for //lib/openser/modules/auth.so
Reading symbols from /lib/openser/modules/auth_db.so...done.
Loaded symbols for //lib/openser/modules/auth_db.so
Reading symbols from /lib/openser/modules/uri.so...done.
Loaded symbols for //lib/openser/modules/uri.so
Reading symbols from /lib/openser/modules/uri_db.so...done.
Loaded symbols for //lib/openser/modules/uri_db.so
Reading symbols from /lib/openser/modules/domain.so...done.
Loaded symbols for //lib/openser/modules/domain.so
Reading symbols from /lib/openser/modules/textops.so...done.
Loaded symbols for //lib/openser/modules/textops.so
Reading symbols from /lib/openser/modules/avpops.so...done.
Loaded symbols for //lib/openser/modules/avpops.so
Reading symbols from /lib/openser/modules/permissions.so...done.
Loaded symbols for //lib/openser/modules/permissions.so
Reading symbols from /lib/openser/modules/enum.so...done.
Loaded symbols for //lib/openser/modules/enum.so
Reading symbols from /lib/openser/modules/acc.so...done.
Loaded symbols for //lib/openser/modules/acc.so
Reading symbols from /lib/openser/modules/dialog.so...done.
Loaded symbols for //lib/openser/modules/dialog.so
Reading symbols from /lib/openser/modules/mi_fifo.so...done.
Loaded symbols for //lib/openser/modules/mi_fifo.so
Reading symbols from /lib/openser/modules/snmpstats.so...done.
Loaded symbols for //lib/openser/modules/snmpstats.so
Reading symbols from /usr/local/lib/libnetsnmpmibs.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmpmibs.so.15
Reading symbols from /usr/local/lib/libnetsnmpagent.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmpagent.so.15
Reading symbols from /usr/local/lib/libnetsnmphelpers.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmphelpers.so.15
Reading symbols from /usr/local/lib/libnetsnmp.so.15...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.15
Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done.
Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /usr/lib/libsensors.so.3...done.
Loaded symbols for /usr/lib/libsensors.so.3
Reading symbols from /lib/libsysfs.so.2...done.
Loaded symbols for /lib/libsysfs.so.2
Reading symbols from /lib/openser/modules/xlog.so...done.
Loaded symbols for //lib/openser/modules/xlog.so
Reading symbols from /lib/openser/modules/lcr.so...done.
Loaded symbols for //lib/openser/modules/lcr.so
Reading symbols from /lib/openser/modules/pdt.so...done.
Loaded symbols for //lib/openser/modules/pdt.so
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
Core was generated by `openser -f 4.cfg'.
Program terminated with signal 11, Segmentation fault.
#0 search_next_avp (avp=0x82, val=0xbfef3ca8) at usr_avp.c:235
235 if ( id==avp->id &&
(avp->flags&AVP_NAME_STR)==0
(gdb) backtrace
#0 search_next_avp (avp=0x82, val=0xbfef3ca8) at usr_avp.c:235
#1 0xb7b00866 in legs2strar (legs=0x81932c8, rq=0xb58d4e48,
val_arr=0xb7b134b8) at acc_extra.c:313
#2 0xb7aff696 in acc_db_request (rq=0xb58d4e48) at acc.c:383
#3 0xb7b015d7 in tmcb_func (t=0xb58ca420, type=128, ps=0xb7bdfe14)
at acc_logic.c:376
#4 0xb7bba513 in run_trans_callbacks (type=128, trans=0xb58ca420,
req=0xb58d4e48, rpl=0x819bc90, code=200) at t_hooks.c:205
#5 0xb7bcffa5 in relay_reply (t=0xb58ca420, p_msg=0x819bc90,
branch=<value optimized out>, msg_status=200, cancel_bitmap=0xbfef3f00)
at t_reply.c:1150
#6 0xb7bd1a8c in reply_received (p_msg=0x819bc90) at t_reply.c:1383
#7 0x0805fd3f in forward_reply (msg=0x819bc90) at forward.c:489
#8 0x08083486 in receive_msg (
buf=0x813daa0 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 192.168.1.129;branch=
z9hG4bK6f62.874d7d27.0;received=192.168.1.129\r\nVia: SIP/2.0/UDP
192.168.222.86:27880;branch=z9hG4bK-d87543-714c824f3363f248-1--d87543-\r\nRecord-Rou"...,
len=850, rcv_info=0xbfef3ff8) at receive.c:195
#9 0x080b409a in udp_rcv_loop () at udp_server.c:451
#10 0x0806f587 in main_loop () at main.c:834
#11 0x08070d55 in main (argc=3, argv=0xbfef41b4) at main.c:1393
The following lines are the log generated:
Jun 7 10:42:04 marge openser[1545]: receive_msg: cleaning up
Jun 7 10:42:04 marge openser[1565]: ERROR: receive_fd: EOF on 8
Jun 7 10:42:04 marge openser[1565]: DBG: handle_ser_child: dead child 2, pid
1546 (shutting down?)
Jun 7 10:42:04 marge openser[1565]: DBG: io_watch_del (0x812d720, 8, -1,
0x0) fd_no=23 called
Jun 7 10:42:04 marge openser[1544]: child process 1546 exited by a signal 11
Jun 7 10:42:04 marge openser[1544]: core was generated
Jun 7 10:42:04 marge openser[1544]: INFO: terminating due to SIGCHLD
Jun 7 10:42:04 marge openser[1552]: INFO: signal 15 received
Jun 7 10:42:04 marge openser[1552]: Memory status (pkg):
Jun 7 10:42:04 marge openser[1552]: fm_status (0x816e3e0):
Jun 7 10:42:04 marge openser[1552]: heap size= 1048576
Jun 7 10:42:04 marge openser[1552]: used= 155064, used+overhead=186160,
free=862416
Jun 7 10:42:04 marge openser[1552]: max used (+overhead)= 186376
Jun 7 10:42:04 marge openser[1552]: dumping free list:
Jun 7 10:42:04 marge openser[1552]: hash = 3 fragments no.: 1, unused: 0
bucket size: 24 - 24 (first 24)
Jun 7 10:42:04 marge openser[1552]: hash = 5 fragments no.: 1, unused: 0
bucket size: 40 - 40 (first 40)
Jun 7 10:42:04 marge openser[1552]: hash = 19 fragments no.: 1, unused: 0
bucket size: 152 - 152 (first 152)
Jun 7 10:42:04 marge openser[1552]: hash = 2054 fragments no.: 1, unused: 0
bucket size: 524288 - 1048576 (first 862336)
Jun 7 10:42:04 marge openser[1552]: TOTAL: 4 free fragments = 862552 free
bytes
Jun 7 10:42:04 marge openser[1552]: -----------------------------
Jun 7 10:42:04 marge openser[1565]: INFO: signal 15 received
Jun 7 10:42:04 marge openser[1565]: Memory status (pkg):
Jun 7 10:42:04 marge openser[1565]: fm_status (0x816e3e0):
.......