Opened 11 months ago

Last modified 5 weeks ago

#30879 new defect

Printing elements of p-adic extension fields sometimes crashes Sage

Reported by: pbruin Owned by:
Priority: major Milestone: sage-9.5
Component: padics Keywords:
Cc: gh-walnutmonster Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

In SageMath 9.2:

sage: n = 221
....: K = pAdicField(11, type='capped-rel', prec=n, print_mode='terse')
....: R.<x> = ZZ[]
....: g = x^110 + 2904*x^100 + 13431*x^90 + 10890*x^80 + 363*x^70 + 4719*x^60 + 14399*x^50 + 242*x^40 + 13794*x^30 + 14157*x^20 + 7865*x^10 + 858
....: L.<a> = K.extension(g)
....: M = L.change(prec=n)
....: for i in range(122):
....:     print(M(i))
0
1 + O(a^221)
2 + O(a^221)
3 + O(a^221)
4 + O(a^221)
5 + O(a^221)
6 + O(a^221)
7 + O(a^221)
8 + O(a^221)
9 + O(a^221)
10 + O(a^221)
11 + 7986*a^10 + 1331*a^20 + 1331*a^30 + 1331*a^50 + 10648*a^60 + 3993*a^80 + 1331*a^90 + 11979*a^100 + O(a^331)
12 + O(a^221)
...
109 + O(a^221)
110 + 6655*a^10 + 13310*a^20 + 13310*a^30 + 13310*a^50 + 3993*a^60 + 10648*a^80 + 13310*a^90 + 2662*a^100 + O(a^331)
111 + O(a^221)
112 + O(a^221)
113 + O(a^221)
114 + O(a^221)
115 + O(a^221)
116 + O(a^221)
117 + O(a^221)
118 + O(a^221)
119 + O(a^221)
120 + O(a^221)

At this point Sage crashes with a SIGABRT somewhere in NTL.

Change History (3)

comment:1 Changed 11 months ago by pbruin

  • Cc gh-walnutmonster added

comment:2 Changed 5 months ago by mkoeppe

  • Milestone changed from sage-9.3 to sage-9.4

Moving to 9.4, as 9.3 has been released.

comment:3 Changed 5 weeks ago by mkoeppe

  • Milestone changed from sage-9.4 to sage-9.5
Note: See TracTickets for help on using tickets.