help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] 'ZeroDivide' error using debian package


From: Tommy Pettersson
Subject: Re: [Help-smalltalk] 'ZeroDivide' error using debian package
Date: Wed, 15 Aug 2018 11:10:47 +0200
User-agent: Mutt/1.10.1 (2018-07-13)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]