Comments (5)
I can't find GC_mark_stack_bottom. Do you mean GC_mark_stack_top? Do you have any patch solving the problem?
Anyway, please repost this issue to [email protected]
from bdwgc.
Apparently I got this mixed up, since I wrote "GC_mark_stack_top" in the CACAO bug entry.
No, I don't have a patch.
from bdwgc.
I've just tried to reproduce this using a more recent version – ca89b8c –, as I could not remember exactly what I did back then.
I compile with KEEP_BACK_PTRS
and call GC_generate_random_backtrace()
at every step. After a while, most of these traces will say:
[...]
0x663f80 (tests/middle.c:114, sz=24, NORMAL)
Reachable via 241 levels of pointers from offset 8 in object:
0x663030 (tests/middle.c:114, sz=24, NORMAL)
Reachable via 242 levels of pointers from root at 0x601388
And what lives at 0x601388
?
(gdb) x/1gx 0x601388
0x601388 <GC_mark_stack_limit>: 0x0000000000663000
So I'm not sure which one of these GC_mark_stack*
variables it was last time, but this is what I'm getting now.
from bdwgc.
I've applied a fix preventing GC_mark_stack* pointers from being scanned. Could you please check whether the CACAO problem disappeared.
from bdwgc.
Stefan Ring reported n GC mailing list:
I have tried your patch a few days ago, and the end result is the same
as before :(.However, with my C test program, I can verify that the tracing root is
now some pointer on the stack, not one of these internal variables.
I’ll have a more detailed look where these stray – which they seem to
be – pointers are coming from, but I guess there’s not a whole lot
that can be done about it anyway.
from bdwgc.
Related Issues (20)
- Downstream libgc releases (Feb 2024) HOT 21
- GC hangs with "parallel mark" if using `GC_allow_register_threads()` HOT 11
- Debugging an issue with GC seemingly not happening on Emscripten/WebAssembly
- Upstream TLS support HOT 2
- How final are the finalizers? HOT 2
- Problem getting finalizers to work HOT 3
- Add examples collection of small programs showing how to use GC for varioues features and with different configurations HOT 2
- Support CHERI extension HOT 3
- using extra pointer bits on x86_64 (tagged pointer support) HOT 3
- Resolve warnings reported by cppcheck 2.13.3
- rare case of infinite loop on Android HOT 9
- gctest hang on msys64 if mprotected-based incremental collection is on HOT 9
- zig-msvc target error: 'unistd.h' file not found HOT 18
- Specify soversion for shared libs built by Zig
- Unexpected heap growth in gctest if no parallel marker
- cordtest hang on Windows if shared build by Zig using msvc HOT 7
- Some Windows gnu builds hang in zig build
- gctest hang sometimes on Windows if compiled with threads discovery
- Redirect malloc_usable_size() in leak_detector.h HOT 6
- Compilation with TCC fails on ARM macs HOT 4
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.