On 4/14/11 4:47 PM, Juha Heinanen wrote:
Andrei Pelinescu-Onciul writes:
core: pkg mem size configurable form the cmd
line
The pkg mem size used can be configured by using the "-M"
parameter on the command line, e.g.:
ser -M 8 -f test.cfg # start ser with 8mb of pkg memory
The default remains 4Mb.
-M 4 worked fine, but -M 3 resulted in segmentation
fault:
this was more likely due to running out of memory rather than -M
parameter. Parsing the config file consumes pkg and there are cases when
the out of memory was not properly handled.
I committed a patch on master branch that should stop the startup
process if parser runs out of memory.
Cheers,
Daniel
Apr 14 17:42:43 sip kernel: [38159.753805] sip-proxy[15586]: segfault at 0 ip 08177a0e sp
bfe6eda0 error 4 in sip-proxy[8048000+18e000]
Not starting sip-proxy: invalid configuration file!
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [route_struct.c:174]: ERROR: mk_action: memory allocation
failure
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
0(15586) :<core> [cfg.lex:1359]: ERROR:lex:addstr: memory allocation error
i could not find core file.
-- juha
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda