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=none autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id E9F56BC69 for ; Sun, 23 Dec 2007 16:00:36 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFEGbkfAXQImh2dsb2JhbACBV44zAQEBCAopmEI X-IronPort-AV: E=Sophos;i="4.24,201,1196636400"; d="scan'208";a="5981976" Received: from discorde.inria.fr ([192.93.2.38]) by mail1-smtp-roc.national.inria.fr with ESMTP; 23 Dec 2007 16:00:36 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id lBNF0WO1030145 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Sun, 23 Dec 2007 16:00:36 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFEGbkfUGyoefGdsb2JhbACBV44zAQEJBAYPEweYQg X-IronPort-AV: E=Sophos;i="4.24,201,1196636400"; d="scan'208";a="20649351" Received: from smtp4-g19.free.fr ([212.27.42.30]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Dec 2007 16:00:36 +0100 Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id C958C3EA0EE for ; Sun, 23 Dec 2007 16:00:35 +0100 (CET) Received: from Macintosh-5.local (lns-bzn-45-82-65-172-76.adsl.proxad.net [82.65.172.76]) by smtp4-g19.free.fr (Postfix) with ESMTP id 9F6EC3EA0B2 for ; Sun, 23 Dec 2007 16:00:35 +0100 (CET) Message-ID: <476E7912.10005@univ-savoie.fr> Date: Sun, 23 Dec 2007 16:04:50 +0100 From: Christophe Raffalli User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Stack overflow with native code Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 476E7810.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; christophe:01 raffalli:01 christophe:01 raffalli:01 univ-savoie:01 bytecode:01 -unsafe:01 ocaml:01 bug:01 cheers:01 0.6:98 stack:01 stack:01 compile:01 unsafe:01 Dear list members, I have a program that runs well and quick (0.6s) in bytecode but produces a stackoverflow on native code (in 0.2s). This behavior is observed on linux intel with unlimited stack size and OS X with 64Mb stacks (which is the maximum). The only unsafe feature are one or two magic in bindlib to manage a dependtly type environment. There is no C interface and no use of any C library, and no -unsafe. So I do not really see how to explain the difference of behavior. I tested with ocaml 3.10 and 3.10.1-rc1 Any hints ? (if not, I will fill a bug report, but the piece of code to compile to reproduce the problem is large (~10000 loc)). Cheers, Christophe