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
py3: cysignals fails its test suite #28726
Comments
comment:1
The change diff --git a/build/pkgs/cysignals/spkg-check b/build/pkgs/cysignals/spkg-check
index c94041e096..37fa0dddfc 100644
--- a/build/pkgs/cysignals/spkg-check
+++ b/build/pkgs/cysignals/spkg-check
@@ -4,4 +4,4 @@ if [ -z "$SAGE_LOCAL" ]; then
exit 1
fi
-cd src && $MAKE check-install
+cd src && $MAKE check-install PYTHON=sage-python23 helps testing get started, but the test suite still fails on OS X. I see this message in the log file:
|
comment:2
I'm seeing that one, too. Only admins can increase the stack size, there is nothing that the testsuite can do about it (except not running the test, does it really need that big a stack?) |
comment:4
Maybe you can turn your diff already into a patch, we should surely be using the correct python version. |
Commit: |
comment:6
I don't understand the stack size issue. The following patch is a bad idea since it completely disables the stack size limitation put in by cysignals' diff --git a/build/pkgs/cysignals/patches/stacksize.patch b/build/pkgs/cysignals/patches/stacksize.patch
new file mode 100644
index 0000000000..63a11ba07f
--- /dev/null
+++ b/build/pkgs/cysignals/patches/stacksize.patch
@@ -0,0 +1,13 @@
+diff --git a/rundoctests.py b/rundoctests.py
+index 94d58e1..3c4f8c3 100755
+--- a/rundoctests.py
++++ b/rundoctests.py
+@@ -71,7 +71,7 @@ if os.name != 'nt':
+ import resource
+ # Limit stack size to avoid errors in stack overflow doctest
+ stacksize = 1 << 20
+- resource.setrlimit(resource.RLIMIT_STACK, (stacksize, stacksize))
++ # resource.setrlimit(resource.RLIMIT_STACK, (stacksize, stacksize))
+
+ # Disable core dumps
+ resource.setrlimit(resource.RLIMIT_CORE, (0, 0)) New commits:
|
comment:7
I'm not marking this ready for review, because even with the patch specifying the correction version of Python, it doesn't pass its test suite. |
comment:8
On the other hand, with just this patch, tests do pass on my ubuntu virtual machine. So maybe the stack size issue is OS X only? |
comment:9
So we are trying to reduce the stack size, not increase it. 1MB is pretty low. Whats the output of
|
comment:10
|
comment:11
and
I get the same error if I use |
comment:12
Is this a recurrence of sagemath/cysignals#71? |
comment:13
Or maybe it's https://bugs.python.org/issue34602, and upgrading Python will help. |
comment:14
I installed Python 3.7.5, and I still hit this problem. |
comment:15
Do you mind opening a cysignals issue for the OSX kernel oddity / bug? The ValueError should probably just be caught and discarded. But we could merge this in the meantime... |
Author: John Palmieri |
Reviewer: Volker Braun |
comment:17
Okay, I opened up a cysignals issue. |
comment:18
Thanks! Bug is at sagemath/cysignals#118 for future historians ;-) |
Changed branch from u/jhpalmieri/cysignals-python-version to |
With a Python 3 build of Sage,
./sage -f -c cysignals
fails because the test suite doesn't use the correct version of Python.CC: @jdemeyer
Component: packages: standard
Author: John Palmieri
Branch/Commit:
f4f3c86
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/28726
The text was updated successfully, but these errors were encountered: