caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: caml-list@inria.fr
Subject: Bug somewhere in Ocaml 3.09.3.rc1?
Date: Fri, 30 Mar 2007 06:40:18 +1000	[thread overview]
Message-ID: <1175200818.16694.46.camel@rosella.wigram> (raw)

I have a weird bug where the Felix compiler is going haywire.
I need some ideas how to think about what it is. It appears
to be a bug in Ocaml, not my code.

One, and only one, regression test case is failing when
a piece of code processed by ALL test cases is added.

The test case consists of around 6000 Felix assert statements
partitioned into N small noinline procedures.

>From some value of M < N, the code works, but if I add
just one more of the procedures the compiler diverges.
The divergence follows a known problem pattern in the
Felix inliner, and it unrelated to any of the test
code (it's an unused library routine).

So I think I'm overflowing some boundary, and the Ocaml
run time is corrupting something. The Felix compiler's fresh
symbol count is around 16,000 when this happens -- quite a small
number. The test code is around 500K of source characters,
or 12,000 lines (half the lines are #line directives).

Is there any known problem with this version of Ocaml that
might explain this? Because obviously I can't easily
submit that much test data, and the actual Ocaml code
is also quite large and there's no possible way to isolate
the bug to a simpler program (the routines causing the problem
can't be simply disconnected from the rest of the compiler,
and still process the test data).

My machine is 1G AMD64, I'm using Ocamlopt, and the Ocaml
was built by me directly from the Inria repository.

I might try 3.10 .. can someone tell me the CVS command
needed to update my repository image (sorry, missed the
release announcement).

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


             reply	other threads:[~2007-03-29 20:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-29 20:40 skaller [this message]
2007-03-29 21:10 ` [Caml-list] " skaller
2007-03-29 21:32 ` skaller
2007-03-31 19:32   ` skaller
2007-04-03 16:56     ` skaller

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=1175200818.16694.46.camel@rosella.wigram \
    --to=skaller@users.sourceforge.net \
    --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;
as well as URLs for NNTP newsgroup(s).