caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* segfault in String.create
@ 2007-08-27 18:03 Luca de Alfaro
  0 siblings, 0 replies; only message in thread
From: Luca de Alfaro @ 2007-08-27 18:03 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

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
work.
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...

Luca

[-- Attachment #2: Type: text/html, Size: 641 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-27 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-27 18:03 segfault in String.create Luca de Alfaro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).