Ffi-glpk extension demonstrator bugs with jruby-1.4

Bonjour à tous,

Some month ago, i tested an ffi-glpk validator.

The full test files are available from the original announce:
[annonce] ffi-glpk extension demonstrator for jruby - JRuby - Ruby-Forum
Or directly at:
http://www.ensta.fr/~diam/ruby/online/pub

It was working (and keeps working) with jruby-1.2.0RC2 but it
display wrong result with the last JRuby-1.4.0 version.

The normal result (as it displays from JRuby-1.2.0RC2) is:

result is: z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0
expected: z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0

But now (with JRuby-1.4.0), I silently get:

result is: z = 300.731; x1 = 0.0732422; x2 = 49.9997; x3 = 0
expected: z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0

I suspect some pointer changes in ffi behavior?

Thank you for any help!
– Maurice


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Maurice,

I’ve filed a bug for that: http://jira.codehaus.org/browse/JRUBY-4303

And fixed it in the master branch. I’ve verified that your sample
works fine now on Linux.

Thanks for the report and the simple testcase. In the future though,
if you see any problems/bugs in JRuby, don’t hesitate to file the JIRA
issues directly. That way, they won’t get lost in the email.

Thanks,
–Vladimir

On Sun, Nov 15, 2009 at 9:48 PM, Diamantini Maurice
[email protected] wrote:

It was working (and keeps working) with jruby-1.2.0RC2 but it
expected: z = 733.333; x1 = 33.3333; x2 = 66.6667; x3 = 0
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Le 3 déc. 2009 à 23:32, Vladimir S. a écrit :

Thanks,
–Vladimir

Thank you very much.
But as I was not sure if my jruby code was correct or not, so I just
expected a confirmation (or not) of this incorrect behavior.
In fact I thought I made use of some bad old ffi API, but
i didn’t found doc or samples to help me.

I’ll try jruby-1.5 when as soon at it is available.

Thank you for you help !

– Maurice


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email