Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] threads
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Francois Rouaix <frouaix@y...>
Subject: [Caml-list] threads
Is anyone using native threads in Ocaml 3.04 intensively on Linux these
days ?
I'm playing with a Gnutella servent, and I'm experimenting crashes
(bytecode and native).
I'm using the unix library heavily. So far, I'm aware that the DNS calls
are not reentrant,
but the rest of the library calls should be okay.

My "crashes" are weird... There is no core (ulimit -c unlimited, before
you ask).
The program "hangs", ps looks like this. Looks like a thread is stuck.

18964 pts/3    S      0:00 ./camella.opt
18965 pts/3    Z      0:00 [camella.opt <defunct>]
18967 pts/3    S      0:00 ./camella.opt

$strace -p 18964
$strace -p 18967
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)

My log output on stderr ends abruptly, with no obvious trace of error
(and I log a lot, and I catch stray exceptions everywhere..)

Any hint or suggestion on how to track the problem would be

François Rouaix

Do You Yahoo!?
Get your free address at
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: