caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Segmentation fault at process initialization
@ 2003-09-18 12:26 Alex Baretta
  2003-09-18 12:52 ` Richard Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Alex Baretta @ 2003-09-18 12:26 UTC (permalink / raw)
  To: Jacques Garrigue, Ocaml

When the Xcaml runtime system is linked with the -linkall option of 
ocamlc-3.06, the xcaml executable I get crashes with a segmentation 
fault at process initialization. If, on the other hand, I link the 
executable without the -linkall option, it runs fine, except for the 
fact that it lacks several library modules it should have.

The libraries I'm using are the following:
postgres, which is know to work very well;
cgi, which contains no C code;
and str, num and dynlink coming straight from the ocaml distribution.

My code is definitely not a problem because it runs fine if the -linkall 
option is suppressed. Neither is the -linkall option a problem in and of 
itself, because I can reproduce the behaviour by issuing equivalent 
linking commands using the cmo files as opposed the cmas.

How can I diagnose this segmentation fault? Under what circumstances 
exactly are ocaml programs "allowed" to crash with a segmentation fault?

Alex

-------------------
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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-09-22 20:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18 12:26 [Caml-list] Segmentation fault at process initialization Alex Baretta
2003-09-18 12:52 ` Richard Jones
2003-09-18 13:21   ` Alex Baretta
2003-09-18 13:44     ` Pierre Weis
2003-09-22 17:09       ` Alessandro Baretta
2003-09-22 18:47         ` Richard Jones
2003-09-22 20:57         ` Gerd Stolpmann
2003-09-18 16:23     ` Stefano Zacchiroli
2003-09-18 16:54     ` Damien Doligez

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).