Comments (7)
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
from gem5.
Which CPU does this occur with? Atomic? Timing? All?
from gem5.
Which CPU does this occur with? Atomic? Timing? All?
I've reproduced this with timing.
from gem5.
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.
We have developed two theories here:
- 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.
- 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.
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.
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)
- sim-se, cpu-o3, arch-x86: SMT fails under SE due to disconnected interrupt request port
- Help, how to support cross page hardware L2 prefetch in ARM core? [ARM][Prefetcher][TLB]
- "fatal: ... pio is already connected to interrupt_out_port" occurring when multiple interrupts present HOT 1
- cpu-o3: O3 crashes on simple program
- mem-ruby: Ruby functional read failures with MESI Three-Level caches HOT 3
- cpu-o3: executing MFENCE in two parallel SMT threads causes hang HOT 3
- Indirect Memory Prefetcher only performs a single indirect prefetch even if the prefetch distance is bigger than 1 HOT 2
- cpu-o3: Assertion failure in CPU::removeThread() on SMT thread exit
- arch-riscv: Boot to linux using Version 3.0.0 of riscv-ubuntu-20.04-boot hangs with O3 CPU HOT 1
- cpu-kvm: KVM CPU reports zero instructions simulated when running on Intel Alder Lake host HOT 1
- global instruction counter HOT 1
- Immediate crash when running KVM CPU in SE mode HOT 2
- AVX KVM Xsave issue HOT 3
- Docker Image for Ubuntu 20.04 in the gem5 documentation is an incorrect version. HOT 2
- how to simulate a Multi-level NUMA in gem5?
- A problem I suffered about clk_domian AttributeError in proxy.py
- c.jr/c.jalr semantic wrong HOT 4
- SST Support is Broken HOT 3
- sim-se: gpu-tests are failing HOT 7
- arch-riscv: vector tail/mask policy dependencies HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gem5.