Giter Club home page Giter Club logo

Comments (7)

WuBingzheng avatar WuBingzheng commented on June 9, 2024

Is the libwuya/ empty?

libwuya is another project and used as git-submodule here.
So you can get it by git clone with --recursive:

$ git clone --recursive https://github.com/WuBingzheng/libleak.git

or you can download its source from here to libwuya/ directory.

from libleak.

Gongnai avatar Gongnai commented on June 9, 2024

from libleak.

Gongnai avatar Gongnai commented on June 9, 2024

Hi Wubing,
Thanks for your quick reply. libwuya was built successfully with a minor defect that I have fixed on my side.
Compiler of my linux box is really old by using C99 mode. And it can not declare a variable and initialize it in one shot. Have to split it into 2 lines like below:

For example:
File wuy_skiplist.c

Before:
for ( int i = level - 1; i > 0; i--) {
..
}

After:
int i;
for (i = level - 1; i > 0; i--) {
..
}

File: wuy_heap.c
Before:
for ( size_t i = 0; i < heap->count; i++) {
...
}

After:
size_t i;
for ( size_t i = 0; i < heap->count; i++) {
...
}

Other than that, it is pretty good.
Thanks

from libleak.

Gongnai avatar Gongnai commented on June 9, 2024

Wubing,

A question for you.
If an application has a kind of cache memory , that means some memory will stay for ever except application exits.

What kind of expire threshold will be set under this case? Maybe around 5mins?
And some memory was really leaking like memory will be increasing every 20 secs.
Any ideas or suggestions on this scenario?

Thanks in advance.
Gongnai

from libleak.

WuBingzheng avatar WuBingzheng commented on June 9, 2024

If the leak happens at cache memory, which means some place allocates memory from the cache but does not put back to the cache forever, it's hard to find the leak by libleak. However if most of the cache memory is allocated by the leak-place, which is very possible, the leak-place will be shown many times in libleak output and you can guess it.

If the leak happens not at cache memory, you can focus on non-cache-memory in libleak output and should find the leak-place easily.

In both case, 20secs or 1min should be OK.

from libleak.

Gongnai avatar Gongnai commented on June 9, 2024

Thanks for your reply. However there was a core dump when have tried to kick off leaklib, looks like 32bits linux box doesn't like leaklib. I can't spend extra time on digging into this core file.
Will use Valgrind then. Anyways thanks for your time.

from libleak.

WuBingzheng avatar WuBingzheng commented on June 9, 2024

I did not test on 32bit linux.
I will test it later at free time.

from libleak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.