Hello,
the app_jsdt and app_sqlang modules crash kamailio git master if they are
loaded together. Found by extending the "2.sh" unit test. Can be reproduced by
commenting the app_sqlang loadmodule in. Both modules load if only one of them
is loaded a time.
Core was generated by `../../src/kamailio -L ../../src/modules -Y . -P ./
kamailio.pid -w . -f 2.cfg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f0917a34351 in _IO_vfprintf_internal (s=s@entry=0x7ffe020da330,
format=<optimized out>, format@entry=0x7f09169fc132 "%s",
ap=ap@entry=0x7ffe020da498) at vfprintf.c:1631
1631 vfprintf.c: Datei oder Verzeichnis nicht gefunden.
(gdb) bt full
#0 0x00007f0917a34351 in _IO_vfprintf_internal (s=s@entry=0x7ffe020da330,
format=<optimized out>, format@entry=0x7f09169fc132 "%s",
ap=ap@entry=0x7ffe020da498) at vfprintf.c:1631
[....]
#1 0x00007f0917a5d2f9 in _IO_vsnprintf (string=0x7ffe020da580 "",
maxlen=<optimized out>, format=0x7f09169fc132 "%s",
args=args@entry=0x7ffe020da498) at vsnprintf.c:119
[......]
#2 0x00007f0917a3ac32 in __snprintf (s=<optimized out>, maxlen=<optimized
out>, format=<optimized out>) at snprintf.c:33
arg = {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7ffe020da570, reg_save_area = 0x7ffe020da4b0}}
done = 0
#3 0x00007f09169a9cf8 in sqlang_open_KSR (J=0x1478e70) at app_sqlang_api.c:
1541
_sr_crt_J_KSRMethods = 0x1485910
emods = 0xad6200 <_sr_kemi_modules>
emods_size = 4
i = 2
k = 400070208
n = 58
mname = "\002", '\000' <repeats 11 times>,
"\061", '\000' <repeats 11
times>, "@\226\330\027\060", '\000' <repeats 19 times>,
"[\000\000\000n",
'\000' <repeats 23 times>, "|
\000\000\000\004\000\000\000\000\000\000\000\377\377\377\377\377\377\377\377\t
\000\000\000\000\000\000\000\340\217G
\001\000\000\000\000\002\000\000\000\000\000\000\000\001\000\000\000\062\000\000"
malias = "\000H\211\345H\203\354\020H\211}\370H\213E
\370\276\001\000\000ss\000\000@\226\330\027\t
\177\000\000\020\001\000\000\000\000\000\000\020\022H
\001\000\000\000\000\260NH\001\000\000\000\000\360e\246\027\t
\177\000\000\004\000\000\000\000\000\000\000\220\021H\001\000\000\000\000@
\226\330\027\t\177\000\000\000\001\000\000\000\000\000\000\200\021H
\001\000\000\000\000\020\001\000\000\000\000\000\000\220\000\000\000\000\000\000\000'{\246\027\t
\177\000\000\240\020H\001\000\000\000\000\000\220G
\001\000\000\000\000\200\246\r\002\376\177\000\000\240ݝ\026\t
\177\000\000\002\000\000\005\000\000\000\000\b
\000\000\000\000\000\000\000\020\020G\001\000\000\000\000 \016H
\001\000\000\000\000\020\220G\001\000\000\000\000\002"...
__func__ = "sqlang_open_KSR"
#4 0x00007f09169aaf46 in sqlang_sr_kemi_register_libs (J=0x1478e70) at
app_sqlang_api.c:1603
ret = 0
__func__ = "sqlang_sr_kemi_register_libs"
#5 0x00007f091699f108 in sqlang_sr_init_child () at app_sqlang_api.c:903
__func__ = "sqlang_sr_init_child"
Best regards,
Henning
--
Henning Westerholt -
https://skalatan.de/blog/
Kamailio services -
https://skalatan.de/services
Kamailio security assessment -
https://skalatan.de/de/assessment