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 WAA02648; Tue, 2 Dec 2003 22:45:36 +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 WAA01526 for ; Tue, 2 Dec 2003 22:45:35 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hB2LjYr28800 for ; Tue, 2 Dec 2003 22:45:34 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1ARIKY-0005TJ-00; Tue, 02 Dec 2003 21:45:14 +0000 Date: Tue, 2 Dec 2003 21:45:13 +0000 To: "Yaron M. Minsky" Cc: Caml List Subject: Re: [Caml-list] getting stack traces in running code Message-ID: <20031202214513.GA21019@redhat.com> References: <1070398239.15748.57.camel@flapdragon.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1070398239.15748.57.camel@flapdragon.homeip.net> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 yaron:01 minsky:01 openpgp:01 sks:99 unexpected:01 debugging:01 backtrace:01 freshmeat:01 obstacle:01 vanier:01 ltd:98 ocaml:01 stack:02 stack:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, Dec 02, 2003 at 03:50:40PM -0500, Yaron M. Minsky wrote: > 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? Us too. A backtrace facility for exceptions would be enormously useful. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment "One serious obstacle to the adoption of good programming languages is the notion that everything has to be sacrificed for speed. In computer languages as in life, speed kills." -- Mike Vanier ------------------- 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