Comments (4)
I have recently fixed a leak in loggingserver
. Is that it?
If it is different leak, what is your configuration? How do you use log4cplus? How do I reproduce the leak? How big is the leak? Please provide some details.
from log4cplus.
The code is here:
#include "log4cplus/initializer.h"
int main(int argc, char *argv[])
{
_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
log4cplus::Initializer test_initializer;
return 0;
}
I use log4cplus-master, edit the *.vcxproj file, replace "v140" to "v120" to compile it in my vs2013. It reports memory leaks. It's possibly cause by stringhel
Here is the output:
Detected memory leaks!
Dumping objects ->
{1428} normal block at 0x004D7778, 32 bytes long.
Data: <..\src\stringhel> 2E 2E 5C 73 72 63 5C 73 74 72 69 6E 67 68 65 6C
{1427} normal block at 0x004D7730, 8 bytes long.
...
from log4cplus.
Leaks like this have been reported few times already. Unless this leak actually accumulates during longer run time, I do not think it is an issue. I think the problem is that the leaks reporting routine runs before the memory is actually deallocated. There is some thread-local storage that gets freed only at the very end of threads execution or process execution.
from log4cplus.
ok, thank you very much.
from log4cplus.
Related Issues (20)
- Setting log level through env in log config file HOT 4
- Help needed: how to periodically flush logger with appender's immediateFlush set to false? HOT 2
- log file name not change after rollover TimeBasedRollingFileAppender HOT 3
- log's maxsize>200kb,but it dosen't work HOT 2
- Opentelemetry integration HOT 1
- What kind of compilation options can correctly generate a multi-threaded logging library HOT 5
- Win64 application crash on exit HOT 1
- Why mingw can't complie log4cplus-2.1.1? HOT 1
- Sending logs from log4cplus to log4j via TCP HOT 1
- Is it possible to build log4cplus for QNX aarch64le? HOT 3
- Save all configuration in a file HOT 2
- Question: Which latest version of Log4cplus I should use on RedHat 7.9 with DevToolset11-toolchain ( GCC 11.2 ) compiler HOT 7
- Does not work when maxBackupIndex is set to 0 HOT 1
- Include Headers Possibly Causing Build Error HOT 5
- how to set FD_CLOEXEC for log4cplus HOT 1
- Inconsistent Log File Permissions HOT 2
- Question: Which latest and stablest version of Log4cplus I should use on CentOS Linux 7 with GCC version 4.8.5 compiler HOT 1
- 'LOG4CXX_ASSERT' equivalent HOT 2
- Feature request: non-blocking logging with SyslogAppender HOT 6
- log4cplus doesn't compile with --enable-thread-pool=no and --enable-threads=no
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 log4cplus.