From: "Andres Varon" <avaron@gmail.com>
To: "OCaml List" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] segfault in 3.10.0
Date: Thu, 2 Aug 2007 11:41:09 -0400 [thread overview]
Message-ID: <b84c87360708020841q4d5c5b62j665a5f1217f13939@mail.gmail.com> (raw)
In-Reply-To: <f8560b80708012205m6e532a86p67462932d053895e@mail.gmail.com>
Hello Everyone,
This is what I have found:
1. The segfault is eliminated if I use position-dependent machine code
(-fno-PIC), which is the main difference that I can see in the
generated code for amd-64 between 3.09.3 and 3.10.0 (-fPIC is the
default now). When using -fno-PIC there was little difference between
the code spilled using -dlinear between the two versions. (I could not
get my program to compile with the branch release310 (3.10.1+dev0
(2007-05-21)) due to a type error that ... ehm ... isn't really a type
error ;-) ).
2. The bug occurs even when I have removed all calls to my C wrappers.
Therefore, I believe this an OCaml issue.
3. The segfault always happens when switching between a pair of
modules that come from the same functor with slightly different
paramenters.
I will continue trying to produce a small example to report to INRIA.
Finally, I have received some very nice suggestions in private and I
would like to thank those who have kindly sent them.
best,
Andres
On 8/2/07, Markus Mottl <markus.mottl@gmail.com> wrote:
> On 8/1/07, Andres Varon <avaron@gmail.com> wrote:
> > Has anyone observed sudden segfaults in OCaml 3.10.0 amd-64 under
> > linux?
>
> I would almost bet it's that one:
>
> http://caml.inria.fr/mantis/view.php?id=4300
>
> Avoid enabling native stack backtraces (i.e. don't set
> OCAMLRUNPARAM=b=1). I haven't seen any segfaults yet unless these
> were turned on in which case you may see them often. Native stack
> backtraces unfortunately seem still broken.
I was hopping it would be the case ,but no, I don't have
>
> Regards,
> Markus
>
> --
> Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
>
next prev parent reply other threads:[~2007-08-02 15:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 21:10 Andres Varon
2007-08-01 22:27 ` [Caml-list] " Andres Varon
2007-08-02 0:39 ` Yaron Minsky
2007-08-02 5:05 ` Markus Mottl
2007-08-02 15:41 ` Andres Varon [this message]
2007-08-02 16:46 ` Alain Frisch
2007-08-02 17:31 ` Andres Varon
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=b84c87360708020841q4d5c5b62j665a5f1217f13939@mail.gmail.com \
--to=avaron@gmail.com \
--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