Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Luca de Alfaro" <luca@dealfaro.org>
To: caml-list@yquem.inria.fr
Subject: segfault in String.create
Date: Mon, 27 Aug 2007 11:03:21 -0700	[thread overview]
Message-ID: <28fa90930708271103gf3aac1bn48f4ea534d3c8313@mail.gmail.com> (raw)

[-- 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 --]

                 reply	other threads:[~2007-08-27 18:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28fa90930708271103gf3aac1bn48f4ea534d3c8313@mail.gmail.com \
    --to=luca@dealfaro.org \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox