Comments (2)
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.
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)
- Unexpected heap growth in gctest single-threaded incremental mode with checksums on Linux/x64
- SEGFAULT in gctest on Win64
- gctest sometimes hang on Linux/x64 when compiled with DONT_ADD_BYTE_AT_END HOT 2
- gc-8.2.2 gctest fail on linux/aarch64 (qemu) HOT 5
- initfromthreadtest fail on Ubuntu 22 x64 HOT 4
- Signals delivery fails in gctest on Ubuntu Jammy if compiled with TSan HOT 10
- Incremental GC collecting referenced objects (gctest fails with soft vdb if shared build by zig) HOT 13
- Best practice on parallel + incremental / generational ? HOT 8
- Design question, concurent GC + free? HOT 4
- Provide global aligned allocators in gccpp library HOT 1
- Bad complex descriptor occurs rarely in find-leak mode HOT 3
- Assertion violation in cpptest about nFreed/nAllocated with ASan on E2K HOT 1
- SIGSEGV in gctest, disclaimtest, weakmaptest if compiled with TSan and MPROTECT_VDB mode active on Linux HOT 2
- SIGPWR signal on Debian HOT 3
- Inconsistent soft-dirty against mprotect dirty bits HOT 5
- Downstream libgc releases (May 2023) HOT 30
- Initial support of Embox OS HOT 8
- config doesn't recognize riscv on netbsd HOT 3
- Provide build.zig for building libgc? HOT 17
- Initial support of KOS/arm64 HOT 2
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 bdwgc.