On 30.09.2015 01:14, Julian Taylor wrote:
> On 30.09.2015 01:01, Sandro Tosi wrote:
>> On Tue, Sep 29, 2015 at 8:05 AM, Julian Taylor

>> Is there an elegant way to instruct numpy testsuite to just ignore
>> errors on powerpc? I would really love to keep the test failures as
>> blocking on all Debian archs. I cant think of any smart way to keep
>> the 'set -e' for all archs except powerpc
>>
>> on way would be to just skip that test (in the last failure it was
>> always test_multiarray.TestClip.test_basic) but of course that doesnt
>> guarantee that other tests might fail after that (and we dont know
>> now) or that other test starts failing (because of the broken malloc
>> acting up).
>>
> 
> it would probably be best to disable the assert in
> lowlevel_strided_loops.c.src on powerpc depending cpp macros, that way
> it will also continue to work when users would want to use python-dbg on
> ppc if softfaulting is enabled.
> 

attached a patch
Description: disable asserts on ppc with broken malloc
 only longdouble affected will still work with softfaults
Author: Julian Taylor <jtaylor.deb...@googlemail.com>
--- a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
+++ b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src
@@ -7,6 +7,13 @@
  *
  * See LICENSE.txt for the license.
  */
+#ifdef __POWERPC__
+#ifndef NDEBUG
+// disable asserts malloc broken
+// https://sourceware.org/bugzilla/show_bug.cgi?id=6527
+#define NDEBUG
+#endif
+#endif
 
 #define PY_SSIZE_T_CLEAN
 #include "Python.h"

_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to