Hello.
On this same issue. Today i had another crash from my SER. I'm
attaching the gdb output from the core file. Could this be related to a
glibc issue as Dmitry Semyonov pointed? Hope that someone can help me.!
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...
Core was generated by `/usr/local/sbin/ser -P /var/run/ser.pid'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/local//lib/ser/modules/mysql.so...done.
Loaded symbols for /usr/local//lib/ser/modules/mysql.so
Reading symbols from /usr/lib/mysql/libmysqlclient.so.10...done.
Loaded symbols for /usr/lib/mysql/libmysqlclient.so.10
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /usr/local//lib/ser/modules/sl.so...done.
Loaded symbols for /usr/local//lib/ser/modules/sl.so
Reading symbols from /usr/local//lib/ser/modules/tm.so...done.
Loaded symbols for /usr/local//lib/ser/modules/tm.so
Reading symbols from /usr/local//lib/ser/modules/rr.so...done.
Loaded symbols for /usr/local//lib/ser/modules/rr.so
Reading symbols from /usr/local//lib/ser/modules/maxfwd.so...done.
Loaded symbols for /usr/local//lib/ser/modules/maxfwd.so
Reading symbols from /usr/local//lib/ser/modules/usrloc.so...done.
Loaded symbols for /usr/local//lib/ser/modules/usrloc.so
Reading symbols from /usr/local//lib/ser/modules/registrar.so...done.
Loaded symbols for /usr/local//lib/ser/modules/registrar.so
Reading symbols from /usr/local//lib/ser/modules/textops.so...done.
Loaded symbols for /usr/local//lib/ser/modules/textops.so
Reading symbols from /usr/local//lib/ser/modules/exec.so...done.
Loaded symbols for /usr/local//lib/ser/modules/exec.so
Reading symbols from /usr/local//lib/ser/modules/mediaproxy.so...done.
Loaded symbols for /usr/local//lib/ser/modules/mediaproxy.so
Reading symbols from /usr/local//lib/ser/modules/domain.so...done.
Loaded symbols for /usr/local//lib/ser/modules/domain.so
Reading symbols from /usr/local//lib/ser/modules/dbtext.so...done.
Loaded symbols for /usr/local//lib/ser/modules/dbtext.so
Reading symbols from /usr/local//lib/ser/modules/nathelper.so...done.
Loaded symbols for /usr/local//lib/ser/modules/nathelper.so
Reading symbols from /usr/local/lib/ser/modules/auth.so...done.
Loaded symbols for /usr/local/lib/ser/modules/auth.so
Reading symbols from /usr/local/lib/ser/modules/auth_radius.so...done.
Loaded symbols for /usr/local/lib/ser/modules/auth_radius.so
Reading symbols from /usr/local/lib/libradiusclient-ng.so.2...done.
Loaded symbols for /usr/local/lib/libradiusclient-ng.so.2
Reading symbols from /usr/local/lib/ser/modules/group_radius.so...done.
Loaded symbols for /usr/local/lib/ser/modules/group_radius.so
Reading symbols from /usr/local/lib/ser/modules/acc.so...done.
Loaded symbols for /usr/local/lib/ser/modules/acc.so
Reading symbols from /usr/local/lib/ser/modules/avp_radius.so...done.
Loaded symbols for /usr/local/lib/ser/modules/avp_radius.so
Reading symbols from /usr/local/lib/ser/modules/avpops.so...done.
Loaded symbols for /usr/local/lib/ser/modules/avpops.so
Reading symbols from /usr/local/lib/ser/modules/xlog.so...done.
Loaded symbols for /usr/local/lib/ser/modules/xlog.so
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
#0 0x42070fa4 in _IO_str_overflow_internal () from /lib/tls/libc.so.6
(gdb)
(gdb)
(gdb) bt
#0 0x42070fa4 in _IO_str_overflow_internal () from /lib/tls/libc.so.6
#1 0x4206fb28 in _IO_default_xsputn_internal () from /lib/tls/libc.so.6
#2 0x4204528a in vfprintf () from /lib/tls/libc.so.6
#3 0x4206432c in vsprintf () from /lib/tls/libc.so.6
#4 0x4204f18d in sprintf () from /lib/tls/libc.so.6
#5 0x4016f889 in UseMediaProxy (msg=0x8106b18, str1=0x0, str2=0x0) at
mediaproxy.c:1454
#6 0x0804efe2 in do_action (a=0x8105328, msg=0x8106b18) at action.c:610
#7 0x0805079c in run_actions (a=0x8105328, msg=0x8105328) at action.c:718
#8 0x0804ef01 in do_action (a=0x8105358, msg=0x8106b18) at action.c:600
#9 0x0805079c in run_actions (a=0x8105328, msg=0x8105358) at action.c:718
#10 0x0804ef01 in do_action (a=0x8105388, msg=0x8106b18) at action.c:600
#11 0x0805079c in run_actions (a=0x8105328, msg=0x8105388) at action.c:718
#12 0x0804ed9f in do_action (a=0x8104278, msg=0x8106b18) at action.c:375
#13 0x0805079c in run_actions (a=0x8105328, msg=0x8106b18) at action.c:718
#14 0x0804ef01 in do_action (a=0x81042d8, msg=0x8106b18) at action.c:600
#15 0x0805079c in run_actions (a=0x8105328, msg=0x81042d8) at action.c:718
#16 0x0804ef01 in do_action (a=0x8104c38, msg=0x8106b18) at action.c:600
#17 0x0805079c in run_actions (a=0x8105328, msg=0x8104c38) at action.c:718
#18 0x08069449 in receive_msg (
buf=0x80c48a0 "INVITE sip:4352220@sipproxy.redvoiss.net SIP/2.0\r\nVia:
SIP/2.0/UDP 192.168.1.3:5060;branch=z9hG4bK-f669b8df;rport\r\nFrom:
5555847315
<sip:5555847315@sipproxy.redvoiss.net>;tag=98eef174d354691fo0\r\nTo: <"...,
len=1101, rcv_info=0xbfffdbd0)
at receive.c:165
#19 0x08079e8f in udp_rcv_loop () at udp_server.c:458
#20 0x0805b480 in main_loop () at main.c:1032
#21 0x0805c7ac in main (argc=0, argv=0x4213ad38) at main.c:1568
#22 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) frame 5
#5 0x4016f889 in UseMediaProxy (msg=0x8106b18, str1=0x0, str2=0x0) at
mediaproxy.c:1454
1454 sprintf(info, "from:%.*s,to:%.*s,fromtag:%.*s,totag:%.*s",
(gdb) list
1449 }
1450
1451 agent = encodeQuopri(userAgent);
1452
1453 info = pkg_malloc(infolen);
1454 sprintf(info, "from:%.*s,to:%.*s,fromtag:%.*s,totag:%.*s",
1455 fromAddr.len, fromAddr.s, toAddr.len, toAddr.s,
1456 fromTag.len, fromTag.s, toTag.len, toTag.s);
1457 if (isRTPAsymmetric(userAgent)) {
1458 strcat(info, ",asymmetric");
(gdb) print infolen
$1 = 143
(gdb) print &info
Can't take address of "info" which isn't an lvalue.
(gdb) print info
$2 = 0x5 <Address 0x5 out of bounds>
(gdb) print fromAddr
$3 = {
s = 0x80c4929
"5555847315(a)sipproxy.redvoiss.net>;tag=98eef174d354691fo0\r\nToo0\r\nTo:
<sip:4352220@sipproxy.redvoiss.net>\r\nCall-ID:
c5c633d8-e09d6a0b(a)192.168.1.3\r\nCSeq: 102 INVITE\r\nMax-Forwards:
16\r\nProxy-Authorization: Dige"..., len = 32}
(gdb) print *fromAddr
Structure has no component named operator*.
(gdb) print toAddr
$4 = {
s = 0x80c496c "4352220(a)sipproxy.redvoiss.net>\r\nCall-IDnCall-ID:
c5c633d8-e09d6a0b(a)192.168.1.3\r\nCSeq: 102 INVITE\r\nMax-Forwards:
16\r\nProxy-Authorization: Digest
username=\"ID_12289\",realm=\"sipproxy.redvoiss.net\",nonce=\"42dd462"...,
len = 29}
(gdb) print *toAddr
Structure has no component named operator*.
(gdb) print fromTag
$5 = {
s = 0x80c494f "98eef174d354691fo0\r\nTo:
<sip:4352220@sipproxy.redvoiss.net>\r\nCall-ID:
c5c633d8-e09d6a0b(a)192.168.1.3\r\nCSeq: 102 INVITE\r\nMax-Forwards:
16\r\nProxy-Authorization: Digest
username=\"ID_12289\",realm=\"sipproxy"..., len = 18}
(gdb) print *fromTag
Structure has no component named operator*.
(gdb) print toTag
$6 = {s = 0x401773d0 "", len = 0}
(gdb) print *toTag
Structure has no component named operator*.
(gdb)
Regards,.
Ricardo Martinez.-