Hello,  
We have seen ksh93t+ 2010-03-05 gets a floating point exception because of a 
division by zero in ed_read 0r ed_getchar. I think one of following two lines 
causing this.

File: edit/edit.c
   830             n = (ep->e_plen+ep->e_cur)/++ep->e_winsz;
                 Or
   833             if(ep->e_multiline && newsize>ep->e_winsz && \       
                             (lastpos.line=(ep->e_plen+ep->e_peol)/ep->e_winsz))

Register output: ed_read:1c0 g1=0xffffffff l0=12 l5=0 l6=1

Signals:
...
FPE     blocked,caught  sh_fault        0
...
 
Stack:
ed_read+0x1a8:                  ld        [%i0 + 0x30c], %g1
ed_read+0x1ac:                  add       %o5, %o7, %l0
ed_read+0x1b0:                  sra       %l0, 0x1f, %i5
ed_read+0x1b4:                  add       %g1, 0x1, %l5
ed_read+0x1b8:                  st        %l5, [%i0 + 0x30c]
ed_read+0x1bc:                  wr        %i5, 0x0, %y
ed_read+0x1c0:                  sdivcc    %l0, %l5, %l6
ed_read+0x1c4:                  bvs,a,pt  %icc, +0x8    

Any help appreciated.
thanks, Ritesh

_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to