Search the web
Sign In
New User? Sign Up
dmalloc · Debug Malloc Library (dmalloc) Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
can't seem to resolve the ra's reported in logfile.   Message List  
Reply | Forward Message #508 of 529 |
1056945713: 13217: not freed: '0x80f5008|s1' (12346 bytes) from
'ra=0x4034b2cb'

Hi I'm getting these lines in my logfile and I want to know where this
return addess is in my program. I setup my shell with the dmalloc and
my .dmallocrc per the docs. Then I do:

$ dmalloc -a 0x4034b2cb:1 -l logfile -i 1 -V
$ dmalloc debug1

...unfortunately I get:

(gdb) x 0x4034b2cb
0x4034b2cb: Cannot access memory at address 0x4034b2cb

...plus the prog never stops (I thought it was supposed to stop if it
sees the ra I specify?)

I'm using RedHat Linux 9.0

$ echo $DMALLOC_OPTIONS
debug=0x403,addr=0x4034b2cb:1,inter=1,log=logfile

Compile line:
$ cc -g -o res_leak3 res_leak3.c -L/usr/X11R6/lib -lXm -lXbae -ldmalloc

$ gdb --version
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)

$ dmalloc --version
dmalloc: = 5.2.0

$ uname -a
Linux machname 2.4.20-18.9 #1 Thu May 29 06:54:41 EDT 2003 i686 athlon
i386 GNU/Linux

...also I see this:

(gdb) break dmalloc_error
Function "dmalloc_error" not defined.

The "12346" byte allocation is a special size I'm using to try and
track down a leak...at least that seems to be working. Any help to
find out where the ra's are in the source is appreciated.





Mon Jun 30, 2003 4:58 am

flashfyre_2000
Offline Offline
Send Email Send Email

Forward
Message #508 of 529 |
Expand Messages Author Sort by Date

1056945713: 13217: not freed: '0x80f5008|s1' (12346 bytes) from 'ra=0x4034b2cb' Hi I'm getting these lines in my logfile and I want to know where this return...
Flash Fyre
flashfyre_2000
Offline Send Email
Jul 8, 2003
7:46 pm

... First off, you should do the -a on the 0x80f5008 address NOT the ra address. ... This may be inside of a system library which does not have symbols loaded...
Gray Watson
graywatson1
Offline Send Email
Jul 8, 2003
8:06 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help