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 MAA08690; Sun, 20 Oct 2002 12:06:38 +0200 (MET DST) 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 MAA08097 for ; Sun, 20 Oct 2002 12:06:38 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9KA6a528485; Sun, 20 Oct 2002 12:06:36 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA08413; Sun, 20 Oct 2002 12:06:36 +0200 (MET DST) From: Pierre Weis Message-Id: <200210201006.MAA08413@pauillac.inria.fr> Subject: Re: [Caml-list] debugger losing contact with debuggee process In-Reply-To: from Lex Stein at "Oct 19, 102 06:15:15 pm" To: stein@eecs.harvard.edu (Lex Stein) Date: Sun, 20 Oct 2002 12:06:36 +0200 (MET DST) Cc: caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, > A process I am debugging has a bus error and crashes. When it crashes, it > loses contact with ocaml_debug. The output looks something like this: > > calling db->put with db=3c8c0 txn=0 flags=0 > Invalid argument (error number 22) > BDB: aborting transaction > Lost connection with process 3531 (active process) > between time 290000 and time 300000 ^^^^^^ ^^^^^^ These numbers are very valuable information... > Trying to recover... > Time : 290000 - pc : 59612 - module Printf ^^^^^^ > 186 <|b|>let res = Buffer.contents dest in > > The debugger loses contact with the debuggee process because the debuggee > has a bus error and terminates. > > The information provided by ocamldebug above isn't very helpful. How do I > get a backtrace at the time of the bus error ? Something along the lines > of a bactrace on a core dump file would be great. How does one get this > information using ocamldebug ? The information that ocamldebug gave you is helpful : it provides the mean to go back way before the bus error (Time 290000), and ensures that the bus error will appear before Time 300000. To go (go) just before the bus error and ask for a backtrace then (bt) is just a matter of dichotomy and is very fast. Once your very near the bus error you can step use instruction stepping (s) and print (p) and next event (n) to understand what happens. (Use help in the debugger to get help in the debugger.) > Lex > > [ I posted this question to the ocaml_beginners list. After receiving no > replies on that list after 12hours, I conclude that the people on that > list don't have the experience with ocamldebug to answer the question and > am posting it to this list. ] This is a bit fast: don't forget the time difference between you and the rest of the world! Also consider that people may have something else to do than answering to your message just now! Sincerely, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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