Hi, my server has IP 9.9.9.9 but I set:
listen=tcp:1.2.3.4
Running kamailio I get a segfault:
-------------------- (gdb) bt full #0 0xb7e163b3 in strlen () from /lib/i686/cmov/libc.so.6 No symbol table info available. #1 0xb7acfa4d in uac_init () at uac.c:112 src = {{s = 0xb7ad8810 "Long live SER server", len = 20}, {s = 0x0, len = 28}, {s = 0xb59940b8 "", len = -1213400550}} si = (struct socket_info *) 0x813f3d8 __FUNCTION__ = "uac_init" #2 0xb7ac2fc7 in mod_init () at tm.c:610 __FUNCTION__ = "mod_init" #3 0x08093ad3 in init_mod (m=0x813f7b0) at sr_module.c:408 __FUNCTION__ = "init_mod" #4 0x08093a70 in init_mod (m=0x813f9d0) at sr_module.c:403 __FUNCTION__ = "init_mod" #5 0x08093a70 in init_mod (m=0x8141050) at sr_module.c:403 __FUNCTION__ = "init_mod" #6 0x08093a70 in init_mod (m=0x81410f0) at sr_module.c:403 __FUNCTION__ = "init_mod" #7 0x08093a70 in init_mod (m=0x8141190) at sr_module.c:403 __FUNCTION__ = "init_mod" #8 0x08093a70 in init_mod (m=0x8141250) at sr_module.c:403 __FUNCTION__ = "init_mod" #9 0x08093a70 in init_mod (m=0x81412f0) at sr_module.c:403 __FUNCTION__ = "init_mod" #10 0x08093a70 in init_mod (m=0x8141390) at sr_module.c:403 __FUNCTION__ = "init_mod" #11 0x08093a70 in init_mod (m=0x8141468) at sr_module.c:403 __FUNCTION__ = "init_mod" #12 0x08093a70 in init_mod (m=0x8141508) at sr_module.c:403 __FUNCTION__ = "init_mod" #13 0x08093a70 in init_mod (m=0x81415e0) at sr_module.c:403 __FUNCTION__ = "init_mod" #14 0x08093a70 in init_mod (m=0x8141680) at sr_module.c:403 __FUNCTION__ = "init_mod" #15 0x08093a70 in init_mod (m=0x8141720) at sr_module.c:403 __FUNCTION__ = "init_mod" #16 0x08067d91 in main (argc=1, argv=0xbf9d96f4) at main.c:1303 cfg_log_stderr = 0 cfg_stream = (FILE *) 0x9b08008 c = <value optimized out> r = <value optimized out> tmp_len = <value optimized out> port = <value optimized out> proto = <value optimized out> ret = <value optimized out> rfd = <value optimized out> tmp = 0xb7ef6ff4 "\234m\025" seed = 2624953942 __FUNCTION__ = "main" --------------------
The log (debug=4) ends with:
------------------ Apr 15 18:48:14 callerid-loco-kamailio-1 kamailio[20588]: INFO:core:init_mod: initializing module tm Apr 15 18:48:14 callerid-loco-kamailio-1 kamailio[20588]: DBG:tm:init_callid: Call-ID initialization: '6fff2fff' Apr 15 18:48:14 callerid-loco-kamailio-1 kamailio[20588]: DBG:tm:lock_initialize: lock initialization started ------------------
2010/4/15 Iñaki Baz Castillo ibc@aliax.net:
Hi, my server has IP 9.9.9.9 but I set:
listen=tcp:1.2.3.4
Running kamailio I get a segfault:
Ops, it just occurs if I have disable_tcp=yes :)
Of course it doesn't make sense to set disable_tcp=yes and later try to listen in TCP, but it shouldn't crash, right?