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] Ocamlex/ocamlyacc breakage?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-08 (10:52)
From: Stalkern 2 <stalkern2@t...>
Subject: [Caml-list] Ocamlex/ocamlyacc breakage?
Hello to everybody

I've connected a ocamlex/ocamlyacc parser to a graphical button; this parser 
parses a file. 

When I click on the button repeatedly and fast several times, the parser 
starts but it crashes. Failures happen at unrelated, apparently random 
positions, and strace shows unrelated, apparently random (in the range of 
open files) errors before the parse_error. 

I have put Unix.lockf locks, but readers are not exclusive. So I thought to 
skip the whole reparsing in case a reading lock is already there, but the 
F_TEST (*Test a region for other process locks*) command is documented for 
use in Unix.lockf : file_descr -> lock_command -> int -> unit, that returns 
unit, so how could a TEST ever be possible?

Any hint? BTW the whole is in a program with threads and runs in a ocaml 
compiled with posix threads, but this part does not use threads. 

Thank you in advance for any advice


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: