SIGABRT when taking the multiplicative inverse of the additive identity in a finite field

30 views
Skip to first unread message

Demi Obenour

unread,
Jun 19, 2017, 5:32:47 AM6/19/17
to sage-devel
Consider the following Sage code
#!/usr/bin/env sage

FiniteField(2^128)()^-1
This crashes Sage with SIGABRT.  While there is no answer mathematically, this should throw an exception, not cause a C-level crash.  (Alternatively, one could return 0 here; this is what the Rijndael S-box does.)

Dima Pasechnik

unread,
Jun 19, 2017, 5:43:50 AM6/19/17
to sage-devel
yes, it's a bug, I've opened https://trac.sagemath.org/ticket/23276
to deal with it.
Reply all
Reply to author
Forward
0 new messages