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

Fix io_setup undefined function #17

Merged
merged 1 commit into from
Feb 7, 2022
Merged

Conversation

dizballanze
Copy link
Contributor

No description provided.

@mosquito mosquito merged commit 2839204 into mosquito:master Feb 7, 2022
@@ -6,10 +6,13 @@ function build_wheel() {
/opt/python/$1/bin/pip wheel . -f . -w dist
}

cd /app/src
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooops

@@ -964,6 +964,25 @@ PyMODINIT_FUNC PyInit_linux_aio(void) {
return NULL;
}

aio_context_t temp_ctx;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For > 0.9.3, we're getting the Error on io_setup with code 22 ImportError (while working fine in other Linux environments). For this EINVAL, man 2 io_setup reads:

ctx_idp is not initialized, or the specified nr_events exceeds internal limits. nr_events should be greater than 0.

And indeed, there might be no guarantee that temp_ctx is initialized here - in contrast to the "production code" in AIOContext_init. Explicitly also setting it to 0 might thus be advisable in any case.

[fs]

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

Successfully merging this pull request may close these issues.

None yet

3 participants