caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Fernando Alegre <fernando@cc.gatech.edu>
To: caml-list@inria.fr
Cc: xavier.leroy@inria.fr
Subject: [Caml-list] more bigarray problems
Date: Tue, 9 Jul 2002 22:21:44 -0400	[thread overview]
Message-ID: <20020710022144.GA20544@oso.local> (raw)


After I thought we had tamed bigarrays, it seems we did not. Certain
operations such as slices and reshaping allocate new bigarray structs. They
use the stock bigarray_alloc instead of the custom one, of course, and so
they bypass the finalizers. We managed to make OCaml segfault for this!

I don't see any way to work around that problem other than having support for
external finalizers in bigarray_alloc, and having proxies and slices
remember them. Even with a perfectly working Gc.finalise, we would encounter
the same problem, as the finalizers will get forgotten after a reshape, not
a very nice feature...

I think, given this input, lack of finalization support in bigarrays should be
promoted from just a feature wish to a bug, since there seems to be no way
to work around it.

Thanks,
       Fernando

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2002-07-10  2:21 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=20020710022144.GA20544@oso.local \
    --to=fernando@cc.gatech.edu \
    --cc=caml-list@inria.fr \
    --cc=xavier.leroy@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).