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
segfault in String.create
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Luca de Alfaro <luca@d...>
Subject: segfault in String.create
In a program compiled to bytecode that requires complex setup and gobs of
input data, I get a segfault in

String.create n

where n is 1024.
This both in Ocaml 3.09.2 and 3.10.

I then tried to run the same code compiled to native code, and it seems to
I guess I am exceeding some limit somewhere for bytecode code; can anyone
tell me how to run the code under bytecode?  (I guess there may be some
options to tweak...) it is slower but useful to use the debugger.
Also, it would be great if Ocaml gave some kind of understandable message,
rather than segmentation_fault...