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 2FD137EF21 for ; Fri, 20 Jun 2014 07:48:25 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of siraaj@khandkar.net) identity=pra; client-ip=63.251.153.119; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="siraaj@khandkar.net"; x-sender="siraaj@khandkar.net"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of siraaj@khandkar.net) identity=mailfrom; client-ip=63.251.153.119; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="siraaj@khandkar.net"; x-sender="siraaj@khandkar.net"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@newguinea.khandkar.net) identity=helo; client-ip=63.251.153.119; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="siraaj@khandkar.net"; x-sender="postmaster@newguinea.khandkar.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAPDJo1M/+5l3/2dsb2JhbABZhya9UIMUAYEgdYQDAQEFI1UBEAsYAgIFFgsCAgkDAgECAUUTAQcBAYg+rH+eYheBKo1MBxaCYYFMAQOhPYxeg14 X-IPAS-Result: AqIEAPDJo1M/+5l3/2dsb2JhbABZhya9UIMUAYEgdYQDAQEFI1UBEAsYAgIFFgsCAgkDAgECAUUTAQcBAYg+rH+eYheBKo1MBxaCYYFMAQOhPYxeg14 X-IronPort-AV: E=Sophos;i="5.01,512,1400018400"; d="scan'208";a="67993303" Received: from khandkar.net (HELO newguinea.khandkar.net) ([63.251.153.119]) by mail3-smtp-sop.national.inria.fr with ESMTP; 20 Jun 2014 07:48:23 +0200 Received: from [10.0.1.12] (pool-72-89-142-202.nycmny.fios.verizon.net [72.89.142.202]) by newguinea.khandkar.net (Postfix) with ESMTPA id C251913AD9; Fri, 20 Jun 2014 01:48:20 -0400 (EDT) Message-ID: <53A3CB24.3040102@khandkar.net> Date: Fri, 20 Jun 2014 01:48:20 -0400 From: Siraaj Khandkar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: eliot@colba.net CC: Ocaml Mailing List References: <53A14140.2060502@cea.fr> <53A18CA3.7030402@cea.fr> <53A3AD7A.4040400@colba.net> In-Reply-To: <53A3AD7A.4040400@colba.net> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] mysterious cgi problem Not_found must be coming from some initialization procedure in module Y, so try to trap it from there. On 06/19/2014 11:41 PM, Eliot Handelman wrote: > Hi list, > > We have a demo coming up on Monday of an ocaml based music analysis and > generation system with a > web component for music notation that, irritatingly, has stopped > working. The interface is a CGI > with an ocaml 4.01 executable. After several harrowing days I narrowed > the problem down to the > following situation: > > X, a basic system, runs fine in firefox/chrome/various linuxen > > X + module Y generates "Not_found" exceptions in the CGI merely by > linking Y. Y is > otherwise not invoked. Moreover, I'm unable to trap the exception in > the CGI itself > (ie, a try/with around the main function is somehow bypassed as the > apache error long reports). So > it would seem the that the code fails before the main function is executed. > > We were using ocamlnet, but I rolled my own cgi parser and reproduced > the problem. > > Any suggestions? My next step would be to start rolling back the system, > which is > not pleasant. > > > thanks, > > -- eliot >