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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C0C26BC69 for ; Mon, 7 May 2007 13:20:05 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l47BK5Dh007698 for ; Mon, 7 May 2007 13:20:05 +0200 Received: by ug-out-1314.google.com with SMTP id k3so912730ugf for ; Mon, 07 May 2007 04:20:04 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=Sfpo9CpJR8Fkh/el4BUGeZ2ta5lb3FJtE/ZsJuXAAtfX4slS80w0vhPnh1FUxPNk+gZH77xwU3VstNawLvkvsSsD/ywaqlx3mFgh0764/+4HazehrpLtOs5w/vTdobUWNiR73YSkzpfTgyJnq9LftlTqdzgo06xnjCkLY50Mq4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=Emu6SY98NMyXLjtRqjdg16Z/7KuJl+6rZOTEAb04HFJeV4cCDEsVc5XTeHEv0SBh0DJpME8CHRy3LytRHbL/ERsZjukkDLEgFzvP++MZ+q4RkhkVP1DhSm2RejW6hK3vCjx5Rtb7N6s0j5EGBpePb1lA4LbsVXi46eNXFVlHSd8= Received: by 10.66.253.17 with SMTP id a17mr4968487ugi.1178536804934; Mon, 07 May 2007 04:20:04 -0700 (PDT) Received: from ?192.168.1.33? ( [83.34.3.221]) by mx.google.com with ESMTP id y34sm463195iky.2007.05.07.04.20.03; Mon, 07 May 2007 04:20:03 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: OCaml List From: Joel Reymont Subject: ocamlnet and getting a stack trace Date: Mon, 7 May 2007 12:20:01 +0100 X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 463F0B65.000 on concorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at concorde with ID 463F0B65.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlnet:01 stack:01 invocation:01 ocamlfind:01 ocamlc:01 stack:01 ocamlnet:01 debugging:01 backtrace:01 ocaml:01 ocamlfind:01 ocamlc:01 -package:01 netstring:01 netcgi:01 This is driving me nuts so I appreciate any help you can give me! Despite my valiant efforts to insert -g into every invocation of "ocamlfind ocamlc", I cannot get a stack trace out of the sample ocamlnet app that I'm debugging. I keep getting Fatal error: exception Unix.Unix_error(49, "", "") (Program not linked with -g, cannot print stack backtrace) Has anyone had success with getting a stacktrace from ocamlnet before? A minimal app that I wrote up produces a stack trace just fine so this must be something in my ocaml pipeline. I can't figure out what, though. I'm trying to build the netplex example in ocamlnet/code/src/examples/ nethttpd: ocamlfind ocamlc -g -o netplex -package "netstring,netcgi2,unix,nethttpd-for-netcgi2,netplex" -thread netplex.ml -linkpkg -g I also have this in my ocamlnet Makefile.conf: # Additional options only for ocamlc: OCAMLC_OPTIONS = -g # Additional options only for ocamlopt: OCAMLOPT_OPTIONS = -g Thanks, Joel -- http://wagerlabs.com/