Git Product home page Git Product logo

Comments (4)

wilx avatar wilx commented on May 24, 2024

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.

aricatamoy avatar aricatamoy commented on May 24, 2024

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.

wilx avatar wilx commented on May 24, 2024

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.

aricatamoy avatar aricatamoy commented on May 24, 2024

ok, thank you very much.

from log4cplus.

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.