[Openmcl-devel] OpenMCL for Linux x86-64 available for testing

James Bielman jamesjb at jamesjb.com
Thu May 4 11:06:43 PDT 2006


James Bielman <jamesjb at jamesjb.com> writes:

> Also, I've noticed that I hit the kernel debugger sometimes when
> quitting OpenMCL, but it's never been reproducible.  But, it does do
> it every time after running the CFFI testsuite.  I can try to narrow
> this down to a specific source file or test if that will help.

Replying to myself here, the tests that seem to be the culprit are
ones that pass a lot of floating-point arguments.  For example, if I
uncomment this test, I get the exception when quitting:

(deftest funcall.float26
    (foreign-funcall "sum_float26"
                     :float 5.0 :float 5.0 :float 5.0 :float 5.0 :float 5.0
                     :float 5.0 :float 5.0 :float 5.0 :float 5.0 :float 5.0
                     :float 5.0 :float 5.0 :float 5.0 :float 5.0 :float 5.0
                     :float 5.0 :float 5.0 :float 5.0 :float 5.0 :float 5.0
                     :float 5.0 :float 5.0 :float 5.0 :float 5.0 :float 5.0
                     :float 5.0 :float)
  130.0)

FOREIGN-FUNCALL is (on OpenMCL) just a thin wrapper for EXTERNAL-CALL,
and "sum_float26" is a C function that just adds up its 26
(non-varargs) float arguments.  (IIRC the 26 had some significance WRT
passing arguments in register vs stack on PPC.)

There are other tests that do things like pass 26 doubles, or 127
arguments of mixed types that also cause a similar crash.

James



More information about the Openmcl-devel mailing list