Coder Social home page Coder Social logo

Illegal instruction about evmdis HOT 7 CLOSED

arachnid avatar arachnid commented on September 28, 2024
Illegal instruction

from evmdis.

Comments (7)

shoenseiwaso avatar shoenseiwaso commented on September 28, 2024

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.

wighawag avatar wighawag commented on September 28, 2024

Hi @shoenseiwaso

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.

wighawag avatar wighawag commented on September 28, 2024

No flag was added

from evmdis.

shoenseiwaso avatar shoenseiwaso commented on September 28, 2024

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.

wighawag avatar wighawag commented on September 28, 2024

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.

shoenseiwaso avatar shoenseiwaso commented on September 28, 2024

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.

wighawag avatar wighawag commented on September 28, 2024

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)

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.