Bug #438

cache core dump on invalid config

Added by Madars Vitolins over 1 year ago.

Status:NewStart date:08/08/2019
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

svc TESTSV02_2=
    {
        "caches":[
                {
                    "cachedb":"db02_1",
                    "type":"UBF",
                    "keyfmt":"SV2_2$(T_STRING_FLD)",
                    "save":"*",
                    "rule":"1==1",
            "flags":"putrex,nosvcok" 
                }
            ]
    }


N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558701:_tpjsontoubf:exjson.c:0105:Type is 4
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558701:_tpjsontoubf:exjson.c:0127:Name: [T_STRING_3_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558701:_tpjsontoubf:exjson.c:0127:Name: [T_LONG_2_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558707:ndrx_regcomp:xregex.c:0080:Failed to eventexpr [*]: ^D<DB><FB><FA><9E>^?
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558707:x_cache_init:e_init.c:1454:CACHE: failed to compile [save] regex [*] for svc [TESTSV02_2], buffer index: 0 - see ndrx logs
N:NDRX:3:d190fd96:21026:7f9efc3bf940:001:20190808:180558707:et_error_fmt:perror.c:0291:ndrx_TPset_error_fmt: 4 (TPEINVAL) [CACHE: failed to compile [save] regex [*] for svc [TESTSV02_2], buffer index: 0 - see ndrx logs]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0105:Type is 4
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_STRING_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_FLOAT_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_SHORT_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_CHAR_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0105:Type is 4
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_STRING_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_FLOAT_FLD]
N:NDRX:2:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:_tpjsontoubf:exjson.c:0127:Name: [T_SHORT_FLD]
N:NDRX:3:d190fd96:21026:7f9efc3bf940:001:20190808:180558708:rx_tpgetrply:tpcall.c:0827:Reply cd: 16382, timestamp :1565276758 callseq: 1 from /dom1,clt,reply,testtool48,21026,1 type_id: 0 (UBF) - expected OK!
ASAN:DEADLYSIGNAL
=================================================================
==21026==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000000d8 (pc 0x7f9efa3e96db bp 0x000000000000 sp 0x7ffd99ea0a80 T0)
==21026==The signal is caused by a WRITE memory access.
==21026==Hint: address points to the zero page.
    #0 0x7f9efa3e96da in regexec (/lib/x86_64-linux-gnu/libc.so.6+0x1016da)
    #1 0x7f9efa938da3 in ndrx_regexec /home/mvitolin/projects/endurox/libnstd/exregex.c:101
    #2 0x7f9efaf6c5b2 in ndrx_cache_prepproj_ubf /home/mvitolin/projects/endurox/libatmi/atmi_cache_ubf.c:447
    #3 0x7f9efaf6d3ba in ndrx_cache_put_ubf /home/mvitolin/projects/endurox/libatmi/atmi_cache_ubf.c:566
    #4 0x7f9efaf6204c in ndrx_cache_save /home/mvitolin/projects/endurox/libatmi/atmi_cache_ops.c:336
    #5 0x7f9efaebdd93 in ndrx_tpcall /home/mvitolin/projects/endurox/libatmi/tpcall.c:1085
    #6 0x7f9efaeaf004 in tpcall /home/mvitolin/projects/endurox/libatmi/atmi.c:235
    #7 0x564f0c78a099 in main_loop /home/mvitolin/projects/endurox/atmitest/test048_cache/testtool48.c:134
    #8 0x564f0c78cbf9 in main /home/mvitolin/projects/endurox/atmitest/test048_cache/testtool48.c:547
    #9 0x7f9efa309b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #10 0x564f0c789029 in _start (/home/mvitolin/projects/endurox/atmitest/test048_cache/testtool48+0x3029)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/x86_64-linux-gnu/libc.so.6+0x1016da) in regexec
==21026==ABORTING

Also available in: Atom PDF