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
Intermittent segfaults on PPC64 AIX 3.x #69463
Comments
This buildbot has low free memory. Maybe some part of _decimal doesn't handle an allocation failure? http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/4173/steps/test/logs/stdio ... Current thread 0x00000001 (most recent call first): |
Usually these segfaults are toolchain bugs (I've had at least 8, Just a couple of observations:
|
The system has 128GB of memory. The process limits are set to unlimited for data. AIX defaults to 32 bit, although all processors are 64 bit, so the buildbot runs as 32 bit. What does low free memory in the buildbot mean? I'm surprised that Python requires a huge amount of memory for the tests. It's possible that Python needs to be built with special options to allow additional malloc space (-bmaxdata:0xN0000000). |
I've checked: test_decimal does not require abnormal amounts of We assumed that there is some memory limit on the buildbot, since The easiest way to debug this is to rerun the whole test suite http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/4173/steps/test/logs/stdio |
And the segfaults are apparently somewhat random. This is beginning http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/4183/steps/test/logs/stdio [129/399/3] test_email Current thread 0x00000001 (most recent call first): |
As we have seen with similar issues on other targets, this likely is due to the random order of tests. In another case, the timezone was not being restored properly by GLIBC. Another test is leaving the process in a state that somehow evokes this failure from test_decimal. |
I suggest to isolate tests using -j1: see my issue bpo-25285. (Currently, -j1 doesn't use subprocesses.) |
If you have time, you could use an explicit seed (and gdb): # test_email segfault: |
It seems to be the case, see Misc/README.AIX. This could explain the Are computed-gotos stable on gcc-AIX? The README recommends disabling I'm also not sure how well Python supports threads on AIX. Often |
Misc/README.AIX comments about XLC do not apply to GCC. One can adjust the memory space at normal link time with -Wl,-bmaxdata:0xN0000000. This trades off heap for shared memory segments. One does not need the extra ldedit stop, which stuffs the same value into the application header. |
The origin of the crash is unknown. Since I didn't see the crash recently, I close the issue. |
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: