Questions tagged [libumem]

Libumem is a library used to detect memory management bugs in applications, based on the Slab allocator concept.

Libumem is a library used to detect memory management bugs in applications, based on the Slab allocator concept. Available as a standard part of the Solaris OS from Solaris 9 Update 3 onwards. /wikipedia/

9 questions
2
votes
2 answers

LIBUMEM says NO memory leaks, but PRSTAT on Solaris shows leaking?

I have an application I have been trying to get "memory leak free", I have been through solid testing on Linux using Totalview's MemoryScape and no leaks found. I have ported the application to Solaris (SPARC) and there is a leak I am trying to…
Lynton Grice
  • 1,435
  • 3
  • 29
  • 45
2
votes
1 answer

Attaching libumem is causing process to receive SIGKILL (Signal 9)

I have a need to check for memory leak in a Java application that uses JNI (C++ Code) a lot. When I attach libumem, the process exits after receiving a SIGKILL (Signal 9). When does a process receive SIGKILL? How is libumem causing it? OS: Solaris…
KGA
  • 135
  • 1
  • 1
  • 9
2
votes
1 answer

Solaris libumem why not show memory leak for first dynamic allocation

Say void main() { void *buff; buff = malloc(128); buff = malloc(60); buff = malloc(30); buff = malloc(16); free(buff); sleep(180); } ulib mem in solaris10 show only 60 bytes and 30 bytes as leak , why it not show 128…
Syedsma
  • 1,183
  • 5
  • 17
  • 22
1
vote
2 answers

How to use libumem to find heap corruption, without relying on a 'core' file?

I want to know how to use libumem on solaris. If I follow http://www.unix.com/man-page/OpenSolaris/3malloc/umem_debug/ and start the process with all the options, how will I get the output? Can I get a text file of the results? I have used wdb on…
KGA
  • 135
  • 1
  • 1
  • 9
1
vote
1 answer

Is libumem is available only in Solaris OS or in other OS too?

Is libumem is available only in Solaris OS or in other OS too
Syedsma
  • 1,183
  • 5
  • 17
  • 22
1
vote
2 answers

Solaris : pmap reports a different virtual memory size than ps

I have a process running on Solaris (SunOS m1001 5.10 sun4v sparc) and was monitoring the total virtual memory used. Periodically running ps showed that the VSZ was growing linearly over time with jumps of 80kbytes and that it keeps growing until it…
0
votes
1 answer

Solaris LIBUMEM: Get "libmapmalloc.so.1 not found" when C application executes SUBPROCESS?

I have a C application that runs on Linux, Solaris, and AIX. I have used tools like Totalview's MemoryScape to track down memory leaks on Linux and it is 100% clean. However, I have noticed a small leak on Solaris. So I have been using "libumem" on…
Lynton Grice
  • 1,435
  • 3
  • 29
  • 45
0
votes
0 answers

Why umem_alloc suppose to be better than malloc?

I read libumem is superior than standard malloc. Both provide malloc and free, but I can see there is a function called umem_alloc. I have hard time to understand the difference between umem_alloc() and malloc(). Why umem_alloc suppose to be better…
Nick
  • 9,962
  • 4
  • 42
  • 80
0
votes
0 answers

How to catch overwriting of libumem's redzone?

Is it possible to catch overwriting of libumem's redzone? I uses libumem to analyze a memory corruption and found that redzone of some block is the following: ... feedface edfecefa 8014822 18a0a5ea ... and all blocks after this are…
Maxim
  • 1
  • 1