Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Debugging mixed ocaml/C code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-09-12 (02:15)
From: Yaron M. Minsky <yminsky@C...>
Subject: [Caml-list] Debugging mixed ocaml/C code
Does anyone have any suggestions for debugging mixed ocaml/C code?  I 
have some code that uses a wrapper for the Berkeley DB.  When using some 
features of that wrapper (namely transaction support), I find that my 
app segfaults.  Unfortunately, it doesn't do the nice thing and segfault 
inside of the wrapper in a way that makes the bug findable with printfs. 
  Instead, it segfaults in a predictable place in the ocaml code 
instead.  (Surprisingly, it segfaults in the same place if I compile to 
native code or bytecode.)

My question is, does anyone have any suggestions as to how one might go 
about tracking down such a bug?  Are any of the standard debuggers (gdb, 
ocamldebug) useful for mixed ocaml/C code?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: