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

James Paige notifications at github.com
Tue Apr 27 04:56:28 PDT 2021


I tried valgrind, and the crash simply didn't happen.

I'll try asan also

On Mon., Apr. 26, 2021, 11:41 p.m. Ralph Versteegen, <
***@***.***> wrote:

> 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 commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/ohrrpgce/ohrrpgce/issues/1137#issuecomment-827290304>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA2IR6LF43VQQHP3MFVJEP3TKYW5RANCNFSM4O7TTNZA>
> .
>


-- 
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-827548635
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210427/cb317eaf/attachment-0001.html>


More information about the Ohrrpgce mailing list