[OpenSIPS-Users] crash of smpp module.
johan de clercq
johan at democon.be
Wed Jul 17 08:53:50 EDT 2019
Hello,
Using opensips 3.0
Using latest git for smpp, I have had a segfault on proto_smpp. Backtrace
below:
Reading symbols from /data/opensips/sbin/opensips...done.
[New LWP 11483]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/data/opensips/sbin/opensips -P
/var/run/opensips/opensips.pid -m 64 -M 4 -u ro'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f2dd86544c3 in smpp_send_msg (smsc=smsc at entry=0x7f2dda282800,
buffer=buffer at entry=0x7f2dde06b810) at smpp.c:531
531 tcp_conn_set_lifetime(conn, tcp_con_lifetime);
(gdb) bt full
#0 0x00007f2dd86544c3 in smpp_send_msg (smsc=smsc at entry=0x7f2dda282800,
buffer=buffer at entry=0x7f2dde06b810) at smpp.c:531
_timeout = 66490
ret = -1
fd = -1
conn = 0x0
__FUNCTION__ = "smpp_send_msg"
#1 0x00007f2dd86549a6 in send_enquire_link_request (session=0x7f2dda282800)
at smpp.c:1095
req = 0x7f2dde06b800
#2 enquire_link (ticks=<optimized out>, params=<optimized out>) at
smpp.c:620
l = 0x7f2dda2828a0
session = 0x7f2dda282800
#3 0x000055a03ff44d00 in handle_timer_job () at timer.c:863
t = 0x7f2dd9ec70d8
l = <optimized out>
__FUNCTION__ = "handle_timer_job"
#4 0x000055a04009fc99 in handle_io (idx=3, event_type=1, fm=0x7f2ddde58928)
at net/net_udp.c:276
n = 0
read = 21920
#5 io_wait_loop_epoll (repeat=<optimized out>, t=<optimized out>,
h=<optimized out>) at net/../io_wait_loop.h:280
ret = 1
n = 1
r = 3
i = <optimized out>
e = 0x7f2ddde58928
ep_event = {events = 1, data = {ptr = 0xda25429000000000, fd = 0,
u32 = 0, u64 = 15719043260649308160}}
fd = <optimized out>
#6 0x000055a0400a4a09 in udp_start_processes (chd_rank=<optimized out>,
startup_done=<optimized out>) at net/net_udp.c:496
si = <optimized out>
p_id = <optimized out>
i = <optimized out>
__FUNCTION__ = "udp_start_processes"
#7 0x000055a03fe9a713 in main_loop () at main.c:795
startup_done = 0x0
chd_rank = 2
last_check = 0
rc = <optimized out>
chd_rank = 2
#8 main (argc=<optimized out>, argv=<optimized out>) at main.c:1480
c = <optimized out>
r = <optimized out>
tmp = 0x7ffcd46d4ef3 ""
tmp_len = <optimized out>
---Type <return> to continue, or q <return> to quit---
port = <optimized out>
proto = <optimized out>
protos_no = <optimized out>
options = 0x55a0400fd7c8
"f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
ret = -1
seed = 3589306401
rfd = <optimized out>
__FUNCTION__ = "main"
(gdb)
Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke
Tel +3256980990 - GSM +32478720104
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190717/d78c500f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15602 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20190717/d78c500f/attachment-0001.png>
More information about the Users
mailing list