镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

undefined behavior detected by runtime as compiled by g++-12 -fsanitize=undefined  #73043

Open

Description

@RobertHenry6bev

Description

I built v7.0.0-preview.6.22324.4 using gcc-12 -fsanitize=undefined which inserts runtime checks into the compiled C++ code. The default optimization level was used.

There are a number of runtime errors reported when I run my simple gcperfsim C# application. I only ran one program, as I was doing a survey of effectiveness of this tool chain.

Attached is the stderr of the running process. The few I've examined look to be true-positives.

All of these errors need to be investigated and fixed or carefully suppressed.

Reproduction Steps

I have my own hairy build script that wraps the "standard" build scripts. I compile with gcc-12 using -fsanitize=undefined
runtime_error_x64.txt
runtime_error_aarch64.txt

Expected behavior

No runtime errors

Actual behavior

Lots of runtime errors. Each needs to be examined closely.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Jul 29, 2022
  2. removed
    untriagedNew issue has not been triaged by the area owner
    on Jul 30, 2022
  3. added this to the 8.0.0 milestone on Jul 30, 2022
  4. mangod9 commented on Jul 3, 2023

    @mangod9
    Member

    @AaronRobinsonMSFT is this something we are looking into for 8?

  5. AaronRobinsonMSFT commented on Jul 3, 2023

    @AaronRobinsonMSFT
    Member

    There are series of issues related to sanitizers that I've deferred due to @jkoritzinsky working on getting infrastructure in place - see #74623. We can move this to vNext. I'd prefer to keep it out of Future as it makes it easy to lose track of.

  6. RobertHenry6bev commented on Jul 3, 2023

    @RobertHenry6bev
    ContributorAuthor
  7. modified the milestones: 8.0.0, 9.0.0 on Jul 29, 2023
  8. modified the milestones: 9.0.0, Future on Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions