GithubHelp home page GithubHelp logo

Comments (7)

stephenmathieson avatar stephenmathieson commented on June 24, 2024

bump -- any thoughts?

from sophia.

pmwkaa avatar pmwkaa commented on June 24, 2024

~/craft/sophia/test valgrind ./sophia-leak
==11039== Memcheck, a memory error detector
==11039== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==11039== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==11039== Command: ./sophia-leak
==11039==
Opened database /tmp/foodb
==11039==
==11039== HEAP SUMMARY:
==11039== in use at exit: 0 bytes in 0 blocks
==11039== total heap usage: 17 allocs, 17 frees, 67,160 bytes allocated
==11039==
==11039== All heap blocks were freed -- no leaks are possible
==11039==
==11039== For counts of detected and suppressed errors, rerun with: -v
==11039== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

~/craft/sophia/test valgrind --version
valgrind-3.7.0

That is funny, I might have outdated valgrind, i will check it up :)

from sophia.

stephenmathieson avatar stephenmathieson commented on June 24, 2024

Very strange -- I've got the same version:

$ valgrind --version
valgrind-3.7.0

from sophia.

pmwkaa avatar pmwkaa commented on June 24, 2024

There might be difference in pthread implementation (libc version), i need to checkout proper condition variable cleanup on exit. Thanks)

from sophia.

stephenmathieson avatar stephenmathieson commented on June 24, 2024

Do you get the same successful results when running valgrind --leak-check=full ./sophia-leak?

from sophia.

pmwkaa avatar pmwkaa commented on June 24, 2024

yeah, just rechecked. As far as i can see in source code, there are missed condition variable destruction on sp_destroy. Seems to be pthread implementation started to allocate memory for their own purposes, so the problem came up :)

from sophia.

stephenmathieson avatar stephenmathieson commented on June 24, 2024

Interesting. If you point me in the right direction, I can try my hand at a fix :)

from sophia.

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.