Skip to content

Yes, UB is actually that Bad (The Day GCC Broke Chrome) #521

Closed

Activity

  1. lefticus commented on Jan 6, 2026

    @lefticus
    OwnerAuthor
    Image
  2. changed the title [-]Yes, UB is actually that Bad[/-] [+]Yes, UB is actually that Bad (The Day GCC Broke Chrome)[/+] on Jan 7, 2026
  3. lefticus commented on Jan 20, 2026

    @lefticus
    OwnerAuthor

    Coming in Ep520

  4. weichslgartner commented on Feb 16, 2026

    @weichslgartner

    Why not mention the memory sanitizer? This is the correct sanitizer for uninitialized memory and detects it in this case: https://compiler-explorer.com/z/4616qzKG6

  5. johnmcfarlane commented on Feb 18, 2026

    @johnmcfarlane

    @weichslgartner

    Why not mention the memory sanitizer? This is the correct sanitizer for uninitialized memory and detects it in this case: https://compiler-explorer.com/z/4616qzKG6

    That's a great question, but worth noting that ASan and MSan don't work together

    -fsanitize=memory,address yields

    clang++: error: invalid argument '-fsanitize=address' not allowed with '-fsanitize=memory'

    which is a big usability problem!

  6. weichslgartner commented on Feb 18, 2026

    @weichslgartner

    You can use some matrix build in CI to test with all the different sanitizers in parallel.
    The more annoying part of MSan is that you need to instrument libc++ (see https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo#instrumented-libc)

  7. johnmcfarlane commented on Feb 18, 2026

    @johnmcfarlane

    You can use some matrix build in CI to test with all the different sanitizers in parallel.
    The more annoying part of MSan is that you need to instrument libc++ (see https://github.com/google/sanitizers/wiki/MemorySanitizerLibcxxHowTo#instrumented-libc)

    Does your matrix include fuzzing, TSan, and axes for toolchains provider, compiler version, build type, etc.? Some warnings and sanitizer features only work with certain flags and compiler releases (as seen in the video). It's gratifying that there is so much activity in this area, but it's not a great ecosystem for your average user. Annoying indeed!😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions