#20141: Cysignals tests fail
-------------------------------------------------+-------------------------
Reporter: vbraun | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: sage-7.1
Component: packages: standard | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: Reported upstream. Developers | Work issues:
acknowledge bug. | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Description changed by jdemeyer:
Old description:
> Unter certain conditions cysignal tests fail (building with
> `SAGE_CHECK=yes`). This is on the buildbot so directories are the same as
> always. Possibly triggered by a full rebuild:
> {{{
> [...]
> python -m doctest src/cysignals/*.pyx
> cd example && python setup.py build
> sys:1: RuntimeWarning: not adding directory '' to sys.path since it's
> writable by an untrusted group.
> Untrusted users could put files in this directory which might then be
> imported by your Python code. As a general precaution from similar
> exploits, you should not execute Python code from this directory
> Compiling cysignals_example.pyx because it changed.
> [1/1] Cythonizing cysignals_example.pyx
> running build
> running build_ext
> building 'cysignals_example' extension
> creating build
> creating build/temp.macosx-10.9-x86_64-2.7
> gcc -fno-strict-aliasing -I/Users/buildslave-
> sage/slave/sage_git/build/local/var/tmp/sage/build/python2-2.7.10.p0/include
> -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/Users/buildslave-
> sage/slave/sage_git/build/local/lib/python2.7/site-packages/cysignals
> -I/Users/buildslave-sage/slave/sage_git/build/local/include/python2.7 -c
> cysignals_example.c -o
> build/temp.macosx-10.9-x86_64-2.7/cysignals_example.o
> creating build/lib.macosx-10.9-x86_64-2.7
> gcc -bundle -undefined dynamic_lookup -L/Users/buildslave-
> sage/slave/sage_git/build/local/lib -Wl,-rpath,/Users/buildslave-
> sage/slave/sage_git/build/local/lib -L/Users/buildslave-
> sage/slave/sage_git/build/local/lib -Wl,-rpath,/Users/buildslave-
> sage/slave/sage_git/build/local/lib
> build/temp.macosx-10.9-x86_64-2.7/cysignals_example.o -L/Users
> /buildslave-sage/slave/sage_git/build/local/lib -o
> build/lib.macosx-10.9-x86_64-2.7/cysignals_example.so -lpari -Ddummy
> **********************************************************************
> File "src/cysignals/tests.pyx", line 494, in tests.pyx
> Failed example:
> print Popen(['python', '-c', cmd], stdout=PIPE,
> stderr=PIPE).communicate()[1] # doctest: +ELLIPSIS
> Expected:
> ------------------------------------------------------------------------
> ...
> ------------------------------------------------------------------------
> <BLANKLINE>
> Got:
> sys:1: RuntimeWarning: not adding directory '' to sys.path since it's
> writable by an untrusted group.
> Untrusted users could put files in this directory which might then be
> imported by your Python code. As a general precaution from similar
> exploits, you should not execute Python code from this directory
> ------------------------------------------------------------------------
> 0 signals.so 0x0000000108971885
> print_backtrace + 37
> ------------------------------------------------------------------------
> <BLANKLINE>
> **********************************************************************
> }}}
> PS: as always the cysignals.log is useless since it has many different
> compilations mashed together and there is no indication where it happened
> the first time.
New description:
Unter certain conditions cysignal tests fail (building with
`SAGE_CHECK=yes`). This is on the buildbot so directories are the same as
always. Possibly triggered by a full rebuild:
{{{
[...]
python -m doctest src/cysignals/*.pyx
cd example && python setup.py build
sys:1: RuntimeWarning: not adding directory '' to sys.path since it's
writable by an untrusted group.
Untrusted users could put files in this directory which might then be
imported by your Python code. As a general precaution from similar
exploits, you should not execute Python code from this directory
Compiling cysignals_example.pyx because it changed.
[1/1] Cythonizing cysignals_example.pyx
running build
running build_ext
building 'cysignals_example' extension
creating build
creating build/temp.macosx-10.9-x86_64-2.7
gcc -fno-strict-aliasing -I/Users/buildslave-
sage/slave/sage_git/build/local/var/tmp/sage/build/python2-2.7.10.p0/include
-DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/Users/buildslave-
sage/slave/sage_git/build/local/lib/python2.7/site-packages/cysignals
-I/Users/buildslave-sage/slave/sage_git/build/local/include/python2.7 -c
cysignals_example.c -o
build/temp.macosx-10.9-x86_64-2.7/cysignals_example.o
creating build/lib.macosx-10.9-x86_64-2.7
gcc -bundle -undefined dynamic_lookup -L/Users/buildslave-
sage/slave/sage_git/build/local/lib -Wl,-rpath,/Users/buildslave-
sage/slave/sage_git/build/local/lib -L/Users/buildslave-
sage/slave/sage_git/build/local/lib -Wl,-rpath,/Users/buildslave-
sage/slave/sage_git/build/local/lib
build/temp.macosx-10.9-x86_64-2.7/cysignals_example.o -L/Users/buildslave-
sage/slave/sage_git/build/local/lib -o
build/lib.macosx-10.9-x86_64-2.7/cysignals_example.so -lpari -Ddummy
**********************************************************************
File "src/cysignals/tests.pyx", line 494, in tests.pyx
Failed example:
print Popen(['python', '-c', cmd], stdout=PIPE,
stderr=PIPE).communicate()[1] # doctest: +ELLIPSIS
Expected:
------------------------------------------------------------------------
...
------------------------------------------------------------------------
<BLANKLINE>
Got:
sys:1: RuntimeWarning: not adding directory '' to sys.path since it's
writable by an untrusted group.
Untrusted users could put files in this directory which might then be
imported by your Python code. As a general precaution from similar
exploits, you should not execute Python code from this directory
------------------------------------------------------------------------
0 signals.so 0x0000000108971885
print_backtrace + 37
------------------------------------------------------------------------
<BLANKLINE>
**********************************************************************
}}}
PS: as always the cysignals.log is useless since it has many different
compilations mashed together and there is no indication where it happened
the first time.
'''Upstream bug''': https://github.com/sagemath/cysignals/issues/26
--
--
Ticket URL: <http://trac.sagemath.org/ticket/20141#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.