mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
btest/spicy: Make replaces-conflicts trigger replaces code path
The current test attempts to instantiate two spicy::SSH_1 protocol analyzers in the .evt file. The intention likely was to use two distinct protocol analyzer both trying to replace the builtin SSH analyzer. Coincidentally, fixing this happens to workaround TSAN errors tickled by the FatalError() call while loading the .hlto with two identically named analyzers. $ cat .tmp/spicy.replaces-conflicts/output error: redefinition of protocol analyzer spicy::SSH_1 ThreadSanitizer: main thread finished with ignores enabled One of the following ignores was not ended (in order of probability) Ignore was enabled at: #0 __llvm_gcov_init __linker___d192e45c25d5ee23-484d3e0fc2caf5b4.cc (ssh.hlto+0x34036) (BuildId: 091934ca4da885e7) #1 __llvm_gcov_init __linker___d192e45c25d5ee23-484d3e0fc2caf5b4.cc (ssh.hlto+0x34036) (BuildId: 091934ca4da885e7) ... I was tempted to replace FatalError() with Error() and rely on zeek-setup.cc's early exiting on any reporter errors, but this seems easier for now. Relates to #3865.
This commit is contained in:
parent
25f65a705f
commit
bae15230bb
2 changed files with 2 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||||
fatal error: redefinition of protocol analyzer spicy::SSH_1
|
fatal error: spicy::SSH_2: protocol analyzer SSH is already mapped to a different analyzer; cannot replace an analyzer multiple times
|
||||||
|
|
|
@ -16,7 +16,7 @@ protocol analyzer spicy::SSH_1 over TCP:
|
||||||
parse with SSH::Banner,
|
parse with SSH::Banner,
|
||||||
replaces SSH;
|
replaces SSH;
|
||||||
|
|
||||||
protocol analyzer spicy::SSH_1 over UDP:
|
protocol analyzer spicy::SSH_2 over UDP:
|
||||||
parse with SSH::Banner,
|
parse with SSH::Banner,
|
||||||
replaces SSH;
|
replaces SSH;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue