GithubHelp home page GithubHelp logo

Comments (7)

BobbyRBruce avatar BobbyRBruce commented on May 26, 2024

I have been able to reproduce this error. For the others wishing to reproduce the error themselves, I've created the following package. Once you have the binary it's fairly easy to reproduce

issue-790-reproduction.tar.gz

from gem5.

powerjg avatar powerjg commented on May 26, 2024

Which CPU does this occur with? Atomic? Timing? All?

from gem5.

BobbyRBruce avatar BobbyRBruce commented on May 26, 2024

Which CPU does this occur with? Atomic? Timing? All?

I've reproduced this with timing.

from gem5.

BobbyRBruce avatar BobbyRBruce commented on May 26, 2024

Which CPU does this occur with? Atomic? Timing? All?

I've reproduced this with timing.

Just reproduced it in with atomic CPU also.

from gem5.

BobbyRBruce avatar BobbyRBruce commented on May 26, 2024

We have developed two theories here:

  1. Running this binary on my local machine takes 16.5s. I dind't expect that binary to take that long initially, but that loop is iterated through A LOT. It could just take a lot more than 3 hours to complete, perhaps up to 24 hours or more. I'm going to leave this running for a couple of days and see what happens.
  2. There's some undefined behavior with all these uninitialized variables. This undefined behavior could lead to different behaviors in the SE-mode simulation than on host. This I'm more dubious of, but the code used to recreate this bug is a weird compiler test and that jumps out to me as an oddity.

from gem5.

karineek avatar karineek commented on May 26, 2024

The variables: int a, b, c, g, k, l, m, n; char h;, are global; but char j; is local and uninitialised. Now the question is what's going on with m = b || c < 0 || c > 1 ? : c;, now since b (I think) is 0, then we try to evaluate c < 0 and get a UB.

However, I am not so sure, because it is a compiler test case from GCC torture which is supposed to be UB-free.

from gem5.

ivanaamit avatar ivanaamit commented on May 26, 2024

We ran it overnight, and it finished, but it took a long time. @BobbyRBruce, please correct me if I am wrong.

from gem5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.