Opened 11 years ago

Closed 11 years ago

#341 closed defect (fixed)

bignums

Reported by: stassats Owned by: rme
Priority: major Milestone: IA-32 port
Component: Runtime (threads, GC) Version: trunk
Keywords: Cc:

Description

I have the following error:

? (rem (expt 2 43112609) 1000000000000000)
> Error: DIVISION-BY-ZERO detected
> While executing: CCL::%FLOOR-99, in process listener(1).

and

? (rem (expt 2 43112609) 400000000000000500)
> Error: DIVISION-BY-ZERO detected
> While executing: CCL::%FLOOR-99, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > (rem (expt 2 43112609) 400000000000000500)
exception in foreign context
Exception occurred while executing foreign code
 at mark_root + 45
? for help
[31584] OpenMCL kernel debugger: b
current thread: tcr = 0xb7c57aa0, native thread ID = 0x7b60, interrupts enabled


Bogus  frame b7af2950
[31584] OpenMCL kernel debugger: l
%ebx (arg_z) = -302950275
%esi (arg_y) = #<header ? #x0805F7E7>
------
%edi (fn) = -1776
------
zsh: segmentation fault  ./lx86cl

I have the same environment as in the ticket:338

Change History (3)

comment:1 Changed 11 years ago by rme

  • Owner changed from gb to rme

Ah, my old nemesis %floor-99.

comment:2 Changed 11 years ago by rme

A test case with non-gargantuan numbers:

? (expt 2 100)
1267650600228229401496703205376
? (rem (expt 2 100) 1000000000000000)
79228162532710483163956707328 ;obviously wrong

comment:3 Changed 11 years ago by rme

  • Resolution set to fixed
  • Status changed from new to closed

Thank you for the bug report. This should be fixed in r10923.

Note: See TracTickets for help on using tickets.