-
Notifications
You must be signed in to change notification settings - Fork 517
Go 1.14 is incompatible with the alpine images #320
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
Comments
So from the error message: runtime: mlock of signal stack failed: 12
runtime: increase the mlock limit (ulimit -l) or
runtime: update your kernel to 5.3.15+, 5.4.2+, or 5.5+
fatal error: mlock failed Setting the memlock ulimit should work, I'm using kernel 4.15 $ docker run -it --rm --ulimit memlock=-1 golang:1.14-rc-alpine ash
/go # ulimit -l
unlimited For building your image DockerfileFROM golang:1.14-rc-alpine
RUN ulimit -l
RUN apk add --no-cache make gcc musl-dev linux-headers git wget
RUN set -eux; \
wget -O geth.tgz "https://github.com/ethereum/go-ethereum/archive/v1.9.11.tar.gz"; \
mkdir /go-etherium; \
tar -C /go-etherium -xzf geth.tgz --strip-components=1; \
rm geth.tgz; \
cd /go-etherium; \
make geth docker build --ulimit memlock=-1$ docker build --ulimit memlock=-1 . -t golang:test
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM golang:1.14-rc-alpine
---> a9180f527c36
Step 2/4 : RUN ulimit -l
---> Using cache
---> edb5d5780f5d
Step 3/4 : RUN apk add --no-cache make gcc musl-dev linux-headers git wget
---> Using cache
---> 4593746a73c8
Step 4/4 : RUN set -eux; wget -O geth.tgz "https://github.com/ethereum/go-ethereum/archive/v1.9.11.tar.gz"; mkdir /go-etherium; tar -C /go-etherium -xzf geth.tgz --strip-components=1; rm geth.tgz; cd /go-etherium; make geth
---> Running in 78e6f825cdd5
+ wget -O geth.tgz https://github.com/ethereum/go-ethereum/archive/v1.9.11.tar.gz
--2020-02-25 21:08:43-- https://github.com/ethereum/go-ethereum/archive/v1.9.11.tar.gz
Resolving github.com... 192.30.255.112
Connecting to github.com|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/ethereum/go-ethereum/tar.gz/v1.9.11 [following]
--2020-02-25 21:08:44-- https://codeload.github.com/ethereum/go-ethereum/tar.gz/v1.9.11
Resolving codeload.github.com... 192.30.253.120
Connecting to codeload.github.com|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'geth.tgz'
0K .......... .......... .......... .......... .......... 338K
50K .......... .......... .......... .......... .......... 684K
100K .......... .......... .......... .......... .......... 10.6M
150K .......... .......... .......... .......... .......... 730K
200K .......... .......... .......... .......... .......... 10.7M
250K .......... .......... .......... .......... .......... 11.1M
300K .......... .......... .......... .......... .......... 10.7M
350K .......... .......... .......... .......... .......... 1.44M
400K .......... .......... .......... .......... .......... 1.64M
450K .......... .......... .......... .......... .......... 11.0M
500K .......... .......... .......... .......... .......... 8.28M
550K .......... .......... .......... .......... .......... 7.60M
600K .......... .......... .......... .......... .......... 18.4M
650K .......... .......... .......... .......... .......... 13.3M
700K .......... .......... .......... .......... .......... 11.4M
750K .......... .......... .......... .......... .......... 2.97M
800K .......... .......... .......... .......... .......... 1.66M
850K .......... .......... .......... .......... .......... 11.3M
900K .......... .......... .......... .......... .......... 9.15M
950K .......... .......... .......... .......... .......... 11.5M
1000K .......... .......... .......... .......... .......... 11.5M
1050K .......... .......... .......... .......... .......... 11.4M
1100K .......... .......... .......... .......... .......... 11.1M
1150K .......... .......... .......... .......... .......... 11.0M
1200K .......... .......... .......... .......... .......... 11.5M
1250K .......... .......... .......... .......... .......... 11.7M
1300K .......... .......... .......... .......... .......... 8.85M
1350K .......... .......... .......... .......... .......... 11.6M
1400K .......... .......... .......... .......... .......... 11.3M
1450K .......... .......... .......... .......... .......... 473K
1500K .......... .......... .......... .......... .......... 27.1M
1550K .......... .......... .......... .......... .......... 19.7M
1600K .......... .......... .......... .......... .......... 28.5M
1650K .......... .......... .......... .......... .......... 69.5M
1700K .......... .......... .......... .......... .......... 71.3M
1750K .......... .......... .......... .......... .......... 72.1M
1800K .......... .......... .......... .......... .......... 84.5M
1850K .......... .......... .......... .......... .......... 79.7M
1900K .......... .......... .......... .......... .......... 72.0M
1950K .......... .......... .......... .......... .......... 71.1M
2000K .......... .......... .......... .......... .......... 75.1M
2050K .......... .......... .......... .......... .......... 77.5M
2100K .......... .......... .......... .......... .......... 76.8M
2150K .......... .......... .......... .......... .......... 81.6M
2200K .......... .......... .......... .......... .......... 82.9M
2250K .......... .......... .......... .......... .......... 82.9M
2300K .......... .......... .......... .......... .......... 1.41M
2350K .......... .......... .......... .......... .......... 24.6M
2400K .......... .......... .......... .......... .......... 19.1M
2450K .......... .......... .......... .......... .......... 30.9M
2500K .......... .......... .......... .......... .......... 61.5M
2550K .......... .......... .......... .......... .......... 70.1M
2600K .......... .......... .......... .......... .......... 66.6M
2650K .......... .......... .......... .......... .......... 66.1M
2700K .......... .......... .......... .......... .......... 3.01M
2750K .......... .......... .......... .......... .......... 130M
2800K .......... .......... .......... .......... .......... 120M
2850K .......... .......... .......... .......... .......... 126M
2900K .......... .......... .......... .......... .......... 112M
2950K .......... .......... .......... .......... .......... 125M
3000K .......... .......... .......... .......... .......... 145M
3050K .......... .......... .......... .......... .......... 156M
3100K .......... .......... .......... .......... .......... 138M
3150K .......... .......... .......... .......... .......... 154M
3200K .......... .......... .......... .......... .......... 141M
3250K .......... .......... .......... .......... .......... 121M
3300K .......... .......... .......... .......... .......... 32.2M
3350K .......... .......... .......... .......... .......... 11.1M
3400K .......... .......... .......... .......... .......... 11.9M
3450K .......... .......... .......... .......... .......... 11.7M
3500K .......... .......... .......... .......... .......... 11.5M
3550K .......... .......... .......... .......... .......... 11.4M
3600K .......... .......... .......... .......... .......... 11.5M
3650K .......... .......... .......... .......... .......... 8.68M
3700K .......... .......... .......... .......... .......... 11.4M
3750K .......... .......... .......... .......... .......... 11.5M
3800K .......... .......... .......... .......... .......... 12.3M
3850K .......... .......... .......... .......... .......... 10.3M
3900K .......... .......... .......... .......... .......... 13.7M
3950K .......... .......... .......... .......... .......... 10.8M
4000K .......... .......... .......... .......... .......... 10.6M
4050K .......... .......... .......... .......... .......... 11.1M
4100K .......... .......... .......... .......... .......... 9.43M
4150K .......... .......... .......... .......... .......... 12.4M
4200K .......... .......... .......... .......... .......... 9.83M
4250K .......... .......... .......... .......... .......... 9.73M
4300K .......... .......... .......... .......... .......... 12.3M
4350K .......... .......... .......... .......... .......... 11.0M
4400K .......... .......... .......... .......... .......... 10.8M
4450K .......... .......... .......... .......... .......... 10.9M
4500K .......... .......... .......... .......... .......... 11.0M
4550K .......... .......... .......... .......... .......... 11.0M
4600K .......... .......... .......... .......... .......... 10.8M
4650K .......... .......... .......... .......... .......... 8.68M
4700K .......... .......... .......... .......... .......... 13.9M
4750K .......... .......... .......... .......... .......... 10.9M
4800K .......... .......... .......... .......... .......... 10.7M
4850K .......... .......... .......... .......... .......... 11.2M
4900K .......... .......... .......... .......... .......... 10.1M
4950K .......... .......... .......... .......... .......... 12.0M
5000K .......... .......... .......... .......... .......... 8.64M
5050K .......... .......... .......... .......... .......... 15.2M
5100K .......... .......... .......... .......... .......... 10.7M
5150K .......... .......... .......... .......... .......... 10.9M
5200K .......... .......... .......... .......... .......... 11.1M
5250K .......... .......... .......... .......... .......... 11.0M
5300K .......... .......... .......... .......... .......... 7.05M
5350K .......... .......... .......... .......... .......... 14.8M
5400K .......... .......... .......... .......... .......... 15.4M
5450K .......... .......... .......... .......... .......... 11.0M
5500K .......... .......... .......... .......... .......... 11.0M
5550K .......... .......... .......... .......... .......... 9.06M
5600K .......... .......... .......... .......... .......... 10.7M
5650K .......... .......... .......... .......... .......... 11.2M
5700K .......... .......... .......... .......... .......... 10.6M
5750K .......... .......... .......... .......... .......... 11.2M
5800K .......... .......... .......... .......... .......... 10.2M
5850K .......... .......... .......... .......... .......... 9.70M
5900K .......... .......... .......... .......... .......... 13.1M
5950K .......... .......... .......... .......... .......... 11.0M
6000K .......... .......... .......... .......... .......... 11.0M
6050K .......... .......... .......... .......... .......... 10.9M
6100K .......... .......... .......... .......... .......... 10.8M
6150K .......... .......... .......... .......... .......... 11.0M
6200K .......... .......... .......... .......... .......... 10.9M
6250K .......... .......... .......... .......... .......... 11.0M
6300K .......... .......... .......... .......... .......... 10.8M
6350K .......... .......... .......... .......... .......... 10.9M
6400K .......... .......... .......... .......... .......... 10.7M
6450K .......... .......... .......... .......... .......... 11.3M
6500K .......... .......... .......... .......... .......... 10.4M
6550K .......... .......... .......... .......... .......... 11.2M
6600K .......... .......... .......... .......... .......... 10.8M
6650K .......... .......... .......... .......... .......... 11.0M
6700K .......... .......... .......... .......... .......... 10.8M
6750K .......... .......... .......... .......... .......... 10.9M
6800K .......... .......... .......... .......... .......... 10.0M
6850K .......... .......... .......... .......... .......... 7.66M
6900K .......... .......... .......... .......... .......... 7.64M
6950K .......... .......... .......... .......... .......... 7.31M
7000K .......... .......... .......... .......... .......... 6.94M
7050K .......... .......... .......... .......... .......... 8.17M
7100K .......... .......... .......... .......... .......... 5.98M
7150K .......... .......... .......... .......... .......... 8.30M
7200K .......... .......... .......... .......... .......... 6.23M
7250K .......... .......... .......... .......... .......... 7.02M
7300K .......... .......... .......... .......... .......... 6.58M
7350K .......... .......... .......... .......... .......... 6.18M
7400K .......... .......... .......... .......... .......... 10.7M
7450K .......... .......... .......... .......... .......... 6.95M
7500K .......... .......... .......... .......... .......... 7.19M
7550K .......... .......... .......... .......... .......... 8.14M
7600K .......... .......... .......... .......... .......... 6.14M
7650K .......... .......... .......... .......... .......... 7.02M
7700K .......... .......... .......... .......... .......... 7.23M
7750K .......... .......... .......... .......... .......... 6.99M
7800K .......... .......... .......... .......... .......... 7.86M
7850K .......... .......... .......... .......... .......... 6.62M
7900K .......... .......... .......... .......... .......... 7.74M
7950K .......... .......... .......... .......... .......... 7.20M
8000K .......... .......... .......... .......... .......... 6.73M
8050K .......... .......... .......... .......... .......... 4.96M
8100K .......... .......... .......... .......... .......... 10.6M
8150K .......... .......... .......... .......... .......... 6.05M
8200K .......... .......... .......... .......... .......... 7.95M
8250K .......... .......... .......... .......... .......... 6.82M
8300K .......... .......... .......... .......... .......... 4.05M
8350K .......... .......... .......... .......... .......... 4.70M
8400K .......... .......... .......... .......... .......... 6.31M
8450K .......... .......... .......... .......... .... 8.39M=1.2s
2020-02-25 21:08:46 (6.73 MB/s) - 'geth.tgz' saved [8698235]
+ mkdir /go-etherium
+ tar -C /go-etherium -xzf geth.tgz '--strip-components=1'
+ rm geth.tgz
+ cd /go-etherium
+ make geth
env GO111MODULE=on go run build/ci.go install ./cmd/geth
go: downloading github.com/cespare/cp v0.1.0
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading github.com/Azure/azure-storage-blob-go v0.7.0
go: downloading github.com/Azure/azure-pipeline-go v0.2.2
go: downloading github.com/mattn/go-ieproxy v0.0.0-20190702010315-6dee0af9227d
>>> /usr/local/go/bin/go install -v ./cmd/geth
go: downloading gopkg.in/urfave/cli.v1 v1.20.0
go: downloading github.com/naoina/toml v0.1.2-0.20170918210437-9fafd6967416
go: downloading github.com/rjeczalik/notify v0.9.1
go: downloading github.com/fjl/memsize v0.0.0-20180418122429-ca190fb6ffbc
go: downloading github.com/steakknife/bloomfilter v0.0.0-20180922174646-6819c0d2a570
go: downloading github.com/pborman/uuid v0.0.0-20170112150404-1b00554d8222
go: downloading github.com/syndtr/goleveldb v1.0.1-0.20190923125748-758128399b1d
go: downloading github.com/olekukonko/tablewriter v0.0.2-0.20190409134802-7e037d187b0c
go: downloading github.com/mattn/go-colorable v0.1.0
go: downloading github.com/hashicorp/golang-lru v0.0.0-20160813221303-0a025b7e63ad
go: downloading golang.org/x/sync v0.0.0-20181108010431-42b317875d0f
go: downloading github.com/aristanetworks/goarista v0.0.0-20170210015632-ea17b1a17847
go: downloading github.com/karalabe/usb v0.0.0-20190919080040-51dc0efba356
go: downloading github.com/mattn/go-runewidth v0.0.4
go: downloading github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff
go: downloading golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7
go: downloading github.com/golang/protobuf v1.3.2-0.20190517061210-b285ee9cfc6c
go: downloading github.com/steakknife/hamming v0.0.0-20180906055917-c99c65617cd3
go: downloading github.com/VictoriaMetrics/fastcache v1.5.3
go: downloading github.com/naoina/go-stringutil v0.1.0
go: downloading github.com/deckarep/golang-set v0.0.0-20180603214616-504e848d77ea
go: downloading github.com/gorilla/websocket v1.4.1-0.20190629185528-ae1634f6a989
go: downloading github.com/graph-gophers/graphql-go v0.0.0-20191115155744-f33e81362277
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading gopkg.in/olebedev/go-duktape.v3 v3.0.0-20190213234257-ec84240a7772
go: downloading github.com/mattn/go-isatty v0.0.5-0.20180830101745-3fb116b82035
go: downloading github.com/rs/cors v0.0.0-20160617231935-a62a804a8a00
go: downloading github.com/wsddn/go-ecdh v0.0.0-20161211032359-48726bab9208
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/tyler-smith/go-bip39 v1.0.1-0.20181017060643-dbb3b84ba2ef
go: downloading github.com/dop251/goja v0.0.0-20200106141417-aaec0e7bde29
go: downloading github.com/peterh/liner v1.1.1-0.20190123174540-a2c9a5303de7
go: downloading github.com/rs/xhandler v0.0.0-20160618193221-ed27b6fd6521
go: downloading github.com/status-im/keycard-go v0.0.0-20190316090335-8537d3370df4
go: downloading github.com/huin/goupnp v0.0.0-20161224104101-679507af18f3
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/opentracing/opentracing-go v1.1.0
go: downloading golang.org/x/net v0.0.0-20190628185345-da137c7871d7
go: downloading github.com/fatih/color v1.3.0
go: downloading github.com/go-stack/stack v1.8.0
go: downloading github.com/elastic/gosigar v0.8.1-0.20180330100440-37f05ff46ffa
go: downloading github.com/prometheus/tsdb v0.6.2-0.20190402121629-4f204dcbc150
go: downloading github.com/jackpal/go-nat-pmp v1.0.2-0.20160603034137-1fa385a6f458
go: downloading github.com/influxdata/influxdb v1.2.3-0.20180221223340-01288bdb0883
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/go-sourcemap/sourcemap v2.1.2+incompatible
go: downloading golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
go: downloading github.com/edsrzf/mmap-go v0.0.0-20160512033002-935e0e8a636c
go: downloading github.com/dlclark/regexp2 v1.2.0
go: downloading github.com/pkg/errors v0.8.1
golang.org/x/net/html/atom
golang.org/x/text/encoding/internal/identifier
golang.org/x/crypto/curve25519
golang.org/x/text/internal/utf8internal
github.com/ethereum/go-ethereum/internal/web3ext
github.com/ethereum/go-ethereum/ethdb
github.com/steakknife/hamming
github.com/cespare/xxhash/v2
github.com/golang/snappy
golang.org/x/sys/unix
github.com/aristanetworks/goarista/monotime
github.com/go-stack/stack
github.com/deckarep/golang-set
github.com/ethereum/go-ethereum/common/mclock
github.com/pborman/uuid
github.com/ethereum/go-ethereum/log
github.com/VictoriaMetrics/fastcache
golang.org/x/crypto/pbkdf2
github.com/ethereum/go-ethereum/common/prque
github.com/ethereum/go-ethereum/event
golang.org/x/crypto/scrypt
github.com/steakknife/bloomfilter
github.com/ethereum/go-ethereum/common/fdlimit
github.com/hashicorp/golang-lru/simplelru
github.com/ethereum/go-ethereum/p2p/netutil
golang.org/x/net/context
github.com/gorilla/websocket
github.com/hashicorp/golang-lru
github.com/edsrzf/mmap-go
github.com/ethereum/go-ethereum/common/bitutil
github.com/syndtr/goleveldb/leveldb/util
github.com/rs/xhandler
github.com/syndtr/goleveldb/leveldb/comparer
github.com/syndtr/goleveldb/leveldb/storage
github.com/ethereum/go-ethereum/ethdb/memorydb
github.com/mattn/go-runewidth
github.com/pkg/errors
github.com/syndtr/goleveldb/leveldb/cache
github.com/rs/cors
github.com/syndtr/goleveldb/leveldb/filter
golang.org/x/sys/cpu
github.com/olekukonko/tablewriter
golang.org/x/crypto/ripemd160
github.com/ethereum/go-ethereum/accounts/abi
github.com/syndtr/goleveldb/leveldb/opt
github.com/elastic/gosigar
github.com/rjeczalik/notify
github.com/ethereum/go-ethereum/rpc
github.com/syndtr/goleveldb/leveldb/errors
github.com/prometheus/tsdb/fileutil
github.com/syndtr/goleveldb/leveldb/iterator
github.com/syndtr/goleveldb/leveldb/journal
github.com/ethereum/go-ethereum/crypto/blake2b
github.com/ethereum/go-ethereum/metrics
github.com/syndtr/goleveldb/leveldb/memdb
github.com/syndtr/goleveldb/leveldb/table
github.com/davecgh/go-spew/spew
github.com/gballet/go-libpcsclite
github.com/ethereum/go-ethereum/crypto/bn256/cloudflare
github.com/status-im/keycard-go/derivationpath
github.com/wsddn/go-ecdh
golang.org/x/text/transform
github.com/ethereum/go-ethereum/crypto/ecies
github.com/ethereum/go-ethereum/p2p/enr
github.com/huin/goupnp/httpu
github.com/huin/goupnp/scpd
golang.org/x/text/unicode/norm
github.com/huin/goupnp/soap
github.com/huin/goupnp/ssdp
github.com/syndtr/goleveldb/leveldb
github.com/ethereum/go-ethereum/crypto/bn256
golang.org/x/net/html
golang.org/x/text/encoding
golang.org/x/text/runes
golang.org/x/text/internal/tag
golang.org/x/text/encoding/internal
golang.org/x/text/internal/language
github.com/ethereum/go-ethereum/trie
golang.org/x/text/encoding/charmap
golang.org/x/text/encoding/japanese
golang.org/x/text/encoding/korean
golang.org/x/text/encoding/simplifiedchinese
golang.org/x/text/encoding/traditionalchinese
golang.org/x/text/encoding/unicode
golang.org/x/text/internal/language/compact
github.com/jackpal/go-nat-pmp
github.com/ethereum/go-ethereum/core/types
golang.org/x/text/language
github.com/tyler-smith/go-bip39/wordlists
github.com/ethereum/go-ethereum/ethdb/leveldb
github.com/ethereum/go-ethereum/p2p/enode
github.com/ethereum/go-ethereum/p2p/discv5
github.com/tyler-smith/go-bip39
github.com/golang/protobuf/proto
github.com/karalabe/usb
github.com/ethereum/go-ethereum/signer/storage
golang.org/x/crypto/ssh/terminal
golang.org/x/text/encoding/htmlindex
github.com/ethereum/go-ethereum/eth/tracers/internal/tracers
github.com/ethereum/go-ethereum
github.com/ethereum/go-ethereum/core/state
github.com/ethereum/go-ethereum/core/rawdb
github.com/ethereum/go-ethereum/core/vm
github.com/ethereum/go-ethereum/core/bloombits
github.com/ethereum/go-ethereum/accounts
github.com/ethereum/go-ethereum/p2p/discover
golang.org/x/net/html/charset
github.com/ethereum/go-ethereum/accounts/keystore
github.com/ethereum/go-ethereum/accounts/scwallet
github.com/ethereum/go-ethereum/consensus
github.com/ethereum/go-ethereum/consensus/misc
github.com/huin/goupnp
gopkg.in/olebedev/go-duktape.v3
github.com/ethereum/go-ethereum/consensus/clique
github.com/ethereum/go-ethereum/consensus/ethash
github.com/ethereum/go-ethereum/metrics/prometheus
github.com/huin/goupnp/dcps/internetgateway1
github.com/huin/goupnp/dcps/internetgateway2
github.com/ethereum/go-ethereum/metrics/exp
github.com/ethereum/go-ethereum/core
github.com/golang/protobuf/protoc-gen-go/descriptor
github.com/fjl/memsize
github.com/mattn/go-isatty
gopkg.in/urfave/cli.v1
github.com/mattn/go-colorable
github.com/ethereum/go-ethereum/p2p/nat
github.com/fjl/memsize/memsizeui
golang.org/x/time/rate
github.com/ethereum/go-ethereum/les/flowcontrol
github.com/ethereum/go-ethereum/p2p/dnsdisc
github.com/ethereum/go-ethereum/accounts/usbwallet/trezor
github.com/ethereum/go-ethereum/p2p
github.com/graph-gophers/graphql-go/errors
github.com/ethereum/go-ethereum/internal/debug
github.com/graph-gophers/graphql-go/internal/common
github.com/graph-gophers/graphql-go/log
github.com/graph-gophers/graphql-go/internal/schema
github.com/graph-gophers/graphql-go/internal/query
github.com/opentracing/opentracing-go/log
github.com/influxdata/influxdb/pkg/escape
github.com/opentracing/opentracing-go
github.com/influxdata/influxdb/models
golang.org/x/sync/syncmap
github.com/graph-gophers/graphql-go/internal/exec/packer
github.com/graph-gophers/graphql-go/introspection
github.com/opentracing/opentracing-go/ext
github.com/graph-gophers/graphql-go/internal/validation
github.com/graph-gophers/graphql-go/internal/exec/resolvable
github.com/ethereum/go-ethereum/whisper/whisperv6
github.com/graph-gophers/graphql-go/trace
github.com/dlclark/regexp2/syntax
github.com/ethereum/go-ethereum/eth/downloader
github.com/ethereum/go-ethereum/core/forkid
github.com/ethereum/go-ethereum/eth/fetcher
github.com/ethereum/go-ethereum/eth/filters
github.com/ethereum/go-ethereum/light
github.com/influxdata/influxdb/client
github.com/dlclark/regexp2
github.com/graph-gophers/graphql-go/internal/exec/selected
github.com/ethereum/go-ethereum/internal/ethapi
github.com/ethereum/go-ethereum/miner
github.com/graph-gophers/graphql-go/internal/exec
github.com/dop251/goja/file
github.com/ethereum/go-ethereum/metrics/influxdb
github.com/dop251/goja/token
github.com/go-sourcemap/sourcemap/internal/base64vlq
github.com/go-sourcemap/sourcemap
golang.org/x/text/internal
golang.org/x/text/internal/colltab
golang.org/x/text/cases
github.com/fatih/color
github.com/dop251/goja/ast
github.com/graph-gophers/graphql-go
github.com/ethereum/go-ethereum/internal/jsre/deps
github.com/dop251/goja/parser
github.com/peterh/liner
github.com/ethereum/go-ethereum/ethclient
golang.org/x/text/collate
github.com/graph-gophers/graphql-go/relay
github.com/ethereum/go-ethereum/eth/gasprice
github.com/ethereum/go-ethereum/graphql
github.com/naoina/go-stringutil
github.com/naoina/toml/ast
github.com/naoina/toml
github.com/dop251/goja
github.com/ethereum/go-ethereum/accounts/usbwallet
github.com/ethereum/go-ethereum/signer/core
github.com/ethereum/go-ethereum/accounts/external
github.com/ethereum/go-ethereum/internal/jsre
github.com/ethereum/go-ethereum/node
github.com/ethereum/go-ethereum/accounts/abi/bind
github.com/ethereum/go-ethereum/console
github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract
github.com/ethereum/go-ethereum/accounts/abi/bind/backends
github.com/ethereum/go-ethereum/contracts/checkpointoracle
github.com/ethereum/go-ethereum/les/checkpointoracle
# gopkg.in/olebedev/go-duktape.v3
duk_logging.c: In function 'duk__logger_prototype_log_shared':
duk_logging.c:184:64: warning: 'Z' directive writing 1 byte into a region of size between 0 and 9 [-Wformat-overflow=]
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^
duk_logging.c:184:2: note: 'sprintf' output between 25 and 85 bytes into a destination of size 32
184 | sprintf((char *) date_buf, "%04d-%02d-%02dT%02d:%02d:%02d.%03dZ",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
185 | (int) comp.year, (int) comp.month + 1, (int) comp.day,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
186 | (int) comp.hours, (int) comp.minutes, (int) comp.seconds,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
187 | (int) comp.milliseconds);
| ~~~~~~~~~~~~~~~~~~~~~~~~
github.com/ethereum/go-ethereum/eth/tracers
github.com/ethereum/go-ethereum/eth
github.com/ethereum/go-ethereum/les
github.com/ethereum/go-ethereum/ethstats
github.com/ethereum/go-ethereum/cmd/utils
github.com/ethereum/go-ethereum/cmd/geth
Done building.
Run "./build/bin/geth" to launch geth.
Removing intermediate container 78e6f825cdd5
---> b390a12dcfe0
Successfully built b390a12dcfe0
Successfully tagged golang:test |
Yes, the workaround is one possible path. However that entails everyone using the alpine image to modify their build infra. Not sure that that is a good path to go down on. |
I'm also unsure if this workaround would work on automated builds on docker hub, since I can only specify the Dockerfile to use, but have no control over the build flags. Maybe I can set the limits within my build container? But we're again entering a weird territory of modifying build infra to handle a Go issue. |
|
Our docker images do not contain Linux kernels. The kernel is the host kernel (that's how docker containers work). |
I happen to be on 5.3.9 on my Debian box (been holding off on the update for unrelated reasons), so I should be able to reproduce the issue. Sure enough, when I build the sample Additionally, to determine whether this is Alpine related, I switched to So to summarize:
This is unfortunate, but there's really nothing we can change in the image to accommodate this change -- the only way to satisfy this memory corruption mitigation is unfortunately going to be updating the host kernel to one of those listed or adding the necessary runtime parameters to adjust the relevant For the case of Docker Hub's automated builds, I would suggest filing a support/wishlist issue with them to request the ability to adjust |
To clarify, Go 1.14 added a feature based on OS signals. Use of signals can trigger a Linux kernel bug introduced in 5.3. |
Go 1.14 which we use to build our code in golang:alpine docker images aparenlty has some issues, which are fixed by setting these flags as described here: docker-library/golang#320 Signed-off-by: Nikolay Nikolaev <[email protected]>
Go 1.14 which we use to build our code in golang:alpine docker images aparenlty has some issues, which are fixed by setting these flags as described here: docker-library/golang#320 Signed-off-by: Nikolay Nikolaev <[email protected]>
* Update the NSM version to the latest available * Fix docker build of golang images Go 1.14 which we use to build our code in golang:alpine docker images apparently has some issues, which are fixed by setting these flags as described here: docker-library/golang#320 * Update Makefile and go.mod for vpp v3 * Migrate the bridge-domain to vpp v3 * Migrate the load-balancer to vpp v3 * Migrate universal-cnf to vpp v3 * Migrate vpp-icmp to vpp v3 * Go 1.14 update Signed-off-by: Nikolay Nikolaev <[email protected]>
Go 1.14 added some weird mlocks in its runtime, which make Go spectacularly crash on a variety of kernels. Among them, the alpine docker images on docker hub. Upstream points fingers to everyone else to fix it, they won't.
golang/go#37436 (comment)
The text was updated successfully, but these errors were encountered: