Le lundi 6 juillet 2015 14:07:50 UTC+2, Jean-Pierre Flori a écrit : > > > > Le lundi 6 juillet 2015 13:37:13 UTC+2, François a écrit : >> >> On power7 I get 2 doctest failures: >> frb15@p2n14-c /hpc/scratch/frb15/sandbox/sage-6.8.beta7 :./sage -t --long >> --warn-long 95.7 src/sage/symbolic/expression.pyx >> Running doctests with ID 2015-07-06-23-32-31-283f339e. >> Git branch: develop >> Using --optional=mpir,python2,sage,scons >> Doctesting 1 file. >> sage -t --long --warn-long 95.7 src/sage/symbolic/expression.pyx >> ********************************************************************** >> File "src/sage/symbolic/expression.pyx", line 10875, in >> sage.symbolic.expression.Expression._plot_fast_callable >> Failed example: >> plot(s) >> Expected: >> Graphics object consisting of 1 graphics primitive >> Got: >> Graphics object consisting of 0 graphics primitives >> ********************************************************************** >> 1 item had failures: >> 1 of 10 in sage.symbolic.expression.Expression._plot_fast_callable >> [2460 tests, 1 failure, 62.46 s] >> ---------------------------------------------------------------------- >> sage -t --long --warn-long 95.7 src/sage/symbolic/expression.pyx # 1 >> doctest failed >> ---------------------------------------------------------------------- >> Total time for all tests: 63.4 seconds >> cpu time: 48.1 seconds >> cumulative wall time: 62.5 seconds >> frb15@p2n14-c /hpc/scratch/frb15/sandbox/sage-6.8.beta7 :./sage -t --long >> --warn-long 95.7 src/sage/graphs/distances_all_pairs.pyx >> Running doctests with ID 2015-07-06-23-34-27-43999aaf. >> Git branch: develop >> Using --optional=mpir,python2,sage,scons >> Doctesting 1 file. >> sage -t --long --warn-long 95.7 src/sage/graphs/distances_all_pairs.pyx >> ********************************************************************** >> File "src/sage/graphs/distances_all_pairs.pyx", line 1205, in >> sage.graphs.distances_all_pairs.diameter >> Failed example: >> G.diameter(method='iFUB') >> Expected: >> 0 >> Got: >> Exception OverflowError: 'value too large to convert to uint32_t' in >> 'sage.graphs.distances_all_pairs.diameter_iFUB' ignored >> 0 >> ********************************************************************** >> 1 item had failures: >> 1 of 17 in sage.graphs.distances_all_pairs.diameter >> [68 tests, 1 failure, 1.66 s] >> ---------------------------------------------------------------------- >> sage -t --long --warn-long 95.7 src/sage/graphs/distances_all_pairs.pyx >> # 1 doctest failed >> ---------------------------------------------------------------------- >> Total time for all tests: 1.8 seconds >> cpu time: 0.4 seconds >> cumulative wall time: 1.7 seconds >> >> >> So I see it too. >> >> François >> >> > On 4/07/2015, at 04:55, Jean-Pierre Flori <[email protected]> wrote: >> > >> > When running on a ppc64 machine, I get: >> > sage -t --warn-long 97.8 src/sage/graphs/distances_all_pairs.pyx >> > ********************************************************************** >> > File "src/sage/graphs/distances_all_pairs.pyx", line 1205, in >> sage.graphs.distances_all_pairs.diameter >> > Failed example: >> > G.diameter(method='iFUB') >> > Expected: >> > 0 >> > Got: >> > Exception OverflowError: 'value too large to convert to uint32_t' >> in 'sage.graphs.distances_all_pairs.diameter_iFUB' ignored >> > 0 >> > ********************************************************************** >> > 1 item had failures: >> > 1 of 17 in sage.graphs.distances_all_pairs.diameter >> > [68 tests, 1 failure, 0.32 s] >> > >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "sage-release" 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 http://groups.google.com/group/sage-release. >> > For more options, visit https://groups.google.com/d/optout. > > > I would say that this is a Cython bug: > (gdb) c > Continuing. > > Breakpoint 3, > __pyx_f_4sage_6graphs_19distances_all_pairs_diameter_lower_bound_multi_sweep > ( > __pyx_v_n=__pyx_v_n@entry=1, > __pyx_v_p_vertices=__pyx_v_p_vertices@entry=0x105e79a0, > __pyx_v_source=__pyx_v_source@entry=0) > at > /home/jpflori/sage.git/src/build/cythonized/sage/graphs/distances_all_pairs.c:11220 > 11220 __pyx_t_2 = __Pyx_PyInt_From_uint32_t(__pyx_v_s); if > (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1011; > __pyx_clineno = __LINE__; goto __pyx_L1_error;} > (gdb) s > __Pyx_PyInt_From_uint32_t (value=<optimized out>) > at > /home/jpflori/sage.git/src/build/cythonized/sage/graphs/distances_all_pairs.c:18830 > 18830 return PyInt_FromLong((long) value); > (gdb) print sizeof(long) > > At the end of the diameter_lower_bound_multi_sweep function, Cython builds > a tuple with four uint32_t's. > To do so, it converts the uint32_t's to PyInt's using > __Pyx_PyInt_From_uint32_t which seems to call PyInt_FromLong((long) value). > Then Cython wants to do a new uint32_t from a too large value when > assigning values from the tuple. > Or this is a GCC bug...
-- You received this message because you are subscribed to the Google Groups "sage-release" 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 http://groups.google.com/group/sage-release. For more options, visit https://groups.google.com/d/optout.
