Re: [Caml-list] Uncaught Unix_error.

2009-06-19 Thread Romain Beauxis
Le jeudi 18 juin 2009 21:21:20, Stéphane Glondu a écrit : > > I'm lost, I'd like to understand when the exception is registered: at > > runtime initialization? In this case, only one should ever be > > registered (at least it seems easy to enforce). Or is it statically > > registered somehow? > > T

Re: [Caml-list] Uncaught Unix_error.

2009-06-18 Thread David Baelde
Thanks for all the details. The application does have support for dynamically loading plugins but it's basically never used. We should double check with the user (we can't reproduce) maybe he's loading something funny... -- David ___ Caml-list mailing l

Re: [Caml-list] Uncaught Unix_error.

2009-06-18 Thread Stéphane Glondu
David Baelde a écrit : > Both liquidsoap and ocaml-duppy are compiled with -threads, so they > are using the same version of Unix. Duppy is not linked against Unix, > only requires it through ocamlfind. Could it be that ocamlfind (on > some versions) links Unix twice in liquidsoap? I did not know i

Re: [Caml-list] Uncaught Unix_error.

2009-06-18 Thread Jake Donham
On Thu, Jun 18, 2009 at 7:41 AM, David Baelde wrote: > Also, note that the call to read that raises the error is from the > same module that tries to catch the exception. > > I'm lost, I'd like to understand when the exception is registered: at > runtime initialization? In this case, only one shoul

Re: [Caml-list] Uncaught Unix_error.

2009-06-18 Thread David Baelde
On Thu, Jun 18, 2009 at 3:17 PM, Stéphane Glondu wrote: > 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. Both liquidsoap and ocaml-duppy are compiled with -threads

Re: [Caml-list] Uncaught Unix_error.

2009-06-18 Thread Romain Beauxis
Le jeudi 18 juin 2009 15:17:12, Stéphane Glondu a écrit : > > 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) U

Re: [Caml-list] Uncaught Unix_error.

2009-06-18 Thread Stéphane Glondu
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 > compile

[Caml-list] Uncaught Unix_error.

2009-06-18 Thread Romain Beauxis
Hi all ! 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 have precisely characterized the issue in the code, and we would like to understand its possible origin.