Skip to content

Fix JSON formatting in crash.json template #903

Open
@Kartikayy007

Description

@Kartikayy007

Title: Invalid JSON Syntax in crash.json Template

Description

The source_code field in crash.json template has invalid syntax due to missing quotes and improper escaping, causing parse errors in generated reports.

Current implementation:

"source_code": {{ get_benchmark_final_target_code(sample.id) | replace('\\n', '\\\\n')}}

Reference

This issue was identified in #891 "Anomalies in recent experiments"

Incorrect JSON content

https://llm-exp.oss-fuzz.com/Result-reports/scheduled/2025-03-15-weekly-all-1/benchmark/output-cppcheck-_zn8cppcheck5checkerk15filewithdetails/crash.json

        "coverage_report": "#",
        "stacktrace": "/stacktrace",
        "target_binary": "/target_binary",
        "reproducer": "/artifacts",
        "run_log": "run.log",
        "source_code": ,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions