Comments (7)
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.
from libleak.
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.
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.
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.
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.
I did not test on 32bit linux.
I will test it later at free time.
from libleak.
Related Issues (20)
- overwrite malloc/free with dlopen-ed library is not working HOT 2
- can't head file such as "wuy_dict.h" HOT 1
- anyway to support android? HOT 3
- How to use? HOT 2
- does not resolve line-numbers HOT 21
- Core dumped on Jetson NANO HOT 1
- Can't built libleak on CentOS 7 like system HOT 3
- Causing assembler errors "bad registers" while porting library to 32 bit power-pc linux HOT 3
- backtrace library dependency HOT 6
- Any way to load debug symbols for system libs? HOT 1
- Output has no backtrace HOT 3
- FreeBSD 12 libwuya make problem
- fails to compile on fedora 36 HOT 1
- process is stuck in FUTEX_WAKE_PRIVATE in fedora 36
- Crash when loading HOT 6
- Python stack stace with function names HOT 1
- Should use "%zu" for printf of size_t values HOT 1
- Use makefile variables for portability HOT 1
- Unable to get the stack HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libleak.