[Vm-dev] Doubly weird

ken.dickey at whidbey.com ken.dickey at whidbey.com
Tue Feb 26 22:05:17 UTC 2019


On 2019-02-26 13:05, Eliot Miranda wrote:

> Hi Ken, 
> 
> On Tue, Feb 26, 2019 at 11:52 AM <ken.dickey at whidbey.com> wrote: 
> 
>> Oh,  I should point out that the CLI prints:
>> 
>> The 9 doubles are 1.000000 2.000000 3.000000 4.000000 5.000000 6.000000 
>> 7.000000 8.000000 9.000000
>> 
>> when running the FFI unit tests and:
>> 
>> The 9 doubles are 1.000000 1.000000 1.000000 4.000000 5.000000 6.000000 
>> 7.000000 8.000000 9.000000
> 
> This looks like the marshaller is accessing the wrong initial arguments.  It looks like the object accessed for args 1 & 2 is the same as for arg 0, right?  The question is why.  I have no clue.

Is there a compiler/runtime/parser change? 

Calling 

======================== 

FFIPluginTests>>testGenericDoubleCall2
"Test using generic FFI spec"
| result |
result := FFITestLibrary ffiTestDoubles9: 1.0 d: 2.0 d: 3.0 d: 4.0 d:
5.0 d: 6.0 d: 7.0 d: 8.0 d: 9.0.
self assert: result = 45.0 

========================= 

works fine, but in a workspace,  

FFITestLibrary ffiTestDoubles9: 1.0 d: 2.0 d: 3.0 d: 4.0 d: 5.0 d: 6.0
d: 7.0 d: 8.0 d: 9.0. --> 42.0 

========================= 

Typed space in FFIPluginTests>>testGenericDoubleCall2, accept (s), and
source text now shows: 

============ 

FFIPluginTests>>testGenericDoubleCall2
"Test using generic FFI spec"
| result |
result := FFITestLibrary ffiTestDoubles9: 1.0 d: 1.0 d: 1.0 d: 4.0 d:
5.0 d: 6.0 d: 7.0 d: 8.0 d: 9.0.
self assert: result = 1.0 

=============== 

!?!?!WTF!?!?! 

I will download a fresh image and try anew.. 

-KenD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190226/890c7fe0/attachment.html>


More information about the Vm-dev mailing list