https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118926

            Bug ID: 118926
           Summary: sarif-replay doesn't output notifications
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: SARIF
          Severity: normal
          Priority: P3
         Component: sarif-replay
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

sarif-replay with the output from the plugin.exp crash tests emits empty
output.

The files in question have e.g. this in the invocation:

"toolExecutionNotifications": [{"locations": [{"physicalLocation":
{"artifactLocation": {"uri":
"/home/david/coding/gcc-newgit-more-taint/src/gcc/testsuite/gcc.dg/plugin/crash-test-ice-in-header.h"},
                                                                    "region":
{"startLine": 5,
                                                                              
"startColumn": 3,
                                                                              
"endColumn": 16},
                                                                   
"contextRegion": {"startLine": 5,
                                                                               
      "snippet": {"text": "  inject_ice ();\n"}}},
                                               "logicalLocations": [{"name":
"test_inject_ice",
                                                                    
"fullyQualifiedName": "test_inject_ice",
                                                                    
"decoratedName": "test_inject_ice",
                                                                     "kind":
"function"}]}],
                                "message": {"text": "I'm sorry Dave, I'm afraid
I can't do that"},
                                "level": "error",
                                "properties": {"gcc/backtrace": {"frames":
[{"pc": "0x7f5679ec2362",
                                                                            
"function": "pass_crash_test::execute(function*)",
                                                                            
"filename":
"/home/david/coding/gcc-newgit-more-taint/src/gcc/testsuite/gcc.dg/plugin/crash_test_plugin.cc",
                                                                            
"lineno": 98}]}}}],


Presumably sarif-replay should do *something* for toolExecutionsNotifications
or toolConfigurationNotifications.

Reply via email to