-
Notifications
You must be signed in to change notification settings - Fork 33
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
Ix{Int}.index: Index (23637) out of range ((0,164)) #58
Comments
@maoe What does |
No, not really. Unfortunately I don't have time to debug this today. Please feel free to take a look if you're interested. |
@Unselfish I looked into https://github.com/haskell/ThreadScope/files/4376429/log4.txt briefly and found that the header of the file seemed broken. If you look at hexdump of log4.txt, the beginning of the file looks like this:
The first row (00000000) seems fine. The problem I think is the second row (00000010). The first 4 bytes of the row is a Word32 which represents the length of the next field, which is the string describing the event, "Create thread". The value is While I haven't looked at the other eventlogs yet, I suspect your GHC or something (storage layer or memory modules?) is not working correctly. Can you try different versions of GHC or run the same program on a different machine, and see if the issue persists? |
I see this error on Linux when the eventlog'd program is run with a large environment (about 69 kb, but I suspect the magic number is 2^16 bytes). |
@ttuegel What do you mean by a large environment? |
@maoe A large process environment, the environment variables. The |
@ttuegel I see. You're right that a payload of an eventlog message is limited to 2^16 bytes. See postPayloadSize in the RTS. This feature was removed as of GHC 8.8.1 though. And I suppose this issue is something different because as I explained earlier the eventlog (https://github.com/haskell/ThreadScope/files/4376429/log4.txt) has a broken event header (rather than a payload). |
You can also run into this overflow if you have a command line longer than 2^16. |
The eventlog file uploaded by @Unselfish at haskell/ThreadScope#108 (comment) causes
ghc-events inc
to fail:It was produced with GHC 8.6.5 on Windows.
The text was updated successfully, but these errors were encountered: