From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: caml-list@inria.fr
Subject: [Caml-list] ocamlc, ocamlopt stackoverflow on list
Date: Fri, 30 Nov 2012 13:49:57 +0100 [thread overview]
Message-ID: <50B8AB75.5030508@univ-savoie.fr> (raw)
In-Reply-To: <CA+LkvyrPzuOo5dMnOHDzn1zWg6Lya9k6Ym6Wz6qJQQLYq6q6ZA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
Hello,
On my machine (ocaml 3.12.1 on linux 64 bits) with unlimited stack,
ocamlc and ocamlopt fails to compile a list constant of length 30000
which is a problem in code generated by another program.
Should this be considered a bug ?
Here is how to reproduce with grandelist.ml give below:
raffalli@d45-lama:~/Caml/patoline$ ocaml grandeliste.ml > foo.ml
raffalli@d45-lama:~/Caml/patoline$ ocamlc -c foo.ml
Fatal error: exception Stack_overflow
raffalli@d45-lama:~/Caml/patoline$ ocamlopt -c foo.ml
Fatal error: exception Stack_overflow
----------------- grandeliste.ml --------------------
open Printf
let _ =
printf "let l = [";
for i = 0 to 30000 do
printf "%d;\n" i
done;
printf "0]"
----------------- grandeliste.ml --------------------
--
Christophe Raffalli
Universite de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex
tel: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature. The public key is
stored on www.keyserver.net
---------------------------------------------
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next prev parent reply other threads:[~2012-11-30 12:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 9:26 [Caml-list] Higher order functors over tuples Ivan Gotovchits
2012-10-31 11:09 ` Didier Cassirame
2012-10-31 12:02 ` Ivan Gotovchits
2012-11-30 12:49 ` Christophe Raffalli [this message]
2012-11-30 13:20 ` [Caml-list] ocamlc, ocamlopt stackoverflow on list Gabriel Scherer
2012-11-30 13:31 ` Christophe Raffalli
2012-11-30 14:15 ` Gabriel Scherer
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=50B8AB75.5030508@univ-savoie.fr \
--to=christophe.raffalli@univ-savoie.fr \
--cc=caml-list@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