[sr-dev] crash at startup if flag is not defined

Juha Heinanen jh at tutpro.com
Sun May 22 10:13:19 CEST 2011


i had forgotten to define an m4 macro and had in config

            if (isflagset(AUTHORIZED) || ...

that causes sr to crash at startup:

May 22 11:07:14 sip kernel: [106986.110502] sip-proxy[12858]: segfault at 4 ip b66cce71 sp bfca9bb0 error 4 in htable.so[b66c6000+f000]
Not starting sip-proxy: invalid configuration file!

 0(12858) INFO: pv [pv_shv.c:61]: locks array size 16
 0(12858) : <core> [cfg.y:3440]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 3837, column 37: flag not declared
ERROR: bad config file (1 errors)

i think i have earlier reported same kind of crash in another
situation. this is using master version.  why does sr crash in htable.so
module that has nothing to do with this flag?

-- juha



More information about the sr-dev mailing list