-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Seg Faults with Python in Linux for moduleobject.c Not Found #159
Comments
Is there anything I can do further to help troubleshoot this? |
@kaylangan Thanks for adding this to the backlog 👍 |
@maxim-lobanov Please let me know if I can provide any additional information to help resolve this. Thanks! |
Hello @danyeaw ! |
@maxim-lobanov Thanks for taking a look. It looks like my minimal reproducible example is no longer failing, but the original issue still exists: gaphor/gaphor#289 |
@danyeaw , Yes, please. |
@maxim-lobanov Ok, repo updated. Yes, it looks like it now is only with Python 3.7. I updated the description above to reflect that as well. |
@danyeaw , I have tried to investigate the issue deeper. Unfortunately, I didn't find the root cause but found that issue reproduces on both AzDO and GitHub images and only with Python 3.7. Do you have a chance to run this code on local Ubuntu environment with Python 3.7 and check if it works as expected? |
@maxim-lobanov Yes, all tests passed fine locally, and with Azure Pipelines before upgrading to GitHub Actions in Python 3.7 and Python 3.8. Since the issue seems to be fixed in Python 3.8 which is the main environment we are using to develop the app, I think we can go ahead and close this issue even if the problem still exists in earlier Python versions. Thanks for your help trying troubleshoot this. |
That may fix the intermittant segfaulting, based on actions/runner-images#159
Describe the bug
In the GitHub Actions ubuntu-latest runner, I am getting a segmentation fault while running some of my Python tests using Pytest. The tests all pass fine locally, all pass fine using Azure Pipelines, and all pass with macOS and Windows on GitHub Actions. I have tried both Python 3.7 and 3.8, I get the segmentation faults for both cases. Update on 2020-04-07, the issue is fixed in Python 3.8, but is still there in Python 3.7.
The errors happen with multiple versions of Pytest, including 4.x and 5.x releases. When running the tests with gdb, I am getting the error
Objects/moduleobject.c: No such file or directory.
I first posted this bug on the CommunityForum, and filing an Issue here was the recommendation.
Virtual environments affected
Expected behavior
No segmentation faults
Actual behavior
I have created a minimal reproducible example.
This is the output when I ran
xvfb-run pytest
through gdb on the GitHub Actions CI on the Gaphor project, which is where I first found the issue:The text was updated successfully, but these errors were encountered: