Git Product home page Git Product logo

Comments (10)

RyanTheOptimist avatar RyanTheOptimist commented on July 26, 2024

from quiche.

martenrichter avatar martenrichter commented on July 26, 2024

Yes, this is the line am hitting.
But, the if clause is not hit, destruction_indicator_ == 123456789, so not use-after-free
So it was not printed, but the stack trace was of course executed anyway.

I assume that the idea is, that the compiler optimizes it away in this case.
However, in my case, it does not happen and the stack is "printed" to void anyway.

from quiche.

RyanTheOptimist avatar RyanTheOptimist commented on July 26, 2024

from quiche.

martenrichter avatar martenrichter commented on July 26, 2024

Well, I am not seeing it. But if I put a print to the stack trace I see that it is executed.
And if I overwrite the stack implementation my problems go away.

I am currently not using the default logging code, maybe I should switch to the default code? My current code was written before default dummies were provided.

from quiche.

RyanTheOptimist avatar RyanTheOptimist commented on July 26, 2024

from quiche.

martenrichter avatar martenrichter commented on July 26, 2024

Ok, I have checked it.
It is the logging implementation.
So I will replace it with the default.
Then it is my fault. I wonder, if this is the reason, some users said the performance of the node addon is not as good as they expected.
So thank you!
But I am still puzzled that the stack trace takes so long, the lambda functions, (or it may be a deadlock).

from quiche.

RyanTheOptimist avatar RyanTheOptimist commented on July 26, 2024

Glad to hear that explains the Stack Trace firing when it shouldn't have. Totally agree that the stack track performance is really surprising. In particular, the default implementation https://github.com/google/quiche/blob/30eeff5e759f83b1a93418b86c726710eda04f25/quiche/common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.cc simply delegates to the ABSL stack track utilities, which should be pretty solid.

@vasilvv to you have any thoughts about this?

from quiche.

vasilvv avatar vasilvv commented on July 26, 2024

I suspect that what happens here is, in canonical implementation of QUIC_BUG_IF, the stack trace is never called if the condition is not met. We probably just need to fix our logging impls.

from quiche.

martenrichter avatar martenrichter commented on July 26, 2024

The quiche default logging impl is fine, mine was faulty, now replaced by the default.
But that the stack trace takes a long time may be a problem.

from quiche.

martenrichter avatar martenrichter commented on July 26, 2024

Anyway, I close this..., was my faulty logging impl.

from quiche.

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.