From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA31940; Tue, 2 Dec 2003 21:50:44 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA00028 for ; Tue, 2 Dec 2003 21:50:43 +0100 (MET) Received: from mclean.mail.mindspring.net (mclean.mail.mindspring.net [207.69.200.57]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hB2Kogr22732 for ; Tue, 2 Dec 2003 21:50:42 +0100 (MET) Received: from user-0ccekf4.cable.mindspring.com ([24.199.81.228] helo=[192.168.0.3]) by mclean.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1ARHTm-0003PB-00 for caml-list@inria.fr; Tue, 02 Dec 2003 15:50:42 -0500 Subject: [Caml-list] getting stack traces in running code From: "Yaron M. Minsky" To: Caml List Content-Type: text/plain Organization: Cornell University Message-Id: <1070398239.15748.57.camel@flapdragon.homeip.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Tue, 02 Dec 2003 15:50:40 -0500 Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yaron:01 minsky:01 yminsky:01 cornell:01 openpgp:01 sks:99 unexpected:01 debugging:01 yaron:01 minsky:01 cornell:01 yminsky:01 keyid:01 ocaml:01 pgp:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is there a reason why stack traces are available only on a crash? I have a project (a distributed OpenPGP keyserver system, http://www.nongnu.org/sks/) that is a long-running daemon. Unexpected errors are caught and logged, but unfortunately, there's no way of getting a stack-trace, since I don't let the exceptions kill the program. This makes debugging much more difficult, and is one of the single largest difficulties I have with ocaml. Is there a technical reason that a bytecode-compiled executable couldn't have access to the stack trace during execution? y -- |--------/ Yaron M. Minsky \--------| |--------\ http://www.cs.cornell.edu/home/yminsky/ /--------| Open PGP --- KeyID B1FFD916 Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916 ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners