Results 1 to 20 of 20

Thread: Memory Leak in Mac Client

  1. #1

    Exclamation Memory Leak in Mac Client

    It looks like there is a memory leak in the mac client.

    Take a look at this thread over in the MacNN forums.

  2. #2
    Mac since '86
    Join Date
    Apr 2002
    Location
    Silverdale, WA
    Posts
    51
    I posted information in the Client bug thread up top.

  3. #3
    I will try it out on our Mac and see what happens. There is no leak on Windows and no leak on Linux and haven't really run it for days on other platforms. Is it possible the leak is in a Mac OSX system call? Otherwise, the leak should be on ALL unixes (since the code is almost identical on all of them).
    Howard Feldman

  4. #4
    The Cruncher From Hell
    Join Date
    Dec 2001
    Location
    The Depths of Hell
    Posts
    140
    It looks like it's specific to OSX.
    My linux boxes don't have it.

  5. #5
    Mac since '86
    Join Date
    Apr 2002
    Location
    Silverdale, WA
    Posts
    51
    My windows boxes don't have it either. Only the Mac OS-X boxes seem to run into it. Quitting the client and restarting once every day or 2 seems to bed a good temporary work around.

  6. #6
    Is That An Apple MAC!
    with ice and soda..
    twist of lemon..:sleepy:

  7. #7
    Ok, it seems to leak on our 'build' Mac as well. If someone can suggest/provide some free memory-leak detection software (e.g. ccmalloc, purify, etc.) for OS x I can locate the leak. Probably cannot fix it though since it is most likely in a system call, but cannot say for sure until I know where it is. I know next to nothing about OS X so you MAC fans please direct me to some memory leak detectors if possible please.
    Howard Feldman

  8. #8
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    I think the command is /usr/bin/leaks
    and in the man pages Man leaks


  9. #9
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    Do we get a new Client now?

    Couldn't resist....

  10. #10
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    OK, I waited and no feed back, so for those who haven't tested it
    the leaks program, which is run like this
    leaks PID
    in place of the PID put the process ID of the folding prog, located with top
    then return and what you will get is a continual stream of leaks
    the prog is leaky from start to finish.
    it looks like this but runs unil end of prog::
    Leak: 0x02919bd0 size=14 string '619410'
    Leak: 0x02919bc0 size=14 string '2220038'
    Leak: 0x02919bb0 size=14 string '6417000'
    Leak: 0x02919ba0 size=14 string '726089'
    Leak: 0x02919b90 size=14 string '5646647'
    Leak: 0x02919b80 size=14 string '917054'
    Leak: 0x02919b70 size=14 string '3639000'
    Leak: 0x02919b60 size=14 string '1051119'
    Leak: 0x02919b50 size=14 string '17068888'
    Leak: 0x02919b40 size=14 string '59279625'
    Leak: 0x02919b30 size=14 string '3358442'
    Leak: 0x02919b20 size=14 string '9304800'
    Leak: 0x02919b10 size=14 string '88260'
    Leak: 0x02919b00 size=14 string '89520'
    Leak: 0x02919af0 size=14 string '22653288'
    Leak: 0x02919ae0 size=14 string '5558330'
    Leak: 0x02919ad0 size=14 string '35746380'
    Leak: 0x02919ac0 size=14 string '16464743'
    Leak: 0x02919ab0 size=14 string '43182999'
    Two sad faces for this one!

  11. #11
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    Just imagine how much faster the Mac would be without these errors!!!
    We might be in the lead even....

  12. #12
    A good try, but I cannot get leaks to give me any more info than it gave you, even when I compile with -g (debug information) and with the -cycle option and MallocStackLogging=1 (using setenv).

    Can someone instruct me on how to get the symbols out of this so I can see a proper stack trace to the leaks? Pretend for a moment that Im dumb and need expliciit, clear step-by-step instructions. Thanks.
    Howard Feldman

  13. #13
    And BTW, leaks seems to report memory leaks in just about EVERY process, not just foldtraj - is this expected??
    Howard Feldman

  14. #14
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    Yep, alot of other programs but with 'NSCFString or NSCFNumber'
    Instances, don't know. It says carbonization has a lot to do with it.
    there might be more in the Dev Center at Apple.
    Be nice if they got involved here and pulled Motorolas resources in too.

  15. #15
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    Brian the Fist, have you tried 'GDB'?
    The Apple DeBugger, in dev tools can get stack traces +.

  16. #16
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    GDB can get the symbols out to for the traces,
    almost forgot to mention.
    sorry

  17. #17
    Mac since '86
    Join Date
    Apr 2002
    Location
    Silverdale, WA
    Posts
    51
    The leak doesn't seem to be quite as bad in the newest client, but it is still there.

  18. #18
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    Yep, but it does seem to clear itself out and keeps itself at a lower memory
    usage rate unlike the previous client have to say it is much better.

  19. #19
    There has been very little change to the executable between versions so I have no idea what affected the memory leaks. But cant complain I guess

    Anyways, GDB cannot be combined lith 'leaks' as far as I can tell so I don't see how it will help. I am trying to interpret the output from leaks and get a stack trace from inside leaks.

    Any thoughts?
    Howard Feldman

  20. #20
    Junior Member
    Join Date
    Apr 2002
    Location
    Washington
    Posts
    11
    Try this instead of leaks ::
    MallocDebug.app
    it's in the dev tools and works on the memory leaks in a graphical way.
    Here is some of what it does ::
    MallocDebug is a utility for understand how an application uses memory. You can use MallocDebug to measure and analyze all allocated memory in an application or to measure the memory allocated since a given point in time. MallocDebug also detects memory leaks.

    This one should do it for you..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •