"BUG: unsupported" when doing bignum division

Bug #159156 reported by offby1 on 2007-10-31
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Abdulaziz Ghuloum

Bug Description

Additional Info by Aziz:

The "BUG" message was bogus. Division should've reported invalid argument.

svn co -r137 http://polyglot-anagrams.googlecode.com/svn/trunk/scheme/ikarus
cd ikarus
make check

I see

    make check
    ikarus --r6rs-script wrapper.ss
    Well, that was exciting.
    Reading dictionary "tiny-dictionary" ... done; 1 words, 1 distinct bags
    |(bag-filter (2438910625983150 "inconceivable"))
    unhandled exception:
     Condition components:
       1. &error
       2. &who: /
       3. &message: "BUG: unsupported"
       4. &irritants: (710 2438910625983150)
    make: *** [check] Error 252

This seems wrong, since I can do the division at the repl, and also at
the repl, (bignum? 2438910625983150) answers #t.

offby1 (offby1) on 2007-10-31
description: updated
description: updated
offby1 (offby1) wrote :

Oops! Pilot error. The denominator was actually a symbol that _looked_ like a bignum :-)

Nothing to see here; move along ...

Oh, and thanks for implementing ikarus!

Changed in ikarus:
status: New → Invalid
Abdulaziz Ghuloum (aghuloum) wrote :

There are at least two problems though:

1. The error message was misleading.
2. The symbol was displayed as a number.

Fixed both in the version I have. Now you get:

> (/ 710 (string->symbol "2438910625983150"))
Unhandled exception
 Condition components:
   1. &error
   2. &who: /
   3. &message: "not a number"
   4. &irritants: (\x32;438910625983150)

Will publish fix soon.

Thanks for the report.


description: updated
Changed in ikarus:
status: Invalid → In Progress
Changed in ikarus:
assignee: nobody → aghuloum
status: In Progress → Fix Committed

>>>>> "Abdulaziz" == Abdulaziz Ghuloum <email address hidden> writes:

    Abdulaziz> => Fix Committed


Do you allow read access to your revision control for ikarus?

[T]he only two jobs at which I have ever earned my living are
soul musician and linguist
        Geoffrey K. Pullum

Abdulaziz Ghuloum (aghuloum) wrote :

On Nov 1, 2007, at 12:36 PM, offby1 wrote:

> Do you allow read access to your revision control for ikarus?

I made it available earlier today. Click on the "code" tab
in the launchpad page or check it out from the master site:
   bzr checkout http://ikarus.csoft.net/main ikarus.dev


Abdulaziz Ghuloum (aghuloum) wrote :

This bug report is about to be closed as the fix comitted previously
will be incorporated in the next 0.0.2 release of Ikarus Scheme,
scheduled for November 28, 2007.
A release candidate tarball is available for download from:
Please do test it if you have the time and report any issues you
might encounter. Thank you very much for your support. Aziz,,,
(Sorry for the duplicates; I'm updating every open bug.)

Changed in ikarus:
milestone: none → 0.0.2
Changed in ikarus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers