Hello Dmitri,
On 2/9/10 6:32 PM, Dmitri wrote:
Hello Daniel,
I fetched sources from git again, this time there was MEMDBG option. I
enabled this and regenerated debs.
Purged old installation, installed new debs, checked for existence of
DBG_QM_MALLOC. It was there.
changed DB config (replaced default DB passwords with current), changed
debug level to 5,
said as root "ulimit -c unlimited" and placed
echo "/tmp/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
Then I just started kamailio from command line under root account. Now
it crashes without any connections just during startup.
Also there were no any lines in syslog about generating or not
generating core dump.
Error log you may see in attached file.
there is no crash, but errors in config. Seems you have some
is_method() without parameters:
Feb 9 13:19:02 kamailio kamailio[3425]: ERROR: textops [textops.c:1636]: empty method name
Feb 9 13:19:02 kamailio kamailio[3425]: <core> [mem/q_malloc.c:428]: qm_free(0x874ba0, 0x8e4a78), called from textops: textops.c: fixup_method(1637)
Feb 9 13:19:02 kamailio kamailio[3425]: <core> [mem/q_malloc.c:450]: qm_free: freeing frag. 0x8e4a48 alloc'ed from textops: textops.c: fixup_method(1626)
Feb 9 13:19:02 kamailio kamailio[3425]: ERROR: <core> [route.c:1026]: fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:304
Feb 9 13:19:02 kamailio kamailio[3425]: ERROR: <core> [route.c:1026]: fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:308
Feb 9 13:19:02 kamailio kamailio[3425]: ERROR: <core> [route.c:1026]: fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:327
Feb 9 13:19:02 kamailio kamailio[3425]: ERROR: <core> [route.c:1026]: fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:333
Check the line reported in above logs.
Cheers,
Daniel
09.02.2010 11:12, Daniel-Constantin Mierla пишет:
Hi Dnitri,
On 2/9/10 9:19 AM, Dmitri wrote:
Hello Daniel,
I fetched source code from git using
# git clone --depth 1 git://git.sip-router.org/sip-router kamailio
# cd kamailio
# git checkout -b kamailio_3.0 origin/kamailio_3.0
But there is no MEMDBG option in Makefile.defs
devel:/usr/src/kamailio-3.0.0/kamailio# grep MEMDBG ./Makefile.defs
devel:/usr/src/kamailio-3.0.0/kamailio#
Should I add MEMDBG there ?
it is very strange. I just did the same steps and I get it. Can you
doublecheck there was no typo when you checkout and having the wrong
branch?
Cheers,
Daniel
BR,
Dmitri
09.02.2010 0:26, Daniel-Constantin Mierla пишет:
Then, open Makefile.defs file and search for MEMDBG, update the intial
value to 1:
MEMDBG ?= 1
The you re-compile/re-generate debs.
To doublecheck, once everything was re-installed, run kamailio -V, you
should see DBG_QM_MALLOC in flags string.
Set debug lever to some big value, say 5, test again and send over the
syslog messages along with the backtrace from the new core.
Thanks for assistance,
Daniel
--
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* http://www.asipto.com/
--
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* http://www.asipto.com/