From: Jon Harrop <jon@ffconsultancy.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Floating exception
Date: Fri, 23 Nov 2007 22:36:39 +0000 [thread overview]
Message-ID: <200711232236.39691.jon@ffconsultancy.com> (raw)
In-Reply-To: <47471716.3020304@irisa.fr>
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
next prev parent reply other threads:[~2007-11-24 1:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-23 18:08 Sebastien Ferre
2007-11-23 22:36 ` Jon Harrop [this message]
2007-11-24 8:23 ` [Caml-list] " Vu Ngoc San
[not found] ` <200711242236.24433.jon@ffconsultancy.com>
2007-11-25 8:26 ` Vu Ngoc San
2007-11-25 15:35 ` [Caml-list] Smoke on 3.09.2 Jon Harrop
2007-11-25 18:26 ` Jon Harrop
2007-11-25 20:12 ` Vu Ngoc San
2007-11-25 20:48 ` Jon Harrop
2007-11-25 21:20 ` Vu Ngoc San
2007-11-25 21:22 ` Jon Harrop
2007-11-27 10:24 ` [Caml-list] Floating exception Jean-Marc EBER
2007-11-27 11:19 ` Jon Harrop
2007-11-27 13:53 ` Jean-Marc EBER
2007-11-27 15:35 ` Richard Jones
2007-11-27 18:13 ` Jon Harrop
2007-11-28 10:47 ` Vu Ngoc San
2007-11-28 14:48 ` Jon Harrop
2007-11-29 14:39 ` Vu Ngoc San
[not found] ` <1195900308.7242.19.camel@localhost>
2007-11-26 17:25 ` Sebastien Ferre
2007-11-26 17:56 ` Dmitry Bely
2007-11-27 0:01 ` Richard Jones
2007-11-27 6:56 ` Sebastien Ferre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200711232236.39691.jon@ffconsultancy.com \
--to=jon@ffconsultancy.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox