From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA00243; Thu, 18 Sep 2003 14:27:02 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA23194 for ; Thu, 18 Sep 2003 14:27:01 +0200 (MET DST) Received: from flyingtuxman.baretta.com ([213.255.109.130]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h8ICQx509398; Thu, 18 Sep 2003 14:26:59 +0200 (MET DST) Received: from baretta.com (flyingtuxman.baretta.com [127.0.0.1]) by flyingtuxman.baretta.com (8.12.8/8.12.8) with ESMTP id h8ICQPBX007382; Thu, 18 Sep 2003 14:26:25 +0200 Message-ID: <3F69A471.9020807@baretta.com> Date: Thu, 18 Sep 2003 14:26:25 +0200 From: Alex Baretta User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jacques Garrigue , Ocaml Subject: [Caml-list] Segmentation fault at process initialization Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; baretta:01 baretta:01 runtime:01 -linkall:01 3.06,:01 crashes:01 -linkall:01 lacks:01 postgres:01 dynlink:01 cmas:01 linked:01 cmo:01 ocaml:01 ocaml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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