Skip to content

keyspillm0pup SEGV running ASAN tests #234

@jaromil

Description

@jaromil

Running #153 detected this:

{
 "name":"keyspillm0pup",
 "type":"filter",
 "color_model":"rgba8888",
 "num_params":"13"
},
 "parameters":[
  {"name":"Key color","type":"color","explanation":"Key color that was used for chroma keying"},
  {"name":"Target color","type":"color","explanation":"Desired color to replace key residue with"},
  {"name":"Mask type","type":"string","explanation":"Which mask to apply [0,1,2,3]"},
  {"name":"Tolerance","type":"double","explanation":"Range of colors around the key, where effect is full strength"},
  {"name":"Slope","type":"double","explanation":"Range of colors around the key where effect gradually decreases"},
  {"name":"Hue gate","type":"double","explanation":"Restrict mask to hues close to key"},
  {"name":"Saturation threshold","type":"double","explanation":"Restrict mask to saturated colors"},
  {"name":"Operation 1","type":"string","explanation":"First operation 1 [0,1,2]"},
  {"name":"Amount 1","type":"double","explanation":""},
  {"name":"Operation 2","type":"string","explanation":"Second operation 2 [0,1,2]"},
  {"name":"Amount 2","type":"double","explanation":""},
  {"name":"Show mask","type":"bool","explanation":"Replace image with the mask"},
  {"name":"Mask to Alpha","type":"bool","explanation":"Replace alpha channel with the mask"}
 ]
}
AddressSanitizer:DEADLYSIGNAL
=================================================================
==26023==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x7f20cb2c1568 bp 0x7ffdbad72fe0 sp 0x7ffdbad72770 T0)
==26023==The signal is caused by a READ memory access.
==26023==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.
    #0 0x7f20cb2c1568 in strcmp ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:466
    #1 0x7f20cb0ee479 in f0r_set_param_value /home/jrml/devel/frei0r/src/filter/keyspillm0pup/keyspillm0pup.c:881
    #2 0x55e06c50bdcd in test_parameters(void*, void (*)(void*, void*, int), void (*)(f0r_param_info*, int), int, int) /home/jrml/devel/frei0r/test/frei0r-run.c:171
    #3 0x55e06c50c8ed in main /home/jrml/devel/frei0r/test/frei0r-run.c:370
    #4 0x7f20cac33ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #5 0x7f20cac33d64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #6 0x55e06c50b260 in _start (/home/jrml/devel/frei0r/test/frei0r-run+0x3260) (BuildId: a01640d73d2b6b674124aa6fc0fa8fdab427fa36)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../../../../src/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:466 in strcmp
==26023==ABORTING

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions