From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id B5FC77FACB for ; Fri, 5 Sep 2014 23:51:19 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of andy.ray@ujamjar.com) identity=pra; client-ip=31.172.243.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="andy.ray@ujamjar.com"; x-sender="andy.ray@ujamjar.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of andy.ray@ujamjar.com) identity=mailfrom; client-ip=31.172.243.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="andy.ray@ujamjar.com"; x-sender="andy.ray@ujamjar.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@www.ujamjar.com) identity=helo; client-ip=31.172.243.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="andy.ray@ujamjar.com"; x-sender="postmaster@www.ujamjar.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar0EALMvClQfrPMC/2dsb2JhbABag2BXBIJ4xhaHTAGBAB53hAQBAQQSEVYQCwsNAgImAgIhARIBBQEcBhMiiAwDEQQJnV5riyuOVg2GWgETBIEsi3SCLQeCeYFTBZVuhG6CEI5thEcYKYExg2Jrgk8BAQE X-IPAS-Result: Ar0EALMvClQfrPMC/2dsb2JhbABag2BXBIJ4xhaHTAGBAB53hAQBAQQSEVYQCwsNAgImAgIhARIBBQEcBhMiiAwDEQQJnV5riyuOVg2GWgETBIEsi3SCLQeCeYFTBZVuhG6CEI5thEcYKYExg2Jrgk8BAQE X-IronPort-AV: E=Sophos;i="5.04,475,1406584800"; d="scan'208";a="77932237" Received: from vm12460.vps.tagadab.com (HELO www.ujamjar.com) ([31.172.243.2]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 05 Sep 2014 23:51:18 +0200 Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by www.ujamjar.com (Postfix) with ESMTPSA id 9528A12435B for ; Fri, 5 Sep 2014 22:50:59 +0100 (BST) Received: by mail-lb0-f179.google.com with SMTP id p9so1685407lbv.10 for ; Fri, 05 Sep 2014 14:50:56 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.45.42 with SMTP id j10mr14369329lam.91.1409953856625; Fri, 05 Sep 2014 14:50:56 -0700 (PDT) Received: by 10.112.123.39 with HTTP; Fri, 5 Sep 2014 14:50:56 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Sep 2014 22:50:56 +0100 Message-ID: From: Andy Ray To: Ashish Agarwal Cc: Caml List Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] segfault in simple program with 4.02 native Hi, A similar issue here on a Ubuntu 14.04 64 bit opam install, also using atdgen. https://github.com/avsm/ocaml-github/issues/35 It works with ocaml 4.01 but not 4.02 and should be repeatable with the ocaml-github 'git-jar' tool installed with opam. Regards, Andy On Fri, Sep 5, 2014 at 10:33 PM, Ashish Agarwal wrote: > https://github.com/agarwal/ocaml402_error > > The above link contains a simple program that segfaults when compiling with > ocamlopt 4.02. Byte code doesn't segfault, nor does native code with 4.01. > > This is the minimal example I could come up with. It uses atdgen and is > sensitive to the exact fields in the .atd file. Removing any of the fields > leads to correctly functioning code. > > I've only tested on Mac OS X so far. > > In the context of my full code, I observed another behavior also. Instead of > a segfault, I would get random non-ascii characters printed for the value of > postgres.host, and it would be different on repeated runs of the program (I > didn't even recompile in between). I can't seem to reproduce this behavior, > only getting the segfault now. >