simple umem integration with dbx

The mdb debugger has some really nifty integration with libumem, as documented in this technical article, and Adam Leventhal's famous Top 20 Blog.

I got a request recently asking if dbx had similar features. I think the engineer who asked was already familiar with the memory checking features dbx has (Run Time Checking), but the simplicity and speed of libumem checking have their own advantages.

So anyway, after a bunch of fiddling around in my C.S.T. (copious spare time) I got a ksh script together that I'm not completely embarassed to share with the world. It has a few basic functions like:

  • Dump the transaction log
  • Show all the transaction log entries for a specific block, along with the stack trace for each log entry
  • Given any address, search the transaction log for any blocks containing that address

The dbx lib umem module has a simple demo script in the documentation and a few tech notes. Please try it out if you're interested, and let me know how it goes. If you have trouble downloading it because it doesn't have a .txt extension let me know.

Update:

There is a Solaris bugid asking for libumem to export this information in a stable form. It is bugid:
6297789 libumem could use a libumem_db

In my never ending battle to figure out Technorati, here we go again:
Comments:

Chris, this is great! I hope we can get more cross-pollination between mdb and dbx. They definitely have slightly different design centers, but there's also certainly a lot of overlap we have yet to properly exploit.

Posted by Adam Leventhal on February 01, 2007 at 07:08 AM PST #

Post a Comment:
Comments are closed for this entry.
About

Chris Quenelle

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today