From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
Cc: Caml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] ocamlc, ocamlopt stackoverflow on list
Date: Fri, 30 Nov 2012 15:15:22 +0100 [thread overview]
Message-ID: <CAPFanBHp0zSD1bL5U-+Cz3cuMgpRczEAbZJQa0UbCU0M7vPb5A@mail.gmail.com> (raw)
In-Reply-To: <50B8B527.3020800@univ-savoie.fr>
It works with small lists, blows up with a Stack Overflow on a
really-unbalanced parsetree, I would really assume it is a
tail-recursion issue. I checked that the failure happens after parsing
time (-dparsetree produces an output); camlp4 must also have a
(different) non-tail-rec code path somewhere.
The easiest way to find out where this particular instance
of the problem lies would be to build a version of the compiler
with debug information and invoke
OCAMLRUNPARAM="b ocamlc ...
On Fri, Nov 30, 2012 at 2:31 PM, Christophe Raffalli
<christophe.raffalli@univ-savoie.fr> wrote:
>
> I Think with list of size 30000 it might not be only a problem of tailrec (it seems
> to fail to parse in fact with a difference error message with ocamlc and ocamlc -pp camlp4o).
prev parent reply other threads:[~2012-11-30 14:16 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 ` [Caml-list] ocamlc, ocamlopt stackoverflow on list Christophe Raffalli
2012-11-30 13:20 ` Gabriel Scherer
2012-11-30 13:31 ` Christophe Raffalli
2012-11-30 14:15 ` Gabriel Scherer [this message]
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=CAPFanBHp0zSD1bL5U-+Cz3cuMgpRczEAbZJQa0UbCU0M7vPb5A@mail.gmail.com \
--to=gabriel.scherer@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=christophe.raffalli@univ-savoie.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;
as well as URLs for NNTP newsgroup(s).