#14098: zn_poly-0.9.p9 fails at least one its tests on power7
---------------------------+------------------------------------------------
Reporter: fbissey | Owner: drkirkby
Type: defect | Status: new
Priority: major | Milestone: sage-5.7
Component: porting | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------+------------------------------------------------
Comment (by fbissey):
I am certainly poking at that. The value of ZNP_mpn_smp_kara_thresh is
computed by the tuning code and it is clearly allowed to be equal to
SIZE_MAX
{{{
// generate tuning.c file
printf (header);
x = ZNP_mpn_smp_kara_thresh;
printf ("size_t ZNP_mpn_smp_kara_thresh = ");
printf (x == SIZE_MAX ? "SIZE_MAX;\n" : "%lu;\n", x);
}}}
So someone potentially set themselves for trouble in the test. However
after inserting a few printf in the code the mystery deepens
{{{
mpn_smp_basecase()... ok
mpn_smp_kara()... test: src/mpn_mulmid.c:241: ZNP_mpn_smp_kara: Assertion
`n >= 2' failed.
maxtrial= 98 SIZE_MAX= 18446744073709551615
maxtrial= 98
n=31
n=24
n=38
n=40
n=74
n=24
n=28
n=32
n=77
n=67
n=76
n=64
n=13
n=17
n=90
n=42
n=47
n=79
n=21
n=82
n=32
n=10
n=67
n=25
n=26
n=39
n=77
n=90
n=97
n=7
n=74
n=59
n=70
n=87
n=23
n=6
n=70
n=97
n=78
n=74
n=57
n=53
n=28
n=21
n=51
n=33
n=41
n=2
n=88
n=57
n=56
n=96
n=46
n=38
n=69
n=93
n=11
n=61
n=24
n=25
n=45
n=46
n=6
n=44
n=32
n=93
n=59
n=45
n=46
n=31
n=91
n=32
n=45
n=45
n=90
n=61
n=78
n=47
n=33
n=75
n=71
n=37
n=92
n=94
n=50
n=84
n=8
n=43
n=15
n=31
n=31
make: *** [check] Aborted (core dumped)
Error running zn_poly's quick test suite ('make check').
}}}
I didn't have the assertion before and after putting these we Abort rather
than segfault.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14098#comment:8>
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 http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.