GithubHelp home page GithubHelp logo

Comments (3)

TrinhKien94 avatar TrinhKien94 commented on July 3, 2024

I have same problem when i run crfsuite version 0.12:
==25384==
==25384== HEAP SUMMARY:
==25384== in use at exit: 1,320 bytes in 1 blocks
==25384== total heap usage: 1,139 allocs, 1,138 frees, 62,120,243 bytes allocated
==25384==
==25384== 1,320 bytes in 1 blocks are definitely lost in loss record 1 of 1
==25384== at 0x4C2FA50: calloc (vg_replace_malloc.c:711)
==25384== by 0x40E9A3: crf1dc_set_num_items (in /home/kl/gr/crfsuite-0.12/frontend/build/crfsuite)
==25384== by 0x40821B: tagger_set (in /home/kl/gr/crfsuite-0.12/frontend/build/crfsuite)
==25384== by 0x4053A9: tag (tag.c:321)
==25384== by 0x40584C: main_tag (tag.c:433)
==25384== by 0x404221: crfsuite (main.c:149)
==25384== by 0x40401F: main (main.c:105)
==25384==
==25384== LEAK SUMMARY:
==25384== definitely lost: 1,320 bytes in 1 blocks
==25384== indirectly lost: 0 bytes in 0 blocks
==25384== possibly lost: 0 bytes in 0 blocks
==25384== still reachable: 0 bytes in 0 blocks
==25384== suppressed: 0 bytes in 0 blocks
==25384==
==25384== For counts of detected and suppressed errors, rerun with: -v
==25384== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Valgrind show that some thing in fucntion crf1dc_set_num_items have leak. Then i add this line: free(ctx->state); after line 99 (after line: free(ctx->alpha_score);) of file crfsuite-0.12/lib/crf/src/crf1d_context.c then i make && make install again. Run valgrind with my program again and have no leak as below:
==31489==
==31489== HEAP SUMMARY:
==31489== in use at exit: 0 bytes in 0 blocks
==31489== total heap usage: 1,139 allocs, 1,139 frees, 62,120,243 bytes allocated
==31489==
==31489== All heap blocks were freed -- no leaks are possible
==31489==
==31489== For counts of detected and suppressed errors, rerun with: -v
==31489== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
I think it's helpful for fix this issue.

from crfsuite.

usptact avatar usptact commented on July 3, 2024

@chokkan bump!

from crfsuite.

usptact avatar usptact commented on July 3, 2024

So this is is why we don't hear back from @chokkan :) He is playing soccer! :)
screen shot 2017-02-27 at 7 28 02 pm

from crfsuite.

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.