caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "forum@x9c.fr" <forum@x9c.fr>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml 3.11.0 release candidate
Date: Sat, 29 Nov 2008 23:47:16 +0100	[thread overview]
Message-ID: <B3D6DD08-E9EF-42A7-96FB-B94867CA8923@x9c.fr> (raw)
In-Reply-To: <77D0D110-16C4-4EAF-A371-B782568860B0@inria.fr>


Le 25 nov. 08 à 18:09, Damien Doligez a écrit :

> Dear OCaml users,
>
> We are closing in on version 3.11.0.  A Release Candidate is now  
> available.
> If there are no show-stoppers in this RC, then 3.11.0 will be  
> officially
> released next week.
>
> The release candidate is available here:
> < http://caml.inria.fr/pub/distrib/ocaml-3.11/ >
> (look for 3.11.0+rc1)
>
> As usual, we need a few brave souls to try and install it on their
> favourite architecture and report the result to me.

Definitely not a show-stopper but I am quite puzzled by the semantics
of the newly-introduced "Printexc.get_backtrace" function (and hence
also by "Printexc.print_backtrace").

Things are not pleasant to me regarding programs involving multiple  
threads.
By using "Printexc.get_backtrace" one may get an exception raised in
another thread. In the following program, there is no guarantee that the
two "print" expressions will output coherent results: the backtrace  
printed
may be the one of an exception thrown by another thread.

   try
     (...)
   with e ->
     print_endline (Printexc.to_string e);
     print_endline (Printexc.get_backtrace ())


Of course, coherence could be ensured by using a lock/mutex but I find  
the
solution heavyweight (and even in some cases tricky because of existing
synchronization). Another option (involing changes to the OCaml runtime)
would be to attach each backtrace to either its exception or to its  
thread.


Am I wrong ? Is the problem of no practical importance ?
Any comment or correction is very welcome to enlighten me.


Xavier Clerc


      parent reply	other threads:[~2008-11-29 22:47 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25 17:09 Damien Doligez
2008-11-25 21:16 ` [Caml-list] " Dario Teixeira
2008-11-26 10:32 ` Xavier Leroy
2008-11-27 22:55   ` Serge Aleynikov
2008-11-27 23:06     ` David Allsopp
2008-12-02 22:27     ` Jacques Carette
2008-11-30 11:48   ` Christophe TROESTLER
2008-11-26 14:14 ` Richard Jones
2008-11-26 16:29   ` Richard Jones
2008-11-26 22:29     ` Stéphane Glondu
2008-11-27 11:55       ` Richard Jones
2008-11-27 15:09         ` Stéphane Glondu
2008-11-26 16:52 ` Andres Varon
2008-11-26 17:05   ` Xavier Leroy
2008-11-26 17:38     ` Andres Varon
2008-11-26 18:11       ` Andres Varon
2008-11-26 18:43     ` Andres Varon
2008-11-27  9:07 ` Stefano Zacchiroli
2008-11-28 15:50 ` Andres Varon
2008-11-28 16:07   ` Nicolas Pouillard
2008-11-28 16:30     ` Andres Varon
2008-11-29 22:47 ` forum [this message]

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=B3D6DD08-E9EF-42A7-96FB-B94867CA8923@x9c.fr \
    --to=forum@x9c.fr \
    --cc=caml-list@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;
as well as URLs for NNTP newsgroup(s).