Opened 11 months ago

# Printing elements of p-adic extension fields sometimes crashes Sage

Reported by: Owned by: pbruin major sage-9.5 padics gh-walnutmonster N/A

### 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.