Version française
Home     About     Download     Resources     Contact us    
Browse thread
Floating exception
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Floating exception
On Friday 23 November 2007 18:08, Sebastien Ferre wrote:
> I compiled an OCaml program in native code on
> my new Linux machine. It runs without problem on
> this machine, but crashes as soon as it is executed
> with "Floating exception" on another Linux machine.
> The 2 machines have a similar processors (Intel Core Duo
> and Intel Xeon).
>
> What puzzles me is that it was working properly
> with my previous machine, which was very similar
> to the new one (Dell D400 -> D420).
> Another change is that I shifted from OCaml 3.08
> to OCaml 3.09.
>
> Does anybody have an idea of the cause of such an
> obscure error ? and how to solve it ? :-)

We shipped our first and last binary commercial product written in OCaml about 
two and a half years ago: presentation software for technical users 
called "Presenta" that provided integrated real-time 2D and 3D graphics 
rendered via OpenGL.

Too many of our users found the binary generated by ocamlopt to be unusably 
unreliable, typically due to random segfaulting that we could not reproduce. 
Consequently, we were forced to shelve the product line and never bothered 
trying to sell binaries generated by ocamlopt again. We've since stripped out 
the core renderer (Smoke) and are now giving it away for free in bytecode 
form and selling the source code:

  http://www.ffconsultancy.com/products/smoke_vector_graphics/

I was interested to hear about John Whitington's commercial product cPDF:

  http://www.coherentgraphics.co.uk/cpdf.html

I believe our problems were with library interop (e.g. using OpenGL from 
OCaml). cPDF works perfectly here but requires very little interop by 
comparison.

What libraries are you using and what exactly is your link line?

The situation may have improved since then. We have binary demos for x86 and 
x86-64 Linux on our site:

  http://www.ffconsultancy.com/products/smoke_vector_graphics/demo1.html
  http://www.ffconsultancy.com/products/smoke_vector_graphics/demo2.html
  http://www.ffconsultancy.com/products/smoke_vector_graphics/tiger.html

I'd be interested to hear if anyone can run the bytecode version of Smoke or 
these binaries. I'll put Mac OS X and Windows ones up ASAP.

If anyone has any ideas of how this might be improved I'd love to hear them!

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e