Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,411
    • Issues 5,411
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 606
    • Merge requests 606
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #18438
Closed
Open
Issue created Jul 10, 2020 by Andreas Klebinger@AndreasKDeveloper

GHCs json profiling output is not escaped correctly.

Summary

Quoting from stack overflow

JSON is pretty liberal: The only characters you must escape are \, ", and control codes (anything less than U+0020).

But GHC produces strings like:

"arguments": ["E:\ghc_inferTags\_prof\stage1\bin\ghc.exe", "-O", "-fforce-recomp", "Distribution/Compat/Lens.hs"],

Steps to reproduce

Use +RTS -pj on a profiling enabled program.

Expected behavior

The json should be properly escaped.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking