Git Product home page Git Product logo

Comments (5)

ivmai avatar ivmai commented on August 16, 2024

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.

Ringdingcoder avatar Ringdingcoder commented on August 16, 2024

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.

Ringdingcoder avatar Ringdingcoder commented on August 16, 2024

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.

ivmai avatar ivmai commented on August 16, 2024

I've applied a fix preventing GC_mark_stack* pointers from being scanned. Could you please check whether the CACAO problem disappeared.

from bdwgc.

ivmai avatar ivmai commented on August 16, 2024

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)

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.