Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse failure #17

Open
ndmitchell opened this issue Mar 26, 2019 · 5 comments
Open

Parse failure #17

ndmitchell opened this issue Mar 26, 2019 · 5 comments

Comments

@ndmitchell
Copy link

The attached file gives the error endOfInput

main.zip

@maoe
Copy link
Owner

maoe commented Mar 26, 2019

Thanks for reporting. The profiling report seems to be broken at the line 802 and 803:

        fromGroup                 System.Console.CmdArgs.Explicit.Type         System\Console\CmdArgs\Explicit\Type.hs:60:1-51                5988          3    0.0    0.0     0.0    0.0      0       448
        modeGroupModes            System.Console.CmdArgs.Explicit.Type         System\Console\CmdArgs\Explicit\Type.hs:82:6-19                5985          3    0.0    0.0     0.0    0.0      0         0
sole\CmdArgs\Explicit\Type.hs:82:6-19                5991          3    0.0    0.0     0.0    0.0      0         0
eneral.Util                                 src\General\Util.hs:360:1-61                                   6201          0    0.0    0.0     0.0    0.0      0       112
 CAF:lvl32_r2mdh                                  General.Store                                <no location info>                                             3306          0    0.0    0.0     0.0    0.0      0         0
  verString                                       General.Store                                src\General\Store.hs:41:1-94                                   6198          0    0.0    0.0     0.0    0.0      0       680

Maybe it's a bug in GHC RTS?

@ndmitchell
Copy link
Author

Quite possibly - but it was remarkably persistent with GHC 8.6.3 on Windows running Hoogle. I think I got 10 corrupt profiles in a row.

@maoe
Copy link
Owner

maoe commented Mar 26, 2019

#12 seems to be the same issue.

Do you get the same issue with other GHC versions? I think it's time to file a ticket upstream.

Unfortunately I don't think there's a good way to workaround this issue in ghc-prof. The missing parts (cost center names and module names) are crucial to reconstruct the cost center stack. Would it be better if the library failed with a descriptive error message?

@ndmitchell
Copy link
Author

The ticket #12 was about 8.2.2 - seems like a persistent bug to me, happening across multiple versions. I was using -N as well. Sounds like something that might be the culprit.

@ndmitchell
Copy link
Author

I think preparing a ticket for upstream GHC would be very valuable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants