You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/11/23 00:07:24 UTC

[GitHub] [trafficserver] ywkaras opened a new issue #8535: Proposed lib tool to detect wild writes of heap

ywkaras opened a new issue #8535:
URL: https://github.com/apache/trafficserver/issues/8535


   This would only be used in test builds.  The test builds could be run in a production environment, but with some perf degradation.
   
   The tool would provide a "private" heap for dynamic memory allocation from a contiguous, page-aligned range.  The test build would require changes to allocate the heap objects to be monitored from this private heap.  All entry point functions to this tool would have to take a single common mutex (slow).  The heap could be implemented with:  https://github.com/wkaras/heap-memory-manager .  The heap's memory pages would be read-only by default.  "alloc" and "free" calls would make the whole heap writable.  For non-error writes, it would be necessary to call a function to enable, then disable, writing to the page(s) containing the variable(s) to be written.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] SolidWallOfCode commented on issue #8535: Proposed lib tool to detect wild writes of heap

Posted by GitBox <gi...@apache.org>.
SolidWallOfCode commented on issue #8535:
URL: https://github.com/apache/trafficserver/issues/8535#issuecomment-976032600


   Might want to base this on the existing `MemArena` class.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] ywkaras commented on issue #8535: Proposed lib tool to detect wild writes of heap

Posted by GitBox <gi...@apache.org>.
ywkaras commented on issue #8535:
URL: https://github.com/apache/trafficserver/issues/8535#issuecomment-976032843


   Ahh linked lists from hell!!!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] ywkaras closed issue #8535: Proposed lib tool to detect wild writes of heap

Posted by GitBox <gi...@apache.org>.
ywkaras closed issue #8535:
URL: https://github.com/apache/trafficserver/issues/8535


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org