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
semaphore errors on AIX 7.1 #56581
Comments
The same problem that was reported in bpo-9700 is appearing on AIX 7.1. It can be easily corrected by defining HAVE_BROKEN_POSIX_SEMAPHORES for AIX 7, like it is done for AIX 6. |
Patch attached. |
It is the fourth issue for the same problem, other issues:
The initial issue was related to semaphores and fork() (msg60639). Pass pshared=1 to sem_init() gets around this issue, but introduce new issues (msg60640). In general, locks and fork don't work together: there are still such issues in Python, see for example the issue bpo-6721. It looks like the behaviour of the semaphore depends on the underlying file system: see msg56228. Nobody is able to get more information, or maybe nobody wants to dig this issue. It would be better to get the real cause of the issue, and maybe report the issue to the editor of AIX. I don't have access to this AIX, and only few Python developers have access to this OS. At least, I would like to know if Sébastien Sablé (the author of the original patch) changed his opinion about this issue since 2007 ;-) |
Well, it looks like a libc or kernel bug, and we probably can't do |
So, what do we do now? |
Hi, sorry for the late reply. > STINNER Victor added the comment:
I haven't changed my mind concerning this patch and we still use it for Not using this patch will result in performance degradation and > Charles-François Natali added the comment: I agree with Charles-François that it is an AIX bug that should be I also agree that people should consider dropping this broken platform, regards |
The patch looks fine to me.
Ha, I've seen that. There are even proprietary desktop applications for AIX! |
New changeset f5a7d413638d by Charles-François Natali in branch '2.7': |
New changeset f0475f78d45c by Charles-François Natali in branch '3.2': |
New changeset 44a02d6b74e4 by Charles-François Natali in branch 'default': |
Patch committed: this should fix POSIX semaphores failures on AIX. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: