From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 0FBDBBCAC for ; Fri, 13 May 2005 14:58:56 +0200 (CEST) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4DCwt7c024000 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 13 May 2005 14:58:55 +0200 Received: from [80.229.56.224] (helo=chetara) by pih-relay05.plus.net with esmtp (Exim) id 1DWZkl-0006pM-0T for caml-list@yquem.inria.fr; Fri, 13 May 2005 13:58:55 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] AMD64 segfault Date: Fri, 13 May 2005 02:33:27 +0100 User-Agent: KMail/1.7.1 References: <1115937349.17251.8.camel@pelican.wigram> In-Reply-To: <1115937349.17251.8.camel@pelican.wigram> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505130233.27713.jon@ffconsultancy.com> X-Miltered: at nez-perce with ID 4284A48F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 segfault:01 ocamlopt:01 compiler:01 segfaults:01 bytecode:01 bignums:01 ocaml:01 gcc:01 stack:01 segfault:01 stack:01 ulimit:01 segfaults:01 ocaml:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.2 required=5.0 tests=DATE_IN_PAST_06_12 autolearn=disabled version=3.0.2 X-Spam-Level: On Thursday 12 May 2005 23:35, skaller wrote: > I just built caml 3.08.3 on my new AMD64 and compiled and ran the usual > hello world with ocamlopt.opt, however the Felix compiler segfaults. > The bytecode version runs fine. Felix uses bignums and unix, otherwise > it is a pure ocaml program (no 3pl C libraries). > > I have no idea where start looking. I'm running Ubuntu (Hoary) > and using gcc 3.4. > > Any hints? Yes, the stack overflows much more quickly on AMD64 for me (pure64 Debian vs stock x86 Debian) and also causes a segfault instead of throwing Stack_overflow. I've no idea why. Try playing with ulimit to set the stack size and rerunning your program. I have found no other sources of segfaults with OCaml on AMD64. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists