
Hi, running tests on a python package I suddenly get: [ 293s] ./tests/run.sh: line 6: 31240 Segmentation fault (core dumped) pytest -v tests/test_gui_website.py Is this coming from (an outdated) pytest?

Hi Axel, Am 06.06.21 um 16:24 schrieb Axel Braun:
Hi,
running tests on a python package I suddenly get:
[ 293s] ./tests/run.sh: line 6: 31240 Segmentation fault (core dumped) pytest -v tests/test_gui_website.py
Is this coming from (an outdated) pytest?
Very unlikely. In that case many many more packages in Factory and d:l:p would also segfault. Did you check the coredump? The name "_gui_" indicates, that the package needs a display. Do you use pytest-xvfb or xvfb-run? Those sometimes produce segfaults if they cannot open a display which suits their needs. Sometimes a font is missing or the display is simply not large enough (try `xvfb-run --server-args "-screen 0 1920x1080x24"`) If you track it down, please help in fixing it upstream or in the offending package. Cheers, Ben

Dne 06. 06. 21 v 17:03 Ben Greiner napsal(a):
[ 293s] ./tests/run.sh: line 6: 31240 Segmentation fault (core dumped) pytest -v tests/test_gui_website.py
Is this coming from (an outdated) pytest?
Very unlikely. In that case many many more packages in Factory and d:l:p would also segfault.
I agree. I have seen like one coredump from /usr/bin/python* ever. Most coredumps come from C extensions. Having GUI in the name of the test it is almost certain that some C extension is involved. Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mcepl@ceplovi.cz GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 For those of you who think we are descendents from those cavemen who stood and fought with dinosaurs, you must be nuts, we are descendents from the ones who ran like hell to live.
participants (3)
-
Axel Braun
-
Ben Greiner
-
Matěj Cepl