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

TestAclExtensions::test_acl_init_copy_ext_invalid Fatal Python error: Segmentation fault in 0.6.0 on s390x #20

Open
szpak opened this issue Jun 20, 2022 · 1 comment

Comments

@szpak
Copy link

szpak commented Jun 20, 2022

I had missed the release 0.6.0 and I've just made an RPM update in Fedora to see if it is compatible with Python 3.11. The build and all the tests passes with Python 3.11.0~b3-3.fc37 in general, however, on x390x (at least) one test fails with "Segmentation fault":

...
tests/test_acls.py::TestAclExtensions::test_acl_init_copy_ext PASSED     [ 43%]
tests/test_acls.py::TestAclExtensions::test_acl_init_copy_ext_invalid Fatal Python error: Segmentation fault
Current thread 0x000003ffbe472720 (most recent call first):
  File "/builddir/build/BUILD/pylibacl-0.6.0/tests/test_acls.py", line 526 in test_acl_init_copy_ext_invalid
  File "/usr/lib/python3.11/site-packages/_pytest/python.py", line 192 in pytest_pyfunc_call
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/python.py", line 1761 in runtest
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 166 in pytest_runtest_call
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 259 in <lambda>
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 338 in from_call
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 258 in call_runtest_hook
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 219 in call_and_report
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 130 in runtestprotocol
  File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 111 in pytest_runtest_protocol
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 347 in pytest_runtestloop
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 322 in _main
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 268 in wrap_session
  File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 315 in pytest_cmdline_main
  File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3.11/site-packages/_pytest/config/__init__.py", line 164 in main
  File "/usr/lib/python3.11/site-packages/_pytest/config/__init__.py", line 187 in console_main
  File "/usr/lib/python3.11/site-packages/pytest/__main__.py", line 5 in <module>
  File "<frozen runpy>", line 88 in _run_code
  File "<frozen runpy>", line 198 in _run_module_as_main
Extension modules: posix1e (total: 1)
/var/tmp/rpm-tmp.OGlJIi: line 46: 372554 Segmentation fault      (core dumped) python3 -m pytest tests -v

It passes on the other architectures (with the same Python version). I wonder, if I should just disable that test for s390x builds or it might suggest some deeper problem?

A link to the koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=88507670

@iustin
Copy link
Owner

iustin commented Oct 8, 2022

I'm not familiar with Koji, but I don't see a link to the core file. Would you be able to provide one, or at least a backtrace?

Segfault means that most likely the code does something wrong, with regards to (memory alignment? I don't know s390), but without more info I don't know where to start.

Thanks!

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

No branches or pull requests

2 participants