Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Fix build on darwin #2633

Merged
merged 1 commit into from
Sep 13, 2021
Merged

Fix build on darwin #2633

merged 1 commit into from
Sep 13, 2021

Conversation

a-palchikov
Copy link
Contributor

@a-palchikov a-palchikov commented Sep 9, 2021

Description

Fix the unexpected signal error during build on darwin.

Introduced in this commit: 6ff175a (#2594).
Possibly caused by/related to: golang/go#46763.

Type of change

  • Regression fix (non-breaking change which fixes a regression)
  • Internal change (not necessarily a bug fix or a new feature)

TODOs

  • Self-review the change
  • Perform manual testing
  • Address review feedback

Testing done

Before the change:

Logs
$ go run -mod=vendor mage.go package:rbac
...
#3 1.535 fatal error: unexpected signal during runtime execution
#3 1.537 [signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff6811d70a]
#3 1.537 
#3 1.537 runtime stack:
#3 1.537 runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6811d70a
#3 1.537 stack: frame={sp:0x70000ea40e58, fp:0x70000ea40ea8} stack=[0x70000e9c1338,0x70000ea40f38)
#3 1.537 0x000070000ea40d58:  0x010070000ea40d78  0x0000000000000004 
#3 1.537 0x000070000ea40d68:  0x000000000000001f  0x00007fff6811d70a 
#3 1.537 0x000070000ea40d78:  0x0b01dfacedebac1e  0x0000000000000001 
#3 1.537 0x000070000ea40d88:  0x0000000004036891 <runtime.throw+0x0000000000000071>  0x000070000ea40e28 
#3 1.537 0x000070000ea40d98:  0x0000000007647323  0x000070000ea40de0 
#3 1.537 0x000070000ea40da8:  0x0000000004036b48 <runtime.fatalthrow.func1+0x0000000000000048>  0x000000c0006824e0 
#3 1.537 0x000070000ea40db8:  0x0000000000000001  0x0000000000000001 
#3 1.537 0x000070000ea40dc8:  0x000070000ea40e28  0x0000000004036891 <runtime.throw+0x0000000000000071> 
#3 1.537 0x000070000ea40dd8:  0x000000c0006824e0  0x000070000ea40e18 
#3 1.537 0x000070000ea40de8:  0x0000000004036ad0 <runtime.fatalthrow+0x0000000000000050>  0x000070000ea40df8 
#3 1.537 0x000070000ea40df8:  0x0000000004036b00 <runtime.fatalthrow.func1+0x0000000000000000>  0x000000c0006824e0 
#3 1.538 0x000070000ea40e08:  0x0000000004036891 <runtime.throw+0x0000000000000071>  0x000070000ea40e28 
#3 1.538 0x000070000ea40e18:  0x000070000ea40e48  0x0000000004036891 <runtime.throw+0x0000000000000071> 
#3 1.538 0x000070000ea40e28:  0x000070000ea40e30  0x00000000040368c0 <runtime.throw.func1+0x0000000000000000> 
#3 1.538 0x000070000ea40e38:  0x00000000076799c0  0x000000000000002a 
#3 1.538 0x000070000ea40e48:  0x000070000ea40e98  0x000000000404d576 <runtime.sigpanic+0x0000000000000396> 
#3 1.538 0x000070000ea40e58: <0x00000000076799c0  0x0000000000000000 
#3 1.538 0x000070000ea40e68:  0x0000096ce5499e87  0x0000000004027a86 <runtime.(*mheap).allocSpan+0x0000000000000546> 
#3 1.538 0x000070000ea40e78:  0x0000000004056886 <runtime.libcCall+0x0000000000000066>  0x000000000406d220 <runtime.pthread_mutex_unlock_trampoline+0x0000000000000000> 
#3 1.538 0x000070000ea40e88:  0x000070000ea40ed0  0x0000000200000000 
#3 1.538 0x000070000ea40e98:  0x000070000ea40ee0 !0x00007fff6811d70a 
#3 1.538 0x000070000ea40ea8: >0x000070000ea40ee0  0x0000000009ca4000 
#3 1.538 0x000070000ea40eb8:  0x00000000000006be  0x000000000434c8c5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 
#3 1.538 0x000070000ea40ec8:  0x000000000406d31f <runtime.syscall+0x000000000000001f>  0x000000c00137f0a8 
#3 1.538 0x000070000ea40ed8:  0x000000c000680480  0x000000c00137f078 
#3 1.538 0x000070000ea40ee8:  0x000000000406b170 <runtime.asmcgocall+0x0000000000000070>  0x000070000ea40f20 
#3 1.538 0x000070000ea40ef8:  0x000000000400ec0e <runtime.persistentalloc.func1+0x000000000000002e>  0x0000000000000020 
#3 1.538 0x000070000ea40f08:  0x000070000ea40f20  0x0000000009e2b540 
#3 1.538 0x000070000ea40f18:  0x0000000000000fb0  0x000000c000a29520 
#3 1.538 0x000070000ea40f28:  0x0000000004069289 <runtime.systemstack+0x0000000000000049>  0x000070000ea40f50 
#3 1.538 runtime.throw({0x76799c0, 0x0})
#3 1.538 	runtime/panic.go:1198 +0x71
#3 1.538 runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6811d70a
#3 1.538 stack: frame={sp:0x70000ea40e58, fp:0x70000ea40ea8} stack=[0x70000e9c1338,0x70000ea40f38)
#3 1.538 0x000070000ea40d58:  0x010070000ea40d78  0x0000000000000004 
#3 1.538 0x000070000ea40d68:  0x000000000000001f  0x00007fff6811d70a 
#3 1.538 0x000070000ea40d78:  0x0b01dfacedebac1e  0x0000000000000001 
#3 1.538 0x000070000ea40d88:  0x0000000004036891 <runtime.throw+0x0000000000000071>  0x000070000ea40e28 
#3 1.538 0x000070000ea40d98:  0x0000000007647323  0x000070000ea40de0 
#3 1.538 0x000070000ea40da8:  0x0000000004036b48 <runtime.fatalthrow.func1+0x0000000000000048>  0x000000c0006824e0 
#3 1.538 0x000070000ea40db8:  0x0000000000000001  0x0000000000000001 
#3 1.538 0x000070000ea40dc8:  0x000070000ea40e28  0x0000000004036891 <runtime.throw+0x0000000000000071> 
#3 1.538 0x000070000ea40dd8:  0x000000c0006824e0  0x000070000ea40e18 
#3 1.538 0x000070000ea40de8:  0x0000000004036ad0 <runtime.fatalthrow+0x0000000000000050>  0x000070000ea40df8 
#3 1.538 0x000070000ea40df8:  0x0000000004036b00 <runtime.fatalthrow.func1+0x0000000000000000>  0x000000c0006824e0 
#3 1.538 0x000070000ea40e08:  0x0000000004036891 <runtime.throw+0x0000000000000071>  0x000070000ea40e28 
#3 1.538 0x000070000ea40e18:  0x000070000ea40e48  0x0000000004036891 <runtime.throw+0x0000000000000071> 
#3 1.538 0x000070000ea40e28:  0x000070000ea40e30  0x00000000040368c0 <runtime.throw.func1+0x0000000000000000> 
#3 1.538 0x000070000ea40e38:  0x00000000076799c0  0x000000000000002a 
#3 1.538 0x000070000ea40e48:  0x000070000ea40e98  0x000000000404d576 <runtime.sigpanic+0x0000000000000396> 
#3 1.538 0x000070000ea40e58: <0x00000000076799c0  0x0000000000000000 
#3 1.538 0x000070000ea40e68:  0x0000096ce5499e87  0x0000000004027a86 <runtime.(*mheap).allocSpan+0x0000000000000546> 
#3 1.538 0x000070000ea40e78:  0x0000000004056886 <runtime.libcCall+0x0000000000000066>  0x000000000406d220 <runtime.pthread_mutex_unlock_trampoline+0x0000000000000000> 
#3 1.538 0x000070000ea40e88:  0x000070000ea40ed0  0x0000000200000000 
#3 1.538 0x000070000ea40e98:  0x000070000ea40ee0 !0x00007fff6811d70a 
#3 1.538 0x000070000ea40ea8: >0x000070000ea40ee0  0x0000000009ca4000 
#3 1.538 0x000070000ea40eb8:  0x00000000000006be  0x000000000434c8c5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005> 
#3 1.538 0x000070000ea40ec8:  0x000000000406d31f <runtime.syscall+0x000000000000001f>  0x000000c00137f0a8 
#3 1.538 0x000070000ea40ed8:  0x000000c000680480  0x000000c00137f078 
#3 1.538 0x000070000ea40ee8:  0x000000000406b170 <runtime.asmcgocall+0x0000000000000070>  0x000070000ea40f20 
#3 1.538 0x000070000ea40ef8:  0x000000000400ec0e <runtime.persistentalloc.func1+0x000000000000002e>  0x0000000000000020 
#3 1.538 0x000070000ea40f08:  0x000070000ea40f20  0x0000000009e2b540 
#3 1.538 0x000070000ea40f18:  0x0000000000000fb0  0x000000c000a29520 
#3 1.538 0x000070000ea40f28:  0x0000000004069289 <runtime.systemstack+0x0000000000000049>  0x000070000ea40f50 
#3 1.538 runtime.sigpanic()
#3 1.538 	runtime/signal_unix.go:719 +0x396
#3 1.538 
#3 1.538 goroutine 141 [syscall]:
#3 1.538 syscall.syscall(0x434c8c0, 0x0, 0x40087468, 0xc00137f138)
#3 1.538 	runtime/sys_darwin.go:22 +0x3b fp=0xc00137f0a8 sp=0xc00137f088 pc=0x4067d3b
#3 1.538 syscall.syscall(0x2d, 0x19, 0x199, 0x42d4619)
#3 1.539 	<autogenerated>:1 +0x26 fp=0xc00137f0f0 sp=0xc00137f0a8 pc=0x406db26
#3 1.539 golang.org/x/sys/unix.ioctl(0xc000e408a8, 0x40b4c5a, 0xc0010be360)
#3 1.539 	golang.org/x/sys@v0.0.0-20210426230700-d19ff857e887/unix/zsyscall_darwin_amd64.go:690 +0x39 fp=0xc00137f120 sp=0xc00137f0f0 pc=0x434ba99
#3 1.539 golang.org/x/sys/unix.IoctlGetWinsize(...)
#3 1.539 	golang.org/x/sys@v0.0.0-20210426230700-d19ff857e887/unix/ioctl.go:67
#3 1.539 github.com/docker/docker/pkg/term.GetWinsize(0xc000371b00)
#3 1.539 	github.com/docker/docker@v20.10.3-0.20210216175712-646072ed6524+incompatible/pkg/term/winsize.go:11 +0x2c fp=0xc00137f160 sp=0xc00137f120 pc=0x54a3eec
#3 1.539 github.com/docker/docker/pkg/jsonmessage.(*JSONProgress).width(0xc000680480)
#3 1.539 	github.com/docker/docker@v20.10.3-0.20210216175712-646072ed6524+incompatible/pkg/jsonmessage/jsonmessage.go:128 +0x25 fp=0xc00137f178 sp=0xc00137f160 pc=0x5aaff05
#3 1.539 github.com/docker/docker/pkg/jsonmessage.(*JSONProgress).String(0xc0010b7040)
#3 1.539 	github.com/docker/docker@v20.10.3-0.20210216175712-646072ed6524+incompatible/pkg/jsonmessage/jsonmessage.go:48 +0x36 fp=0xc00137f2b0 sp=0xc00137f178 pc=0x5aaf6d6
#3 1.539 github.com/docker/docker/pkg/jsonmessage.(*JSONMessage).Display(0xc000e40870, {0x7b31260, 0x9e257a0}, 0x0)
#3 1.539 	github.com/docker/docker@v20.10.3-0.20210216175712-646072ed6524+incompatible/pkg/jsonmessage/jsonmessage.go:181 +0x135 fp=0xc00137f378 sp=0xc00137f2b0 pc=0x5ab02f5
#3 1.539 github.com/docker/docker/pkg/jsonmessage.DisplayJSONMessagesStream({0x106b7d70, 0xc0010ae0c0}, {0x7b31260, 0x9e257a0}, 0x0, 0x0, 0x0)
#3 1.539 	github.com/docker/docker@v20.10.3-0.20210216175712-646072ed6524+incompatible/pkg/jsonmessage/jsonmessage.go:263 +0x339 fp=0xc00137f558 sp=0xc00137f378 pc=0x5ab0c99
#3 1.539 github.com/fsouza/go-dockerclient.handleStreamResponse(0xc000e402d0, 0xc00137f968)
#3 1.539 	github.com/fsouza/go-dockerclient@v1.7.2/client.go:660 +0x229 fp=0xc00137f5f0 sp=0xc00137f558 pc=0x60d99a9
#3 1.539 github.com/fsouza/go-dockerclient.(*Client).streamURL(0xc000e5e510, {0x75e6348, 0x4}, {0xc000058d00, 0x3f}, {0x1, 0x0, 0x0, 0xc000eac030, {0x7b27440, ...}, ...})
#3 1.539 	github.com/fsouza/go-dockerclient@v1.7.2/client.go:631 +0xfc7 fp=0xc00137f968 sp=0xc00137f5f0 pc=0x60d9427
#3 1.539 github.com/fsouza/go-dockerclient.(*Client).stream(0xc000e5e510, {0x75e6348, 0x4}, {0xc000058c00, 0x4f}, {0x1, 0x0, 0x0, 0xc000eac030, {0x7b27440, ...}, ...})
#3 1.539 	github.com/fsouza/go-dockerclient@v1.7.2/client.go:531 +0x196 fp=0xc00137fa10 sp=0xc00137f968 pc=0x60d83f6
#3 1.539 github.com/fsouza/go-dockerclient.(*Client).PushImage(0x618a466, {{0xc001220000, 0x27}, {0xc000d1cce2, 0x6}, {0x0, 0x0}, {0x0, 0x0}, 0x0, ...}, ...)
#3 1.539 	github.com/fsouza/go-dockerclient@v1.7.2/image.go:279 +0x292 fp=0xc00137fbb0 sp=0xc00137fa10 pc=0x60ebe12
#3 1.539 github.com/gravitational/gravity/lib/docker.(*Synchronizer).pushCmd(0xc000b11b40, {{0xc0011ca510, 0xd}, {0xc000d1ccc8, 0x19}, {0xc000d1cce2, 0x6}})
#3 1.539 	github.com/gravitational/gravity/lib/docker/synchronizer.go:111 +0x255 fp=0xc00137fd70 sp=0xc00137fbb0 pc=0x618a735
#3 1.539 github.com/gravitational/gravity/lib/docker.(*Synchronizer).Push(0xc000b11b40, {0xc000d1ccc0, 0x28}, {0xc0011ca510, 0xd})
#3 1.539 	github.com/gravitational/gravity/lib/docker/synchronizer.go:81 +0x150 fp=0xc00137fe40 sp=0xc00137fd70 pc=0x6189e30
#3 1.539 github.com/gravitational/gravity/lib/docker.(*Synchronizer).pullAndPush(0x0, {0xc000d1ccc0, 0xc000b11b80}, {{0xc0011ca510, 0x0}, {0x75e68e8, 0xd}}, 0xe8)
#3 1.539 	github.com/gravitational/gravity/lib/docker/synchronizer.go:195 +0x74 fp=0xc00137fe88 sp=0xc00137fe40 pc=0x618b434
#3 1.539 github.com/gravitational/gravity/lib/docker.(*Synchronizer).pullAndExportImageIfNeeded(0xc000b11b40, {0x7b95018, 0xc000b11b80}, {0xc000d1ccc0, 0x28}, {{0xc0011ca510, 0x0}, {0x75e68e8, 0x0}}, 0x0)
#3 1.539 	github.com/gravitational/gravity/lib/docker/synchronizer.go:173 +0x1b1 fp=0xc00137ff08 sp=0xc00137fe88 pc=0x618b0b1
#3 1.539 github.com/gravitational/gravity/lib/docker.(*Synchronizer).PullAndExportImages.func1()
#3 1.539 	github.com/gravitational/gravity/lib/docker/synchronizer.go:148 +0x4b fp=0xc00137ff68 sp=0xc00137ff08 pc=0x618ae0b
#3 1.539 github.com/gravitational/gravity/lib/run.(*Group).Go.func1()
#3 1.539 	github.com/gravitational/gravity/lib/run/run.go:85 +0x7c fp=0xc00137ffe0 sp=0xc00137ff68 pc=0x617c57c
#3 1.540 runtime.goexit()
#3 1.540 	runtime/asm_amd64.s:1581 +0x1 fp=0xc00137ffe8 sp=0xc00137ffe0 pc=0x406b461
#3 1.540 created by github.com/gravitational/gravity/lib/run.(*Group).Go
#3 1.540 	github.com/gravitational/gravity/lib/run/run.go:80 +0xe5
#3 1.540 
#3 1.540 goroutine 1 [semacquire]:
#3 1.540 sync.runtime_Semacquire(0xc00133b388)
#3 1.540 	runtime/sema.go:56 +0x25
#3 1.540 sync.(*WaitGroup).Wait(0x7b95018)
#3 1.540 	sync/waitgroup.go:130 +0x71
#3 1.540 github.com/gravitational/gravity/lib/run.(*Group).Wait(0xc000b11bc0)
#3 1.540 	github.com/gravitational/gravity/lib/run/run.go:63 +0x27
#3 1.540 github.com/gravitational/gravity/lib/docker.(*Synchronizer).PullAndExportImages(0xc000b11b40, {0x7b95050, 0xc000054088}, {0xc001227b40, 0x1, 0x0}, {{0xc0011ca510, 0xd}, {0x75e68e8, 0x4}}, ...)
#3 1.540 	github.com/gravitational/gravity/lib/docker/synchronizer.go:151 +0x265
#3 1.540 github.com/gravitational/gravity/lib/app/service.exportLayers({0x7b95050, 0xc000054088}, {0xc0005ba300, 0x52}, {0xc001227b40, 0x1, 0x2}, {0x7bf16b8, 0xc000e5e510}, {0x7c3bdc0, ...}, ...)
#3 1.540 	github.com/gravitational/gravity/lib/app/service/docker.go:64 +0x546
#3 1.540 github.com/gravitational/gravity/lib/app/service.(*vendorer).pullAndExportImages(0xc000ac6190, {0x7b95050, 0xc000054088}, {0xc001227b40, 0x1, 0x2}, {0xc00005a370, 0x49}, {0x0, 0x0}, ...)
#3 1.540 	github.com/gravitational/gravity/lib/app/service/vendor.go:391 +0x369
#3 1.540 github.com/gravitational/gravity/lib/app/service.(*vendorer).VendorDir(_, {_, _}, {_, _}, {{0x7ffeefbff5de, 0x10}, {0x7ffeefbff5f6, 0x8}, {0x7ffeefbff609, ...}, ...})
#3 1.540 	github.com/gravitational/gravity/lib/app/service/vendor.go:275 +0xce5
#3 1.540 github.com/gravitational/gravity/lib/app/service.(*vendorer).VendorTarball(_, {_, _}, {_, _}, {{0x7ffeefbff5de, 0x10}, {0x7ffeefbff5f6, 0x8}, {0x7ffeefbff609, ...}, ...})
#3 1.540 	github.com/gravitational/gravity/lib/app/service/vendor.go:154 +0x247
#3 1.540 github.com/gravitational/gravity/tool/gravity/cli.importApp(0x0, {0xc000112d20, 0x1a}, {0x0, 0x0}, {0x7ffeefbff63f, 0xf}, 0xc000213000, {0x0, 0x0}, ...)
#3 1.540 	github.com/gravitational/gravity/tool/gravity/cli/app.go:215 +0xa0f
#3 1.540 github.com/gravitational/gravity/tool/gravity/cli.Execute(0xc000349900, {0xc000cc7d40, 0xa}, {0x9e26000, 0x0, 0x0})
#3 1.540 	github.com/gravitational/gravity/tool/gravity/cli/run.go:658 +0x17a5
#3 1.540 github.com/gravitational/gravity/e/tool/gravity/cli.execute(0xc0010d8420, {0xc000cc7d40, 0xa}, {0x9e26000, 0x0, 0x0})
#3 1.540 	github.com/gravitational/gravity/e/tool/gravity/cli/run.go:192 +0xb89
#3 1.540 github.com/gravitational/gravity/e/tool/gravity/cli.Run.func1()
#3 1.540 	github.com/gravitational/gravity/e/tool/gravity/cli/run.go:65 +0x31
#3 1.540 github.com/gravitational/gravity/tool/gravity/cli.(*CmdExecer).Execute(0xc0010a9d78)
#3 1.540 	github.com/gravitational/gravity/tool/gravity/cli/logging.go:71 +0x202
#3 1.540 github.com/gravitational/gravity/e/tool/gravity/cli.Run(0xc0010d8420)
#3 1.540 	github.com/gravitational/gravity/e/tool/gravity/cli/run.go:60 +0x3a9
#3 1.540 main.run(0x75eca8d)
#3 1.540 	github.com/gravitational/gravity/e/tool/gravity/main.go:57 +0x1e
#3 1.540 main.main()
#3 1.540 	github.com/gravitational/gravity/e/tool/gravity/main.go:41 +0xc5
#3 1.540 
#3 1.540 goroutine 8 [chan receive]:
#3 1.540 k8s.io/klog/v2.(*loggingT).flushDaemon(0x0)
#3 1.540 	k8s.io/klog/v2@v2.8.0/klog.go:1164 +0x6a
#3 1.540 created by k8s.io/klog/v2.init.0
#3 1.540 	k8s.io/klog/v2@v2.8.0/klog.go:418 +0xfb
#3 1.540 
#3 1.540 goroutine 31 [select]:
#3 1.540 github.com/gravitational/gravity/lib/utils.(*progressPrinter).printPeriodic.func1()
#3 1.540 	github.com/gravitational/gravity/lib/utils/progress.go:278 +0x24a
#3 1.540 created by github.com/gravitational/gravity/lib/utils.(*progressPrinter).printPeriodic
#3 1.540 	github.com/gravitational/gravity/lib/utils/progress.go:274 +0x178
#3 1.540 
#3 1.540 goroutine 132 [select]:
#3 1.540 io.(*pipe).Read(0xc000cf1800, {0xc0001d5000, 0x1000, 0x4039601})
#3 1.540 	io/pipe.go:57 +0xb7
#3 1.540 io.(*PipeReader).Read(0xc000934e20, {0xc0001d5000, 0x4039667, 0xc000934e08})
#3 1.540 	io/pipe.go:134 +0x25
#3 1.540 bufio.(*Scanner).Scan(0xc0000a5f28)
#3 1.540 	bufio/scan.go:215 +0x865
#3 1.540 github.com/sirupsen/logrus.(*Entry).writerScanner(0xc000934fd0, 0xc0006b8280, 0xc000dcc920)
#3 1.540 	github.com/sirupsen/logrus@v1.8.1/writer.go:59 +0xa5
#3 1.540 created by github.com/sirupsen/logrus.(*Entry).WriterLevel
#3 1.540 	github.com/sirupsen/logrus@v1.8.1/writer.go:51 +0x3d6
#3 1.540 
#3 1.540 goroutine 117 [select]:
#3 1.541 net/http.(*persistConn).writeLoop(0xc0009290e0)
#3 1.541 	net/http/transport.go:2386 +0xfb
#3 1.541 created by net/http.(*Transport).dialConn
#3 1.541 	net/http/transport.go:1748 +0x1e65
#3 1.541 
#3 1.541 goroutine 32 [chan receive]:
#3 1.541 github.com/fsouza/go-dockerclient.(*Client).streamURL.func1()
#3 1.541 	github.com/fsouza/go-dockerclient@v1.7.2/client.go:581 +0x3b
#3 1.541 created by github.com/fsouza/go-dockerclient.(*Client).streamURL
#3 1.541 	github.com/fsouza/go-dockerclient@v1.7.2/client.go:580 +0x6f5
#3 1.541 
#3 1.541 goroutine 138 [sleep]:
#3 1.541 time.Sleep(0x14f46b04000)
#3 1.541 	runtime/time.go:193 +0x12e
#3 1.541 github.com/docker/distribution/registry/handlers.startUploadPurger.func1()
#3 1.541 	github.com/docker/distribution@v2.7.1+incompatible/registry/handlers/app.go:1068 +0x1ad
#3 1.541 created by github.com/docker/distribution/registry/handlers.startUploadPurger
#3 1.541 	github.com/docker/distribution@v2.7.1+incompatible/registry/handlers/app.go:1064 +0x2e5
#3 1.541 
#3 1.541 goroutine 139 [select]:
#3 1.541 github.com/docker/distribution/notifications.(*Broadcaster).run(0xc000a24cc0)
#3 1.541 	github.com/docker/distribution@v2.7.1+incompatible/notifications/sinks.go:80 +0xc8
#3 1.541 created by github.com/docker/distribution/notifications.NewBroadcaster
#3 1.541 	github.com/docker/distribution@v2.7.1+incompatible/notifications/sinks.go:39 +0x127
#3 1.541 
#3 1.541 goroutine 140 [IO wait]:
#3 1.541 internal/poll.runtime_pollWait(0x1085e3f8, 0x72)
#3 1.541 	runtime/netpoll.go:229 +0x89
#3 1.541 internal/poll.(*pollDesc).wait(0xc0005f3c80, 0x406dbf5, 0x0)
#3 1.541 	internal/poll/fd_poll_runtime.go:84 +0x32
#3 1.541 internal/poll.(*pollDesc).waitRead(...)
#3 1.541 	internal/poll/fd_poll_runtime.go:89
#3 1.541 internal/poll.(*FD).Accept(0xc0005f3c80)
#3 1.541 	internal/poll/fd_unix.go:402 +0x22c
#3 1.541 net.(*netFD).accept(0xc0005f3c80)
#3 1.541 	net/fd_unix.go:173 +0x35
#3 1.541 net.(*TCPListener).accept(0xc0005fa420)
#3 1.541 	net/tcpsock_posix.go:140 +0x28
#3 1.541 net.(*TCPListener).AcceptTCP(0xc0005fa420)
#3 1.541 	net/tcpsock.go:249 +0x3d
#3 1.541 github.com/docker/distribution/registry/listener.tcpKeepAliveListener.Accept({0x43239e8})
#3 1.541 	github.com/docker/distribution@v2.7.1+incompatible/registry/listener/listener.go:20 +0x19
#3 1.541 net/http.(*Server).Serve(0xc0010ce2a0, {0x7b6cf78, 0xc0005fa420})
#3 1.541 	net/http/server.go:3001 +0x394
#3 1.541 github.com/gravitational/gravity/lib/docker.(*Registry).listenAndServe(0x0, {0x7b6cf78, 0xc0005fa420})
#3 1.541 	github.com/gravitational/gravity/lib/docker/distribution.go:83 +0x27
#3 1.541 github.com/gravitational/gravity/lib/docker.(*Registry).Start.func1()
#3 1.541 	github.com/gravitational/gravity/lib/docker/distribution.go:73 +0x2e
#3 1.541 created by github.com/gravitational/gravity/lib/docker.(*Registry).Start
#3 1.541 	github.com/gravitational/gravity/lib/docker/distribution.go:72 +0x166
#3 1.541 
#3 1.541 goroutine 116 [IO wait]:
#3 1.541 internal/poll.runtime_pollWait(0x1085e310, 0x72)
#3 1.541 	runtime/netpoll.go:229 +0x89
#3 1.541 internal/poll.(*pollDesc).wait(0xc000662a80, 0xc0002eb000, 0x0)
#3 1.541 	internal/poll/fd_poll_runtime.go:84 +0x32
#3 1.541 internal/poll.(*pollDesc).waitRead(...)
#3 1.541 	internal/poll/fd_poll_runtime.go:89
#3 1.541 internal/poll.(*FD).Read(0xc000662a80, {0xc0002eb000, 0x1000, 0x1000})
#3 1.541 	internal/poll/fd_unix.go:167 +0x25a
#3 1.541 net.(*netFD).Read(0xc000662a80, {0xc0002eb000, 0x4039667, 0xc0000a3c30})
#3 1.541 	net/fd_posix.go:56 +0x29
#3 1.541 net.(*conn).Read(0xc000a820d8, {0xc0002eb000, 0xd, 0xc000a29520})
#3 1.541 	net/net.go:183 +0x45
#3 1.541 net/http.(*persistConn).Read(0xc0009290e0, {0xc0002eb000, 0xc000146480, 0xc0000a3d30})
#3 1.541 	net/http/transport.go:1926 +0x4e
#3 1.541 bufio.(*Reader).fill(0xc000616420)
#3 1.541 	bufio/bufio.go:101 +0x103
#3 1.541 bufio.(*Reader).Peek(0xc000616420, 0x1)
#3 1.541 	bufio/bufio.go:139 +0x5d
#3 1.541 net/http.(*persistConn).readLoop(0xc0009290e0)
#3 1.541 	net/http/transport.go:2087 +0x1ac
#3 1.541 created by net/http.(*Transport).dialConn
#3 1.541 	net/http/transport.go:1747 +0x1e05
#3 1.541 
#3 1.541 goroutine 144 [IO wait]:
#3 1.541 internal/poll.runtime_pollWait(0x1085e228, 0x72)
#3 1.541 	runtime/netpoll.go:229 +0x89
#3 1.541 internal/poll.(*pollDesc).wait(0xc000662b80, 0xc00055c000, 0x0)
#3 1.541 	internal/poll/fd_poll_runtime.go:84 +0x32
#3 1.541 internal/poll.(*pollDesc).waitRead(...)
#3 1.541 	internal/poll/fd_poll_runtime.go:89
#3 1.541 internal/poll.(*FD).Read(0xc000662b80, {0xc00055c000, 0x1000, 0x1000})
#3 1.541 	internal/poll/fd_unix.go:167 +0x25a
#3 1.541 net.(*netFD).Read(0xc000662b80, {0xc00055c000, 0x75f8ca3, 0xc})
#3 1.541 	net/fd_posix.go:56 +0x29
#3 1.541 net.(*conn).Read(0xc0005a26a0, {0xc00055c000, 0x7, 0xc00061a0c8})
#3 1.541 	net/net.go:183 +0x45
#3 1.541 net/http.(*connReader).Read(0xc00061a0c0, {0xc00055c000, 0x1000, 0x1000})
#3 1.541 	net/http/server.go:780 +0x16d
#3 1.541 bufio.(*Reader).fill(0xc0002ed260)
#3 1.541 	bufio/bufio.go:101 +0x103
#3 1.542 bufio.(*Reader).ReadSlice(0xc0002ed260, 0x0)
#3 1.542 	bufio/bufio.go:360 +0x2f
#3 1.542 bufio.(*Reader).ReadLine(0xc0002ed260)
#3 1.542 	bufio/bufio.go:389 +0x27
#3 1.542 net/textproto.(*Reader).readLineSlice(0xc00061a0f0)
#3 1.542 	net/textproto/reader.go:57 +0x99
#3 1.542 net/textproto.(*Reader).ReadLine(...)
#3 1.542 	net/textproto/reader.go:38
#3 1.542 net/http.readRequest(0xc0005a26a0)
#3 1.542 	net/http/request.go:1029 +0x79
#3 1.542 net/http.(*conn).readRequest(0xc00101bcc0, {0x7b95018, 0xc001270840})
#3 1.542 	net/http/server.go:966 +0x225
#3 1.542 net/http.(*conn).serve(0xc00101bcc0, {0x7b950c0, 0xc000e5a150})
#3 1.542 	net/http/server.go:1855 +0x865
#3 1.542 created by net/http.(*Server).Serve
#3 1.542 	net/http/server.go:3033 +0x4e8
------
exit status 1

After the change:

Logs
$ go run -mod=vendor mage.go package:rbac
Logs:    /path/go/github.com/gravitational/gravity/_build/logs/latest (/path/go/github.com/gravitational/gravity/_build/logs/20210909225556)
Version:  9.0.0-beta.4.5
Cache:    /path/go/github.com/gravitational/gravity/_build/cache/magnet/github.com/gravitational/gravity
[+] Building 24.2s (3/3) FINISHED                                                                                                                   
 => build:go                                                                                                                                  19.1s
 => build:darwin                                                                                                                              19.1s
 => package:rbac-app:app

@a-palchikov a-palchikov requested review from a team, wadells and bernardjkim September 9, 2021 21:03
Copy link
Contributor

@wadells wadells left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Any related upstream issues?

@a-palchikov
Copy link
Contributor Author

LGTM.

Any related upstream issues?

Found a possibly related issue and updated the PR comment.

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff6811d70a]

runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff6811d70a
...

Introduced in this commit: 6ff175a (#2594)
@a-palchikov a-palchikov force-pushed the dmitri/fix-darwin-build branch from 4f89a85 to 4001b7b Compare September 10, 2021 19:01
@a-palchikov a-palchikov merged commit f11f943 into master Sep 13, 2021
@a-palchikov a-palchikov deleted the dmitri/fix-darwin-build branch September 13, 2021 14:22
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants