Comments (7)
Hi @wighawag, can you provide more information on the steps you took to download and compile evmdis?
For example, go get
with specific cross-compiler flags. Also, please include your golang version.
from evmdis.
I initially cloned the repo in the correct GOPATH/src location, and executed go build
Then because of the issue I executed go install ...
My go version is actually very old, maybe that is the issue : 1.3.3
I tried to install the latest go version 1.9.1 without success. Might be a incompatible glibc
from evmdis.
No flag was added
from evmdis.
1.3.3 is quite an old version of Go, can you try upgrading? A quick web search turned up some issues with older Go versions that might be related.
More generally, the error message could imply you are compiling for one CPU architecture, but attempting to run it on another. For example, you're compiling on your laptop which is an x86 CPU but running it on Android which is an ARM CPU. Do you think this might be the case?
from evmdis.
I am building from proper architecture, everything is done on the same device
I upgraded to 1.7 and now I got a different error :
go install github.com/Arachnid/evmdis/evmdis
Result in:
go build github.com/Arachnid/evmdis/stack: /usr/lib/go-1.7/pkg/tool/linux_arm/compile: signal: segmentation fault
from evmdis.
That looks like a compiler issue: either a bug in Go 1.7, or an issue on your platform. I tried cross-compiling for Linux on ARM with Go 1.7 but couldn't reproduce the particular issue:
$ GOROOT=`pwd`/tmp/go tmp/go/bin/go version
go version go1.7 darwin/amd64
$ GOOS=linux GOARCH=arm GOROOT=`pwd`/tmp/go tmp/go/bin/go build -o ./evmdis-arm-test github.com/Arachnid/evmdis/evmdis
$
You could try opening an issue with the Go team directly, but I suspect their response is going to be, "upgrade to the latest version of Go".
Do you have any other ideas about what it might be?
Regardless, I don't think it's related to evmdis. For example, here are all the imports:
$ find * -iname '*.go' | xargs -I{} grep -C 6 import {} | grep -E '"' | sort -u
"encoding/hex"
"flag"
"fmt"
"github.com/Arachnid/evmdis/stack"
"io/ioutil"
"log"
"math/big"
"os"
"reflect"
"strings"
from evmdis.
Thanks @shoenseiwaso for your time, this indeed does not seem to be a evmdis issue.
I ll close it and add a comment if I find a solution
from evmdis.
Related Issues (14)
- Program crashes while reaching "reaching.go:80 Advance()" -> invalid memory address HOT 4
- Am I use evmdis only when I compile a contract ? HOT 1
- A newcomer need a detailed example HOT 3
- Add usage instructions to README and help. HOT 2
- Doesn't appear to work for Serpent sourced bytecode.
- Issue with the SWAP1 instruction when both operands are lifted
- Disassembler loops forever with this bytecode HOT 1
- hangs upon execution HOT 4
- Is evmdis still under development? HOT 2
- Can't install EVMDIS on Ubuntu 20.04 virtual machine HOT 1
- Represent unreachable bytecode as 'data' blocks
- Missing license HOT 1
- Non-static jump error HOT 1
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 evmdis.