Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 4,838
    • Issues 4,838
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 452
    • Merge requests 452
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #18438

Closed
Open
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