THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Hugh Waite (hugh.waite)
Attached to Project - sip-router
Summary - Segfault in 4.1 when cannot reverse resolve
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - High
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - A Segfault is occuring on the latest 4.1 during startup when attempting to
resolve the address in a 'listen' config directive.
It can be generated when running kamailio -c, when the IP address is not resolveable. The
problem goes away once the DNS entry is available.
<code>
#!substdef "/PRIV_IP_ADDR/10.179.31.235/"
#!substdef "/PUBL_IP_ADDR/WW.XX.YY.ZZ/"
...
listen=tcp:"PRIV_IP_ADDR":80 advertise "PUBL_IP_ADDR":80
...
</code>
Backtrace:
<code>(gdb) bt full
#0 0x0000000000443d81 in counter_inc (name=<value optimized out>) at
counters.h:126
No locals.
#1 dns_resolvehost (name=<value optimized out>) at dns_cache.c:2602
host = {s = 0x2 <Address 0x2 out of bounds>, len = 4760762}
ret = <value optimized out>
#2 0x00000000004e5cb7 in new_sock_info (name=<value optimized out>,
addr_l=<value optimized out>,
port=<value optimized out>, proto=<value optimized out>, usename=<value
optimized out>, useport=5080,
flags=SI_NONE) at socket_info.c:297
si = 0x7fbe68525690
n = <value optimized out>
he = <value optimized out>
p = <value optimized out>
__FUNCTION__ = "new_sock_info"
#3 0x00000000004e6091 in new_sock2list (name=<value optimized out>,
addr_l=<value optimized out>,
port=<value optimized out>, proto=<value optimized out>, usename=<value
optimized out>,
useport=<value optimized out>, flags=SI_NONE, list=0x84e6d8) at
socket_info.c:727
si = <value optimized out>
#4 0x00000000004eb48d in add_listen_advertise_iface (name=0x7fbe685252a0
"10.179.31.235", addr_l=0x0,
port=5080, proto=2, usename=0x7fbe685255e0 "edge05-int.crocodilertc.net",
useport=5080, flags=SI_NONE)
at socket_info.c:805
list = 0x84e6d8
c_proto = 2
a_l = <value optimized out>
c_port = <value optimized out>
#5 0x00000000005b6e2d in yyparse () at cfg.y:1419
yystate = <value optimized out>
yyerrstatus = 0
yyssa = {0, 165, 19, 199, 462, 739, 839, 1014, 1205, 0, 0, 0, 20872, 26926, 32702,
0, 1, 0, 0, 0, 0,
0, 0, 0, 1, 0, 32702, 0, 20872, 26926, 32702, 0, 0, 0, 0, 0, 21728, 26926,
32702, 0, 26720, 8970,
32767, 0, 1, 0, 0, 0, 26744, 8970, 32767, 0, 21728, 26926, 1, 0, 26752, 8970,
32767, 0, -13839,
64, 0, 0, 26776, 8970, 32767, 0, 8160, 26893, 1, 0, 1, 0, 0, 0, -14645, 64, 0,
0, 27720, 26769,
32702, 0, 8456, 26770, 32702, 0, 27200, 8970, 32767, 0, -25944, 84, 0, 0, 8, 0,
0, 0, 14853,
---Type <return> to continue, or q <return> to quit---
26783, 32702, 0, 7808, 26826, 32702, 0, 7896, 26826, 32702, 0, 12536, 26770,
32702, 0, -12288,
26925, 32702, 0, 8016, 26706, 32702, 0, -1, -1, 0, 0, -11272, 26769, 32702, 0,
1, 0, 0, 0, -6000,
131, 0, 0, 0, 0, 0, 0, -28656, 245, 0, 0, 27088, 8970, 32767, 0, 0, 0, 0, 0,
8160, 26893, 32702,
0, 1, 0 <repeats 11 times>, 12536, 26770, 32702, 0, 1, 0, 0, 0, 0, 0, 0,
0, 4, 0, 0, 0, 0, 0, 0,
0, 3152, 21150, 0, 0, -30955, 26893, 32702, 0}
yyss = 0x7fff230a6780
yyssp = 0x7fff230a6790
</code>
Are the DNS stats counters initialised at this point?
More information can be found at the following URL:
https://sip-router.org/tracker/index.php?do=details&task_id=375
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.