From: Xavier Leroy <xavier.leroy@inria.fr>
To: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Segv while compiling ocaml-3.04
Date: Thu, 20 Dec 2001 11:50:14 +0100 [thread overview]
Message-ID: <20011220115014.B5544@pauillac.inria.fr> (raw)
In-Reply-To: <3C19BAB4.13372263@univ-savoie.fr>; from Christophe.Raffalli@univ-savoie.fr on Fri, Dec 14, 2001 at 09:39:16AM +0100
> After ./configure, make world crashes for 3.04 in
>
> ../boot/ocamlrun ../boot/ocamlc -g -nopervasives -c oo.mli
> make[1]: *** [oo.cmi] Erreur de segmentation
> make[1]: *** Deleting file `oo.cmi'
> make[1]: Quitte le répertoire `/usr/local/src/ocaml-3.04/stdlib'
> make: *** [coldstart] Erreur 2
>
> But then If I compile the file myself it works:
>
> [root@boris ocaml-3.04]# cd stdlib
> [root@boris stdlib]# ../boot/ocamlrun ../boot/ocamlc -g -nopervasives -c oo.mli
We've observed similar hard-to-reproduce segmentation faults on a
Linux RedHat 7.2 machine. After some tracking, it turns out to be a
bug in gcc version 2.96 20000731 -- the "unofficial" gcc that RH 7.2
uses; I don't know which version of gcc your Mandrake has.
For those who are interested, the bug is that gcc forgets to allocate
a stack frame in a leaf function, thus accessing the stack "below" the
stack pointer. If there are no interrupts during the leaf function,
it still works; but any interrupt wipes the memory area just below the
stack pointer, and the function crashes...
We're trying to figure out a workaround, and will release updated RPMs
and SRPMs.
- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-12-20 10:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-14 8:39 Christophe Raffalli
2001-12-14 13:25 ` Pixel
[not found] ` <15385.61778.52293.648002@gargle.gargle.HOWL>
[not found] ` <3C1A07E9.B01890D5@univ-savoie.fr>
[not found] ` <15386.19382.239731.32280@hector.lesours>
2001-12-15 10:32 ` Christophe Raffalli
2001-12-20 10:50 ` Xavier Leroy [this message]
2001-12-20 11:00 ` Christophe Raffalli
2001-12-20 22:49 ` Ian Zimmerman
2001-12-21 8:22 ` Florian Hars
2001-12-21 8:28 ` Ian Zimmerman
2001-12-21 9:25 ` William Chesters
2001-12-21 10:00 ` Sven
2001-12-21 8:24 ` Luc Maranget
[not found] <200112170931.KAA0000003112@beaune.inria.fr>
2001-12-17 9:02 ` Christophe Raffalli
2001-12-21 13:01 ` Xavier Leroy
2001-12-22 14:44 ` Pixel
2001-12-23 8:37 ` Xavier Leroy
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=20011220115014.B5544@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=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