Package: nickle
Version: 2.54-1
Severity: normal

I put in a large exponent, something like

> 1.4**78000

by mistake.  It took a long long time thinking (I didn't realized I'd given
this large exponent so I wondered what was happening) then crashed.

The backtrace:

(gdb) bt
#0  0x08075dc5 in NewRational ()
#1  0x0806efb8 in NewSignedDigitInteger ()
#2  0x08083130 in BinaryOperate ()
#3  0x08061d79 in ThreadsRun ()
#4  0x0808ed16 in yyparse ()
#5  0x0806fc2e in main ()

Also I wonder why this took so long.  Doing exponents should be fast; since

x^(2y) = (x^2)^y

and

x^(2y+1) = x * x^(2y)

a simple recursive algorithm should quickly do largish exponents like the above.

Interestingly however the crash was not reproducable.  When I ran it again it 
took an even longer time (I got bored and wandered off) to calculate then gave 
a pages-long answer.


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages nickle depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libncurses5                  5.5-5       Shared libraries for terminal hand
ii  libreadline5                 5.2-1       GNU readline and history libraries

nickle recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to