home.social

#addresssanitizer — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #addresssanitizer, aggregated by home.social.

  1. TIL: calling munmap() with wrong parameters can cause really strange occasional crashes in #AddressSanitizer or #Valgrind. Wrong parameters meaning in this case:
    - passing wrong (too large) size,
    - passing NULL,
    - calling munmap() multiple times for the same pointer.

    Debugging the crashes was painful. What helped in the end was "doing the boring right thing": adding error checking to all related system calls, adding debug logs, fixing code smells.

    #softwareDevelopment #Linux #mmap