From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 5C41FBC6B for ; Fri, 29 Jun 2007 02:28:22 +0200 (CEST) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5T0SLrW005685 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 29 Jun 2007 02:28:22 +0200 Received: from [80.229.56.224] (helo=beast.local) by pih-relay05.plus.net with esmtp (Exim) id 1I44LV-00013k-4y for caml-list@yquem.inria.fr; Fri, 29 Jun 2007 01:28:21 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] segfault in 3.10 Date: Fri, 29 Jun 2007 01:22:36 +0100 User-Agent: KMail/1.9.7 References: <20070628233830.7d49539d@hmmm.de> In-Reply-To: <20070628233830.7d49539d@hmmm.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200706290122.36908.jon@ffconsultancy.com> X-Miltered: at discorde with ID 46845225.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; segfault:01 segfault:01 ocamlopt:01 endline:01 argv:01 ocamlopt:01 ocaml:01 ocaml:01 frog:98 wrote:01 exception:01 caml-list:01 argument:02 compiling:02 sys:03 On Thursday 28 June 2007 22:38:30 micha wrote: > I get a segfault when compiling the program below with ocamlopt 3.10 on > linux (athlon xp) and running it without an argument (it should throw > an exception). The code below is the smallest part of my program... Here's an implementation that's both shorter and faster: ;-) print_endline Sys.argv.(-1) Run with: $ ocamlopt test.ml -o test $ export CAMLRUNPARAM=b $ ./test Segmentation fault -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e