[Ohrrpgce] [ohrrpgce/ohrrpgce] "UPDATE_WALKABOUT_POS: missing sprite component" (#1137)

Ralph Versteegen notifications at github.com
Mon Apr 26 20:41:12 PDT 2021


Sounds like it could be a dangling pointer.

Can you use valgrind or asan (AddressSanitizer)?

I have a lot of poor luck with valgrind, sometimes I can't really get it to
work, and it's a pain that I always have to spend a long time updating
misc/valgrind_suppressions.txt after having upgraded parts of my OS.

asan doesn't seem to have that problem. To use asan compile with "scons
asan=1", which compiles in memory error checking into C code (it forces
gengcc=1). Like valgrind, asan can report reads/writes off the end of
allocated memory or access to freed memory.

On Tue, 27 Apr 2021 at 09:04, James Paige ***@***.***> wrote:

> This is a tricky one!
> I have a test case that crashes on this, but very tiny seemingly
> irrelevant changes to the source code can prevent the crash from happening.
>
> For example, if I comment out everything in the implementation of "camera
> follows hero" in scriptcommands.bas then the crash doesn't happen. Or if I
> add debug comments inside update_HeroSliceContext() then the crash doesn't
> happen.
>
> I assume memory is being corrupted and that these small changes are
> altering the layout of the corrupted memory just enough to prevent the crash
>
>> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/ohrrpgce/ohrrpgce/issues/1137#issuecomment-827145908>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAI4RCPDTPZQDR4HKXLFRN3TKXIPBANCNFSM4O7TTNZA>
> .
>


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1137#issuecomment-827290304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210426/396d5afc/attachment.html>


More information about the Ohrrpgce mailing list