caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Stéphane Glondu" <steph@glondu.net>
To: Romain Beauxis <toots@rastageeks.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Uncaught Unix_error.
Date: Thu, 18 Jun 2009 15:17:12 +0200	[thread overview]
Message-ID: <4A3A3E58.1040300@glondu.net> (raw)
In-Reply-To: <200906181416.39314.toots@rastageeks.org>

Romain Beauxis a écrit :
> We have had a strange bug report on our code. Somehow, an Unix.Unix_error 
> exception was not caught while it ought to be. See:
>   http://savonet.rastageeks.org/ticket/269
> [...]
> We believe that the issue is raised because the module that uses Unix.read is 
> compiled with one of unix or threads and the application using that module 
> with the other one.

Such errors can also happen if you link the (same) Unix module twice:
the exceptions raised by the first instance are not catchable by
anything linked after the second instance. This can happen quite easily,
especially if you use Dynlink. In general, having two modules with the
same name in one application is a bad idea.


Cheers,

-- 
Stéphane


  reply	other threads:[~2009-06-18 13:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-18 12:16 Romain Beauxis
2009-06-18 13:17 ` Stéphane Glondu [this message]
2009-06-18 13:28   ` [Caml-list] " Romain Beauxis
2009-06-18 14:41   ` David Baelde
2009-06-18 16:47     ` Jake Donham
2009-06-18 19:21     ` Stéphane Glondu
2009-06-18 20:16       ` David Baelde
2009-06-19 13:23       ` Romain Beauxis

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=4A3A3E58.1040300@glondu.net \
    --to=steph@glondu.net \
    --cc=caml-list@inria.fr \
    --cc=toots@rastageeks.org \
    /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;
as well as URLs for NNTP newsgroup(s).