Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to create contract address & transaction with sync mode light #19424

Closed
osiztechnologies opened this issue Apr 9, 2019 · 22 comments
Closed

Comments

@osiztechnologies
Copy link

We have used

geth 1.8.23 , sync mode - light

We are not able to execute fund withdraw from my address to another address

and also we are not able to create contract address.

Today afternoon we have faced this type of issue repeatedly.

Kindly guide us how to resolve this.

@osiztechnologies
Copy link
Author

We got below error from eth console

INFO [04-09|15:01:18.332] Submitted contract creation fullhash=0xc05885d14fbb1626197db0c50a9a845562d5f84d29cef29132bed67c4787cc2b contract=0x54923b4f2e4433294c70559CC94D1812793F0451
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb35640]

goroutine 56 [running]:
github.com/ethereum/go-ethereum/les.(*peer).GetRequestCost(0xc00d5d0210, 0xc, 0x1, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/les/peer.go:166 +0xa0
github.com/ethereum/go-ethereum/les.(*LesTxRelay).send.func1(0x11f1920, 0xc00d5d0210, 0xc052462d01)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/les/txrelay.go:121 +0x4e
github.com/ethereum/go-ethereum/les.(*requestDistributor).nextRequest(0xc00018fcc0, 0x0, 0x0, 0x0, 0x0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/les/distributor.go:195 +0x2b1
github.com/ethereum/go-ethereum/les.(*requestDistributor).loop(0xc00018fcc0)
/home/travis/gopath/src/github.com/ethereum/go-ethereum/les/distributor.go:129 +0x7f
created by github.com/ethereum/go-ethereum/les.newRequestDistributor
/home/travis/gopath/src/github.com/ethereum/go-ethereum/les/distributor.go:80 +0xf9

@ChinmayRai
Copy link

I am facing similar issue when trying to make send a data payload to a Smart contract

System information

Geth version: 1.8.25-stable-14ae1246 (Rinkeby Network ; syncmode=light)
OS & Version: Linux Ubuntu 18.04

Expected behaviour

Transaction should be submitted for validation and eventually the data get added to the chain

Actual behaviour

Geth Crashes abruptly without even broadcasting the transaction

Steps to reproduce the behaviour

Try submitting a transaction (with a data payload) to a smart contract.

Backtrace

INFO [04-09|22:26:16.381] Submitted transaction fullhash=0x9da1edd01e180d7a56d89fc14f45818f98b04e7a89b3cbf5e99abdb67a27ea1c recipient=0x3aA893B62B371fddB6f0305acd33106Aa113155F
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb105c0]

goroutine 15 [running]:
github.com/ethereum/go-ethereum/les.(*peer).GetRequestCost(0xc42670c790, 0xc, 0x1, 0x0)
/build/ethereum-3tTh57/ethereum-1.8.25+build18425+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/les/peer.go:166 +0xa0
github.com/ethereum/go-ethereum/les.(*LesTxRelay).send.func1(0x11134e0, 0xc42670c790, 0xc4380b6d01)
/build/ethereum-3tTh57/ethereum-1.8.25+build18425+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/les/txrelay.go:121 +0x4e
github.com/ethereum/go-ethereum/les.(*requestDistributor).nextRequest(0xc4200d7090, 0x0, 0x0, 0x0, 0x0)
/build/ethereum-3tTh57/ethereum-1.8.25+build18425+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/les/distributor.go:195 +0x296
github.com/ethereum/go-ethereum/les.(*requestDistributor).loop(0xc4200d7090)
/build/ethereum-3tTh57/ethereum-1.8.25+build18425+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/les/distributor.go:129 +0x7f
created by github.com/ethereum/go-ethereum/les.newRequestDistributor
/build/ethereum-3tTh57/ethereum-1.8.25+build18425+bionic/build/_workspace/src/github.com/ethereum/go-ethereum/les/distributor.go:80 +0x10b

@OliverBui
Copy link

@osiztechnologies i have same issue with geth 1.8.23 , sync mode - light
when i create a transaction from my node, the transaction is not publish to blockchain and the peer down from 8 to 0.

@ligi
Copy link
Member

ligi commented Apr 9, 2019

thanks for the reports! As far as I see it only happens in sync mode light - correct? cc @zsfelfoldi

@zsfelfoldi
Copy link
Contributor

Found the cause, this is a 1.8 specific bug, old client versions are still sending the LES/1 version of SendTx through LES/2 protocol. It did work until now when we removed LES/1 support. So the bug surfaces now if you connect an old client to a server running latest master. I can make the server accept old SendTx again but some servers are already out there not supporting it. Until we figure out the best way to handle the situation the quickest fix is to compile your client from latest master too.

@ligi ligi changed the title Not able to create contract address & transaction Not able to create contract address & transaction with sync mode light Apr 9, 2019
@ChinmayRai
Copy link

@zsfelfoldi Do you mean that instead of the 1.8.25 whiteBall stable release we should use the master repo (version : 1.9.0-unstable-33d28f37) ?

Thanks in Advance

@dannieb
Copy link

dannieb commented Apr 10, 2019

@zsfelfoldi @karalabe Do you know if this issue will arise with a fast sync node? Also, is this isolated to only connecting to peer nodes running the latest master branch? So if we were to connect strictly to peers run a 1.8 version of geth, we wouldn't experience this issue?

@OliverBui
Copy link

I see the updated release, is this issues is fixed?

@trueshura
Copy link

trueshura commented Apr 10, 2019

I see the updated release, is this issues is fixed?

geth bult from master branch works (just send TX).

@OliverBui
Copy link

@trueshura I get PPA from https://launchpad.net/~ethereum/+archive/ubuntu/ethereum and install ethereum-unstable, but can not send TX, issue context canceled

@osiztechnologies
Copy link
Author

same error.

@OliverBui
Copy link

@osiztechnologies did you use PPA or build from master?

@osiztechnologies
Copy link
Author

@OliverBui build from master - geth-linux-amd64-1.9.0-unstable

@OliverBui
Copy link

@osiztechnologies and it do not resolve this issue?

@osiztechnologies
Copy link
Author

@OliverBui No. If you have any solution share here.

@OliverBui
Copy link

@osiztechnologies Nope, I am waiting the solutions. Waiting...

@osiztechnologies
Copy link
Author

OliverBui +1

@Instantbitex
Copy link

When it is going to be fixed

@Instantbitex
Copy link

Instantbitex commented Apr 10, 2019

@osiztechnologies is any other solution to fix it or need to wait until we get solution here

@holiman
Copy link
Contributor

holiman commented Apr 10, 2019

It's merged into 1.8 now: #19437. Official release binaries are in the pipeline, should be available in a little while.

@osiztechnologies
Copy link
Author

@Instantbitex We have checking other solution to fix. otherwise we want to wait for bug fixed release package.

@karalabe
Copy link
Member

This issue has been fixed in #19437, and just shipped in Geth v1.8.26. Please allow half an hour or so for the binaries to be built and pushed out. Sorry for any inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants