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

Change backtrace prefix of thread ID to 1-based #87

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

kpamnany
Copy link
Collaborator

@kpamnany kpamnany commented Sep 29, 2023

PR Description

Currently the output is 0-based, so we see:

...
thread (0) ijl_apply_generic at /nix/store/6lxp69px3vnal0csypfvm3lv2dwlllwv-julia-1.9.2/lib/julia/libjulia-internal.1.9.dylib (unknown line)
thread (0) do_call at /nix/store/6lxp69px3vnal0csypfvm3lv2dwlllwv-julia-1.9.2/lib/julia/libjulia-internal.1.9.dylib (unknown line)
...

In Julia, thread ID is 1-based, so this output is wrong. This PR fixes that.

This has a messy history. The following commits should be merged with this one when we next upgrade:

  • 0457f8995eb49158adcab9b12d21d9d31e9e05d4
  • e015382634953445155c9fa4f51aba05235e8313
  • 8f409da5c564d8fd9e9a2d0fe19235a710fedd09

Checklist

Requirements for merging:

@github-actions github-actions bot added port-to-v1.10 This change should apply to Julia v1.10 builds port-to-master This change should apply to all future Julia builds port-to-v1.9 This change should apply to Julia v1.9 builds labels Sep 29, 2023
@nickrobinson251
Copy link
Member

This is a fix to a RAI-specific patch, right? can you link the PRs that this is building on (to help make the porting to future versions easier)? is it e015382 and #33?

@nickrobinson251
Copy link
Member

btw, why haven't we fixed this upstream? i can't tell from JuliaLang#51056 if there's agreement on a solution or not? (and if there is, whether we just need to find the time to go do it?)

@kpamnany
Copy link
Collaborator Author

kpamnany commented Oct 2, 2023

We perhaps should do this upstream, but as you observe, there is some disagreement in the upstream issue. I'm not sure I like this solution very much -- it does make backtraces harder to read. I'll open a JIRA ticket to upstream this.

@kpamnany
Copy link
Collaborator Author

kpamnany commented Oct 2, 2023

@kpamnany kpamnany merged commit 1dd5dbf into v1.9.2+RAI Oct 2, 2023
6 checks passed
@kpamnany kpamnany deleted the kp-correct-tid branch October 2, 2023 22:24
@kpamnany kpamnany removed port-to-v1.9 This change should apply to Julia v1.9 builds port-to-v1.10 This change should apply to Julia v1.10 builds labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port-to-master This change should apply to all future Julia builds
Projects
None yet
2 participants