Re: 'ZeroDivide' error using debian package

Tommy Pettersson <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <20180815091047.GA4793@kelsos>
On Mon, Aug 13, 2018 at 09:48:30AM +0100, Holger Freyther wrote:
> Could you try http://git.savannah.gnu.org/cgit/smalltalk.git/commit/?id=72ada189aba0283c551ead16635c1983968080b8?

I have used system libsigsegv libffi and libltdl, because this is what the
Gentoo distribution uses, and their gnu-smalltalk package has the
ZeroDivide Exception problem (I have filed a bug report at
bugs.gentoo.org).

For 3.2.5 adding -no-pie solves fixes the problem.

For 72ada189aba0283c551ead16635c1983968080b8 I don't get the ZeroDivide exception.



; git checkout tags/3.2.5
; ./configure --with-system-libsigsegv --with-system-libffi --with-system-libltdl --with-readline --with-gmp --without-tcl
; make
; ./gst
st> 0.05
Object: 1 error: The program attempted to divide a number by zero                                            
ZeroDivide(Exception)>>signal (ExcHandling.st:254)                                                           
SmallInteger(Number)>>zeroDivide (SysExcept.st:1426)                                                         
Fraction>>setNumerator:setDenominator: (Fraction.st:485)                                                     
Fraction class>>numerator:denominator: (Fraction.st:66)                                                      
Fraction>>- (Fraction.st:151)                                                                                
FloatD(Float)>>printOn:special: (Float.st:533)                                                               
FloatD(Float)>>printOn: (Float.st:436)                                                                       
FloatD(Object)>>printString (Object.st:534)                                                                  
FloatD(Object)>>printNl (Object.st:571)                                                                      


; git checkout tags/3.2.5
; export CFLAGS='-no-pie'
; export LDFLAGS='-no-pie'
; ./configure --with-system-libsigsegv --with-system-libffi --with-system-libltdl --with-readline --with-gmp --without-tcl
; make
; ./gst
st> 0.05
0.05


; git checkout 72ada189aba0283c551ead16635c1983968080b8
; ./configure --with-system-libsigsegv --with-system-libffi --with-system-libltdl --with-readline --with-gmp --without-tcl
; make
; ./gst
st> 0.05
0.05
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.