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

Add Base prefix to list_deletefirst! #50852

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

jonathan-conder-sm
Copy link
Contributor

I noticed this when debugging a bizarre issue, probably caused by some earlier undefined behaviour, and I haven't been able to come up with simple reproduction steps. It seems like current_task().queue is basically never set after wait(). Based on #32903 it seems like raising SIGINT at the right time might trigger this.

In any case, if you manage to trigger it, list_deletefirst! will fail because it is out of scope. I double-checked this using @eval Sockets list_deletefirst! with Julia 1.9.2 (and there's only been one change to Sockets since then).

I noticed this when debugging a bizarre issue, probably caused by some
earlier undefined behaviour, and I haven't been able to come up with
simple reproduction steps. It seems like `current_task().queue` is
basically never set after `wait()`. Based on
JuliaLang#32903
it seems like raising SIGINT at the right time might trigger this.

In any case, if you manage to trigger it, `list_deletefirst!` will fail
because it is out of scope. I double-checked this using
`@eval Sockets list_deletefirst!`.
@jonathan-conder-sm
Copy link
Contributor Author

jonathan-conder-sm commented Aug 9, 2023

Probably not that important since this code basically never runs, but is it an issue that list_deletefirst! is using the IntrusiveLinkedList directly? I feel like it should be going through the IntrusiveLinkedListSynchronized

@KristofferC KristofferC merged commit fd695a7 into JuliaLang:master Aug 14, 2023
4 of 7 checks passed
@jonathan-conder-sm jonathan-conder-sm deleted the list_deletefirst branch August 14, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants