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

tests fail with Error code 245 #1838

Closed
yurivict opened this issue Aug 22, 2016 · 13 comments
Closed

tests fail with Error code 245 #1838

yurivict opened this issue Aug 22, 2016 · 13 comments

Comments

@yurivict
Copy link

On FreeBSD tests fail in 3.0.0:

testing/test_tmpdir.py ...........s
testing/test_unittest.py ......................*** Error code 245

It should at least say what is wrong.

@RonnyPfannschmidt
Copy link
Member

that looks like a operating system error - its not clear what happens on bsd there
can you provide more information?

@yurivict
Copy link
Author

While tracing system calls I see that this number is the return code of some shell process. It started early on, and then its error code is printed this way.

@RonnyPfannschmidt
Copy link
Member

does py.test actually fail, or is it just the output of your other process?
i have literally no idea what is happening, at a first uneducated guess however it looks like pytest is not at fault

@yurivict
Copy link
Author

I don't have any other process. The shell that fails is launched from under py.test.

@nicoddemus
Copy link
Member

@yurivict do you see this problem in other test suites, or only on pytest's?

@yurivict
Copy link
Author

Only in pytest. The problem existed before 3.0.0 too.

@The-Compiler
Copy link
Member

As others said, that really doesn't look like an error coming from pytest... Could you maybe try running strace on it and showing the output somewhere?

@yurivict
Copy link
Author

Error code came from the framework. I narrowed it down to this command failure:

# py.test -rfsxX test_unittest.py
=========================================================================== test session starts ============================================================================
platform freebsd10 -- Python 2.7.12, pytest-3.0.0, py-1.4.31, pluggy-0.3.1
rootdir: /usr/ports/devel/py-pytest/work/pytest-2.8.7, inifile: tox.ini
plugins: xdist-1.13.1, hypothesis-1.18.1
collected 39 items 

test_unittest.py ...............FF.....FBus error

Furthermore, failure happens in test_trial_testcase_runtest_not_collected inside the call reprec = testdir.inline_run()

@yurivict
Copy link
Author

It turned out that reinstalling py-cryptography helped. Was some random, unexplainable thing.

@nicoddemus
Copy link
Member

Thanks for the follow up!

@henryiii
Copy link

I'm getting the same error, with Plumbum and the python nightlies (all other versions work in Travis). Is there something in the (python 3.6) nightlies that might cause an incompatibility?

https://travis-ci.org/tomerfiliba/plumbum/jobs/160885522

@The-Compiler
Copy link
Member

245 is -11 which is a segmentation fault - so yeah, something in Plumbum or pytest is probably causing Python to segfault.

@RokeJulianLockhart
Copy link

You might find https://stackoverflow.com/q/72121892/9731176 useful.

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

6 participants