Comments (7)
Did you try to compile with #3461? Like I said, I can't reproduce your results.
Edit: it is, indeed, 16 bytes in g++. I'll look into it.
from xmrig.
#3462 should fix it.
from xmrig.
sizeof(p) is 8, and your code prints sizeof(p) 8 sizeof(engine)/256 8
when I compile it in MSVC. What compiler version did you use? Maybe you used some special compiler settings?
from xmrig.
In any case, this PR should make this a compile-time problem instead: #3461
If it compiles, you can be sure pointer sizes match.
from xmrig.
sizeof(p) is 8, and your code prints
sizeof(p) 8 sizeof(engine)/256 8
when I compile it in MSVC. What compiler version did you use? Maybe you used some special compiler settings?
It is not only on MSVC.
When built on Ubuntu, g++ then it prints
sizeof(p) 16 sizeof(engine)/256 8
So it is also not correct and again memcpy spoils memory after engine array.
I noticed that because when my own JIT compiler implementation grows with code then sometimes it works and sometimes does not work just because unpredictable behave. And seem reason is those handler pointers.
from xmrig.
Thank You!
Seems now fixed.
PS: Someone can explain why compilers can reserve too much bytes per simple pointer? I have no idea why..
from xmrig.
I found this article on the topic: https://devblogs.microsoft.com/oldnewthing/20040209-00/?p=40713
from xmrig.
Related Issues (20)
- Add support for Warthog (WART)
- MSR mod fails after zen4 bios update HOT 4
- Hardcoded values are intentional?
- Add support for PyrinHash(PYI&HTN)
- utilizing virtual ram
- Personal log doesn't work with --background
- xeon e5-2699v3 dual cpu low performance HOT 5
- Issue with xmrig Compilation and Execution Stability on windows HOT 3
- How to connect via socks5 proxy with authorization?
- XMRIG on alienware R7 - GPU not getting any shares accepted HOT 2
- freeBSD assertion failure 267 HOT 3
- Zen3 architecture CPU, core computing power is unbalanced HOT 2
- delete this
- v
- read error: "end of file" HOT 4
- Is it possible to hide the console thing? HOT 2
- buffer overflow detected HOT 15
- Mine on CPU and GPU different Coins
- Im getting an Error when i try to mine on RX 470 Graphics card HOT 4
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 xmrig.