The program attempted to divide a number by zero
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnu-smalltalk (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
=======
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan
2) The version of the package you are using, via 'apt-cache policy pkgname'
=======
apt-cache policy gnu-smalltalk
gnu-smalltalk:
Instalado: 3.2.5-1.3build1
Candidato: 3.2.5-1.3build1
Tabela de versão:
*** 3.2.5-1.3build1 500
500 http://
100 /var/lib/
gst --version
GNU Smalltalk version 3.2.5
Copyright 2009 Free Software Foundation, Inc.
Written by Steve Byrne (<email address hidden>) and Paolo Bonzini (<email address hidden>)
GNU Smalltalk comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Smalltalk under the terms of the
GNU General Public License. For more information, see the file named
COPYING.
Using default kernel path: /usr/share/
Using default image path: /usr/lib/
3) What you expected to happen
=======
I expect the value of pi as a result!
st> 180 degreesToRadians
4) What happened instead
=======
Object: 1 error: The program attempted to divide a number by zero
ZeroDivide(
SmallInteger(
Fraction>
Fraction class>>
Fraction>>- (Fraction.st:151)
FloatD(
FloatD(
FloatD(
FloatD(
This error also occurs with floating point numbers!
st> 0.05
Object: 1 error: The program attempted to divide a number by zero
ZeroDivide(
SmallInteger(
Fraction>
Fraction class>>
Fraction>>- (Fraction.st:151)
FloatD(
FloatD(Float"Global garbage collection... done"
)>>printOn: (Float.st:436)
FloatD(
FloatD(
I found a similar report in https:/
Debian Bug report logs - #906149
Thanks,
Marcelo Módolo