Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6885629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:39:30+00:00 2026-05-27T05:39:30+00:00

I have used Totalview’s Memoryscape to do some memory leaks checks and I have

  • 0

I have used Totalview’s Memoryscape to do some memory leaks checks and I have “none”, well at least none on the HEAP….but it seems tools like MemoryScape only check the heap, not stack leaks…

I have noticed a small leak occurring on AIX and Solaris (any maybe Linux, still checking)….and am trying to hunt it down.

I do use a single (joinable) thread in my application that does all the work…

Please bear with me, C is not my day job 😉 but I have 2 questions:

  • If I spawn an POSIX thread and it does malloc’s etc…are these on the heap or on the threads stack? Would a memory checking (heap) tool typically also find leaks when a thread does not free a malloc?

  • What tools would you recommend to use to find leaks on the STACK? I have used “libumem” on Solaris but not sure if that is finding what I need..

Can I perhaps use VALGRIND on Linux to check for leaks on my thread’s stack?

Thanks for the help 😉

Lynton

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T05:39:31+00:00Added an answer on May 27, 2026 at 5:39 am

    If I spawn an POSIX thread and it does malloc’s etc…are these on the
    heap or on the threads stack? Would a memory checking (heap) tool
    typically also find leaks when a thread does not free a malloc?

    Everything you get via malloc, no matter where you call it is from the heap. A memory debugger should be able to catch leaks. Valgrind is a good tool to find leaks, it should work well with threads.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used some TCL, but this construction stumps me. When $res = Table
I have used EditField with some specified width and height that works good but,
I have used 3 some jquery related files namely <script type=text/javascript src=/blog/jquery/jquery-1.7.1.min.js></script> <link type=text/css
I have used microsoft system.security.cryptography to make md5 in c# application but I need
I have used following code to add three variables but instead of adding these
I have used initialization lists a great deal in my C++ programs but wasn't
i have used filter to get the gradient and border-radius for round border but
I have used an ObservableCollection with WPF for binding and this works well. What
I have used Jetty in the past but I have little experience with jWebSocket.
I have used git update-index --assume-unchanged on some files to keep my changes to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.