On Tue, Jan 4, 2011 at 4:31 PM, Daniel Bünzli wrote: > That's not the bug. The Invalid_argument exception is never supposed > to be caught, it denotes a programming error from the client of the > module. > > The bug lies in calling Array.make with a value larger than > Sys.max_array_length. > > Agree, but here I am never calling Array.make so ocaml is "internally" calling array.make with a wrong argument. So the bug is not really mine. An easy "patch" would be to define a Parsing.Overflow exception to throw whenever the function grow_stack() fails... J