Git Product home page Git Product logo

Comments (2)

linas avatar linas commented on July 17, 2024

Only happens if #define GC_DEBUG is set, before including <gc/gc_allocator.h> and <gc/gc_cpp.h>

All the other issues I had with version 7.2 and 7.1 seem to have gone away (as I am using today's version from git). So if I don't set GC_DEBUG everything works great!

(err. sort of great ... I think I now have built cyclic references, which I suspect are not being collected, thus, no premature collection, and no corruption. I'd happily use GC_register_disappearing_link() except that the pointers are deep inside of STL somewhere (specifically, in std::set<Atom*>) so I haven't figured that out just yet...)

from bdwgc.

ivmai avatar ivmai commented on July 17, 2024

Assertion failure: malloc.c:506
The relevant part of the stack trace:
# 1 0x00007ffff6dc5b8b in __GI_abort () at abort.c:91
# 2 0x00007ffff7b7bb70 in GC_free (p=) at malloc.c:534
# 3 0x0000000000414c11 in deallocate (__p=, this=, GC_n=) at /usr/local/include/gc/gc_allocator.h:137

Only happens if #define GC_DEBUG is set, before including <gc/gc_allocator.h> and <gc/gc_cpp.h>

Looking into gc-7.2d code, I don't really understand how does deallocate() call GC_free as it should call GC_debug_free (provided GC_DEBUG is defined).

I'm closing the issue for now. If the issue is still reproducible with the fresh master, please let me know.

from bdwgc.

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.