From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id D5A0DBBAF for ; Mon, 23 Aug 2010 13:06:20 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQDADLzcUyK54gDgWdsb2JhbACDF50ZFQEBFiIipmGRNIEigyJzBIl2 X-IronPort-AV: E=Sophos;i="4.56,256,1280700000"; d="scan'208";a="55909980" Received: from rouge.crans.org ([138.231.136.3]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 23 Aug 2010 13:06:20 +0200 Received: from localhost (localhost.crans.org [127.0.0.1]) by rouge.crans.org (Postfix) with ESMTP id 4D11D8285; Mon, 23 Aug 2010 13:06:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at crans.org Received: from rouge.crans.org ([10.231.136.3]) by localhost (rouge.crans.org [10.231.136.3]) (amavisd-new, port 10024) with LMTP id 0Wl01gfAl+lS; Mon, 23 Aug 2010 13:06:20 +0200 (CEST) Received: from [192.168.39.1] (fbx.up7.fr [88.185.141.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rouge.crans.org (Postfix) with ESMTPSA id 1E5648085; Mon, 23 Aug 2010 13:06:19 +0200 (CEST) Message-ID: <4C725620.4070803@glondu.net> Date: Mon, 23 Aug 2010 13:06:08 +0200 From: =?UTF-8?B?U3TDqXBoYW5lIEdsb25kdQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 MIME-Version: 1.0 To: Paul Steckler Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Segfaults with Dynlink with OCaml 3.11 References: In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=49881AD3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; segfaults:01 dynlink:01 ocaml:01 steckler:01 ocaml:01 segfaults:01 bindings:01 cheers:01 phane:98 steph:98 phane:98 dynamically:01 caml-list:01 native:03 segmentation:03 Le 23/08/2010 12:57, Paul Steckler a =C3=A9crit : > I'm getting segmentation faults when using dynamically linked native > code in 64-bit OCaml 3.11 running > on Linux (Fedora 12 x64). [...] > I've written some small example programs with a similar structure, and > those work just fine. In my real, > large program, which pulls in a lot of OCaml libraries, I get segfaults= =2E Does your real large program use C bindings? Are you able to reproduce the segfaults with pure OCaml code? Cheers, --=20 St=C3=A9phane