Panic when running brew version
calvinbui opened this issue ยท 15 comments
The brew version doesn't work but the GitHub release does.
$ brew install k2tf
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/cask-versions, homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 42 formulae.
==> Updated Casks
Updated 26 casks.
==> Downloading https://ghcr.io/v2/homebrew/core/k2tf/manifests/0.6.2
Already downloaded: /Users/abc/Library/Caches/Homebrew/downloads/cde3ca288522e85335e150dd0ffb4faf397940002e97ae577c0ab15f3111fd13--k2tf-0.6.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/k2tf/blobs/sha256:6b965773a6297
Already downloaded: /Users/abc/Library/Caches/Homebrew/downloads/399090f82e9206bb0d3b5e2b708cd7e31f64810df859943f055343ca00473cd3--k2tf--0.6.2.big_sur.bottle.tar.gz
==> Pouring k2tf--0.6.2.big_sur.bottle.tar.gz
๐บ /usr/local/Cellar/k2tf/0.6.2: 59 files, 59MB
$ k2tf
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff2036ac9e]
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2036ac9e
stack: frame={sp:0x7ffeefbff438, fp:0x7ffeefbff488} stack=[0x7ffeefb804d8,0x7ffeefbff540)
0x00007ffeefbff338: 0x01007ffeefbff358 0x0000000000000004
0x00007ffeefbff348: 0x000000000000001f 0x00007fff2036ac9e
0x00007ffeefbff358: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbff368: 0x0000000004037451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff408
0x00007ffeefbff378: 0x0000000005c95f95 0x00007ffeefbff3c0
0x00007ffeefbff388: 0x0000000004037708 <runtime.fatalthrow.func1+0x0000000000000048> 0x000000000715f4a0
0x00007ffeefbff398: 0x0000000000000001 0x0000000000000001
0x00007ffeefbff3a8: 0x00007ffeefbff408 0x0000000004037451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff3b8: 0x000000000715f4a0 0x00007ffeefbff3f8
0x00007ffeefbff3c8: 0x0000000004037690 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff3d8
0x00007ffeefbff3d8: 0x00000000040376c0 <runtime.fatalthrow.func1+0x0000000000000000> 0x000000000715f4a0
0x00007ffeefbff3e8: 0x0000000004037451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff408
0x00007ffeefbff3f8: 0x00007ffeefbff428 0x0000000004037451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff408: 0x00007ffeefbff410 0x0000000004037480 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff418: 0x0000000005cb5fab 0x000000000000002a
0x00007ffeefbff428: 0x00007ffeefbff478 0x000000000404ceb6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff438: <0x0000000005cb5fab 0x0000000006eac640
0x00007ffeefbff448: 0x00007ffeefbff4b8 0x000000000402a246 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff458: 0x000000c00057a000 0x0000000000002000
0x00007ffeefbff468: 0x000000c000000008 0x0000000000000000
0x00007ffeefbff478: 0x00007ffeefbff4c0 !0x00007fff2036ac9e
0x00007ffeefbff488: >0x00007ffeefbff4c0 0x0000000007034000
0x00007ffeefbff498: 0x000000000000048e 0x0000000004e817e5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff4a8: 0x000000000406a49f <runtime.syscall+0x000000000000001f> 0x000000c0001bf710
0x00007ffeefbff4b8: 0x0000000004069e0c <runtime.nanotime_trampoline+0x000000000000000c> 0x000000c0001bf6e0
0x00007ffeefbff4c8: 0x00000000040682f0 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbff4d8: 0x0000000004015000 <runtime.mapaccess1_fast64+0x00000000000000e0> 0x5000000000001018
0x00007ffeefbff4e8: 0x0000000000000000 0x00000000071964d8
0x00007ffeefbff4f8: 0x0000000000000948 0x000000c0000001a0
0x00007ffeefbff508: 0x0000000004066409 <runtime.systemstack+0x0000000000000049> 0x0000000000000004
0x00007ffeefbff518: 0x0000000005fcde58 0x000000000715f4a0
0x00007ffeefbff528: 0x00007ffeefbff578 0x0000000004066305 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff538: 0x00000000040662bd <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x5cb5fab, 0x6eac640})
runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2036ac9e
stack: frame={sp:0x7ffeefbff438, fp:0x7ffeefbff488} stack=[0x7ffeefb804d8,0x7ffeefbff540)
0x00007ffeefbff338: 0x01007ffeefbff358 0x0000000000000004
0x00007ffeefbff348: 0x000000000000001f 0x00007fff2036ac9e
0x00007ffeefbff358: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbff368: 0x0000000004037451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff408
0x00007ffeefbff378: 0x0000000005c95f95 0x00007ffeefbff3c0
0x00007ffeefbff388: 0x0000000004037708 <runtime.fatalthrow.func1+0x0000000000000048> 0x000000000715f4a0
0x00007ffeefbff398: 0x0000000000000001 0x0000000000000001
0x00007ffeefbff3a8: 0x00007ffeefbff408 0x0000000004037451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff3b8: 0x000000000715f4a0 0x00007ffeefbff3f8
0x00007ffeefbff3c8: 0x0000000004037690 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff3d8
0x00007ffeefbff3d8: 0x00000000040376c0 <runtime.fatalthrow.func1+0x0000000000000000> 0x000000000715f4a0
0x00007ffeefbff3e8: 0x0000000004037451 <runtime.throw+0x0000000000000071> 0x00007ffeefbff408
0x00007ffeefbff3f8: 0x00007ffeefbff428 0x0000000004037451 <runtime.throw+0x0000000000000071>
0x00007ffeefbff408: 0x00007ffeefbff410 0x0000000004037480 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff418: 0x0000000005cb5fab 0x000000000000002a
0x00007ffeefbff428: 0x00007ffeefbff478 0x000000000404ceb6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff438: <0x0000000005cb5fab 0x0000000006eac640
0x00007ffeefbff448: 0x00007ffeefbff4b8 0x000000000402a246 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff458: 0x000000c00057a000 0x0000000000002000
0x00007ffeefbff468: 0x000000c000000008 0x0000000000000000
0x00007ffeefbff478: 0x00007ffeefbff4c0 !0x00007fff2036ac9e
0x00007ffeefbff488: >0x00007ffeefbff4c0 0x0000000007034000
0x00007ffeefbff498: 0x000000000000048e 0x0000000004e817e5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff4a8: 0x000000000406a49f <runtime.syscall+0x000000000000001f> 0x000000c0001bf710
0x00007ffeefbff4b8: 0x0000000004069e0c <runtime.nanotime_trampoline+0x000000000000000c> 0x000000c0001bf6e0
0x00007ffeefbff4c8: 0x00000000040682f0 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbff4d8: 0x0000000004015000 <runtime.mapaccess1_fast64+0x00000000000000e0> 0x5000000000001018
0x00007ffeefbff4e8: 0x0000000000000000 0x00000000071964d8
0x00007ffeefbff4f8: 0x0000000000000948 0x000000c0000001a0
0x00007ffeefbff508: 0x0000000004066409 <runtime.systemstack+0x0000000000000049> 0x0000000000000004
0x00007ffeefbff518: 0x0000000005fcde58 0x000000000715f4a0
0x00007ffeefbff528: 0x00007ffeefbff578 0x0000000004066305 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff538: 0x00000000040662bd <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
runtime/signal_unix.go:719 +0x396
goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x4e817e0, 0x1, 0x40487413, 0xc0001bf7a0)
runtime/sys_darwin.go:22 +0x3b fp=0xc0001bf710 sp=0xc0001bf6f0 pc=0x4064cfb
syscall.syscall(0x40b84a6, 0xc00054ca00, 0xc0001bf7c8, 0x40b83d8)
<autogenerated>:1 +0x26 fp=0xc0001bf758 sp=0xc0001bf710 pc=0x406ac66
golang.org/x/sys/unix.ioctl(0x5c64973, 0x4, 0x100000449dbbc)
golang.org/x/sys@v0.0.0-20210502180810-71e4cd670f79/unix/zsyscall_darwin_amd64.go:690 +0x39 fp=0xc0001bf788 sp=0xc0001bf758 pc=0x4e81339
golang.org/x/sys/unix.IoctlGetTermios(...)
golang.org/x/sys@v0.0.0-20210502180810-71e4cd670f79/unix/ioctl.go:73
github.com/mattn/go-isatty.IsTerminal(0x5c64973)
github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc0001bf7f8 sp=0xc0001bf788 pc=0x50fd7b0
github.com/fatih/color.init()
github.com/fatih/color@v1.10.0/color.go:21 +0x7a fp=0xc0001bf830 sp=0xc0001bf7f8 pc=0x50ff7da
runtime.doInit(0x70423a0)
runtime/proc.go:6498 +0x123 fp=0xc0001bf968 sp=0xc0001bf830 pc=0x4046dc3
runtime.doInit(0x704e360)
runtime/proc.go:6475 +0x71 fp=0xc0001bfaa0 sp=0xc0001bf968 pc=0x4046d11
runtime.doInit(0x7052400)
runtime/proc.go:6475 +0x71 fp=0xc0001bfbd8 sp=0xc0001bfaa0 pc=0x4046d11
runtime.doInit(0x7059080)
runtime/proc.go:6475 +0x71 fp=0xc0001bfd10 sp=0xc0001bfbd8 pc=0x4046d11
runtime.doInit(0x7046ac0)
runtime/proc.go:6475 +0x71 fp=0xc0001bfe48 sp=0xc0001bfd10 pc=0x4046d11
runtime.doInit(0x70512e0)
runtime/proc.go:6475 +0x71 fp=0xc0001bff80 sp=0xc0001bfe48 pc=0x4046d11
runtime.main()
runtime/proc.go:238 +0x1e6 fp=0xc0001bffe0 sp=0xc0001bff80 pc=0x4039d66
runtime.goexit()
runtime/asm_amd64.s:1581 +0x1 fp=0xc0001bffe8 sp=0xc0001bffe0 pc=0x40685e1
goroutine 19 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x0)
k8s.io/klog/v2@v2.8.0/klog.go:1164 +0x6a
created by k8s.io/klog/v2.init.0
k8s.io/klog/v2@v2.8.0/klog.go:418 +0xfb
Thanks, I am able to reproduce. Building from source or downloading a pre-built binary from the releases page works fine, so this has something to do with the binaries built by brew. @chenrui333 as you added the formula to brew core recently, do you have any idea?
Building from source or downloading a pre-built binary from the releases page works fine
Pre-built binary still works fine. Thanks.
Same for me:
curl https://raw.githubusercontent.com/GoogleCloudPlatform/k8s-stackdriver/master/custom-metrics-stackdriver-adapter/deploy/production/adapter_new_resource_model.yaml | k2tf -o converted.tf
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff2076dc9e]
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2076dc9e
Same even if just run tool without any options...
let me check a bit
I just did a fresh installation and I could not reproduce the issue
==> Homebrew was updated to version 3.3.12
The changelog can be found at:
https://github.com/Homebrew/brew/releases/tag/3.3.12
==> Downloading https://ghcr.io/v2/homebrew/core/k2tf/manifests/0.6.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/k2tf/blobs/sha256:5f3774927317f0978448e3d940472350911a0b03d038eb42b00b22403238d693
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:5f3774927317f0978448e3d940472350911a0b03d038eb42b00b22403238d693?se=2022-01-24T19%3A55%3A00Z&sig=JGL2fKy
######################################################################## 100.0%
==> Pouring k2tf--0.6.3.arm64_monterey.bottle.tar.gz
๐บ /opt/homebrew/Cellar/k2tf/0.6.3: 59 files, 58.7MB
==> Running `brew cleanup k2tf`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
$ k2tf
2:48PM Fatal | No data read from stdin
cc @sl1pm4t
@asychev I just tried your example with 0.6.3, and it works for me.
run log
$ curl https://raw.githubusercontent.com/GoogleCloudPlatform/k8s-stackdriver/master/custom-metrics-stackdriver-adapter/deploy/production/adapter_new_resource_model.yaml | k2tf -o converted.tf
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4238 100 4238 0 0 57251 0 --:--:-- --:--:-- --:--:-- 62323
$ cat converted.tf
resource "kubernetes_namespace" "custom_metrics" {
metadata {
name = "custom-metrics"
}
}
resource "kubernetes_service_account" "custom_metrics_stackdriver_adapter" {
metadata {
name = "custom-metrics-stackdriver-adapter"
namespace = "custom-metrics"
}
}
resource "kubernetes_cluster_role_binding" "custom_metrics_system_auth_delegator" {
metadata {
name = "custom-metrics:system:auth-delegator"
}
subject {
kind = "ServiceAccount"
name = "custom-metrics-stackdriver-adapter"
namespace = "custom-metrics"
}
role_ref {
api_group = "rbac.authorization.k8s.io"
kind = "ClusterRole"
name = "system:auth-delegator"
}
}
resource "kubernetes_role_binding" "custom_metrics_auth_reader" {
metadata {
name = "custom-metrics-auth-reader"
namespace = "kube-system"
}
subject {
kind = "ServiceAccount"
name = "custom-metrics-stackdriver-adapter"
namespace = "custom-metrics"
}
role_ref {
api_group = "rbac.authorization.k8s.io"
kind = "Role"
name = "extension-apiserver-authentication-reader"
}
}
resource "kubernetes_cluster_role_binding" "custom_metrics_resource_reader" {
metadata {
name = "custom-metrics-resource-reader"
}
subject {
kind = "ServiceAccount"
name = "custom-metrics-stackdriver-adapter"
namespace = "custom-metrics"
}
role_ref {
api_group = "rbac.authorization.k8s.io"
kind = "ClusterRole"
name = "view"
}
}
resource "kubernetes_deployment" "custom_metrics_stackdriver_adapter" {
metadata {
name = "custom-metrics-stackdriver-adapter"
namespace = "custom-metrics"
labels = {
k8s-app = "custom-metrics-stackdriver-adapter"
run = "custom-metrics-stackdriver-adapter"
}
}
spec {
replicas = 1
selector {
match_labels = {
k8s-app = "custom-metrics-stackdriver-adapter"
run = "custom-metrics-stackdriver-adapter"
}
}
template {
metadata {
labels = {
k8s-app = "custom-metrics-stackdriver-adapter"
"kubernetes.io/cluster-service" = "true"
run = "custom-metrics-stackdriver-adapter"
}
}
spec {
container {
name = "pod-custom-metrics-stackdriver-adapter"
image = "gcr.io/gke-release/custom-metrics-stackdriver-adapter:v0.12.2-gke.0"
command = ["/adapter", "--use-new-resource-model=true", "--fallback-for-container-metrics=true"]
resources {
limits = {
cpu = "250m"
memory = "200Mi"
}
requests = {
cpu = "250m"
memory = "200Mi"
}
}
image_pull_policy = "Always"
}
service_account_name = "custom-metrics-stackdriver-adapter"
}
}
}
}
resource "kubernetes_service" "custom_metrics_stackdriver_adapter" {
metadata {
name = "custom-metrics-stackdriver-adapter"
namespace = "custom-metrics"
labels = {
k8s-app = "custom-metrics-stackdriver-adapter"
"kubernetes.io/cluster-service" = "true"
"kubernetes.io/name" = "Adapter"
run = "custom-metrics-stackdriver-adapter"
}
}
spec {
port {
protocol = "TCP"
port = 443
target_port = "443"
}
selector = {
k8s-app = "custom-metrics-stackdriver-adapter"
run = "custom-metrics-stackdriver-adapter"
}
type = "ClusterIP"
}
}
resource "kubernetes_api_service" "v_1_beta_1_.custom.metrics.k_8_s.io" {
metadata {
name = "v1beta1.custom.metrics.k8s.io"
}
spec {
service {
namespace = "custom-metrics"
name = "custom-metrics-stackdriver-adapter"
}
group = "custom.metrics.k8s.io"
version = "v1beta1"
insecure_skip_tls_verify = true
group_priority_minimum = 100
version_priority = 100
}
}
resource "kubernetes_api_service" "v_1_beta_2_.custom.metrics.k_8_s.io" {
metadata {
name = "v1beta2.custom.metrics.k8s.io"
}
spec {
service {
namespace = "custom-metrics"
name = "custom-metrics-stackdriver-adapter"
}
group = "custom.metrics.k8s.io"
version = "v1beta2"
insecure_skip_tls_verify = true
group_priority_minimum = 100
version_priority = 200
}
}
resource "kubernetes_api_service" "v_1_beta_1_.external.metrics.k_8_s.io" {
metadata {
name = "v1beta1.external.metrics.k8s.io"
}
spec {
service {
namespace = "custom-metrics"
name = "custom-metrics-stackdriver-adapter"
}
group = "external.metrics.k8s.io"
version = "v1beta1"
insecure_skip_tls_verify = true
group_priority_minimum = 100
version_priority = 100
}
}
resource "kubernetes_cluster_role" "external_metrics_reader" {
metadata {
name = "external-metrics-reader"
}
rule {
verbs = ["list", "get", "watch"]
api_groups = ["external.metrics.k8s.io"]
resources = ["*"]
}
}
resource "kubernetes_cluster_role_binding" "external_metrics_reader" {
metadata {
name = "external-metrics-reader"
}
subject {
kind = "ServiceAccount"
name = "horizontal-pod-autoscaler"
namespace = "kube-system"
}
role_ref {
api_group = "rbac.authorization.k8s.io"
kind = "ClusterRole"
name = "external-metrics-reader"
}
}
@calvinbui can you try out 0.6.3 and report back if that works?
@chenrui333 cool, but it does not work, sorry. Did a reinstall:
$ k2tf
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff2076dc9e]
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2076dc9e
stack: frame={sp:0x7ffeefbff558, fp:0x7ffeefbff5a8} stack=[0x7ffeefb805f8,0x7ffeefbff660)
0x00007ffeefbff458: 0x01007ffeefbff478 0x0000000000000004
0x00007ffeefbff468: 0x000000000000001f 0x00007fff2076dc9e
0x00007ffeefbff478: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbff488: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbff528
0x00007ffeefbff498: 0x0000000005c9ae0a 0x00007ffeefbff4e0
0x00007ffeefbff4a8: 0x0000000004036c28 <runtime.fatalthrow.func1+0x0000000000000048> 0x00000000071674a0
0x00007ffeefbff4b8: 0x0000000000000001 0x0000000000000001
0x00007ffeefbff4c8: 0x00007ffeefbff528 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbff4d8: 0x00000000071674a0 0x00007ffeefbff518
0x00007ffeefbff4e8: 0x0000000004036bb0 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff4f8
0x00007ffeefbff4f8: 0x0000000004036be0 <runtime.fatalthrow.func1+0x0000000000000000> 0x00000000071674a0
0x00007ffeefbff508: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbff528
0x00007ffeefbff518: 0x00007ffeefbff548 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbff528: 0x00007ffeefbff530 0x00000000040369a0 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff538: 0x0000000005cbaf76 0x000000000000002a
0x00007ffeefbff548: 0x00007ffeefbff598 0x000000000404c3d6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff558: <0x0000000005cbaf76 0x0000000006eb3ff8
0x00007ffeefbff568: 0x00007ffeefbff5d8 0x0000000004029766 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff578: 0x000000c00050a000 0x0000000000002000
0x00007ffeefbff588: 0x000000c000000008 0x0000000000000000
0x00007ffeefbff598: 0x00007ffeefbff5e0 !0x00007fff2076dc9e
0x00007ffeefbff5a8: >0x00007ffeefbff5e0 0x000000000703c000
0x00007ffeefbff5b8: 0x000000000000048e 0x0000000004e810e5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff5c8: 0x0000000004069a1f <runtime.syscall+0x000000000000001f> 0x000000c000157710
0x00007ffeefbff5d8: 0x00007ffeefbff620 0x000000c0001576e0
0x00007ffeefbff5e8: 0x0000000004067870 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbff5f8: 0x0000000004015000 <runtime.mapdelete_fast64+0x0000000000000240> 0x5000000000001018
0x00007ffeefbff608: 0x0000000000000000 0x000000000719e4d8
0x00007ffeefbff618: 0x0000000000000948 0x000000c0000001a0
0x00007ffeefbff628: 0x0000000004065989 <runtime.systemstack+0x0000000000000049> 0x0000000000000004
0x00007ffeefbff638: 0x0000000005fd3bc0 0x00000000071674a0
0x00007ffeefbff648: 0x00007ffeefbff690 0x0000000004065885 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff658: 0x000000000406583d <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x5cbaf76, 0x6eb3ff8})
runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2076dc9e
stack: frame={sp:0x7ffeefbff558, fp:0x7ffeefbff5a8} stack=[0x7ffeefb805f8,0x7ffeefbff660)
0x00007ffeefbff458: 0x01007ffeefbff478 0x0000000000000004
0x00007ffeefbff468: 0x000000000000001f 0x00007fff2076dc9e
0x00007ffeefbff478: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbff488: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbff528
0x00007ffeefbff498: 0x0000000005c9ae0a 0x00007ffeefbff4e0
0x00007ffeefbff4a8: 0x0000000004036c28 <runtime.fatalthrow.func1+0x0000000000000048> 0x00000000071674a0
0x00007ffeefbff4b8: 0x0000000000000001 0x0000000000000001
0x00007ffeefbff4c8: 0x00007ffeefbff528 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbff4d8: 0x00000000071674a0 0x00007ffeefbff518
0x00007ffeefbff4e8: 0x0000000004036bb0 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbff4f8
0x00007ffeefbff4f8: 0x0000000004036be0 <runtime.fatalthrow.func1+0x0000000000000000> 0x00000000071674a0
0x00007ffeefbff508: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbff528
0x00007ffeefbff518: 0x00007ffeefbff548 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbff528: 0x00007ffeefbff530 0x00000000040369a0 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff538: 0x0000000005cbaf76 0x000000000000002a
0x00007ffeefbff548: 0x00007ffeefbff598 0x000000000404c3d6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff558: <0x0000000005cbaf76 0x0000000006eb3ff8
0x00007ffeefbff568: 0x00007ffeefbff5d8 0x0000000004029766 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff578: 0x000000c00050a000 0x0000000000002000
0x00007ffeefbff588: 0x000000c000000008 0x0000000000000000
0x00007ffeefbff598: 0x00007ffeefbff5e0 !0x00007fff2076dc9e
0x00007ffeefbff5a8: >0x00007ffeefbff5e0 0x000000000703c000
0x00007ffeefbff5b8: 0x000000000000048e 0x0000000004e810e5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff5c8: 0x0000000004069a1f <runtime.syscall+0x000000000000001f> 0x000000c000157710
0x00007ffeefbff5d8: 0x00007ffeefbff620 0x000000c0001576e0
0x00007ffeefbff5e8: 0x0000000004067870 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbff5f8: 0x0000000004015000 <runtime.mapdelete_fast64+0x0000000000000240> 0x5000000000001018
0x00007ffeefbff608: 0x0000000000000000 0x000000000719e4d8
0x00007ffeefbff618: 0x0000000000000948 0x000000c0000001a0
0x00007ffeefbff628: 0x0000000004065989 <runtime.systemstack+0x0000000000000049> 0x0000000000000004
0x00007ffeefbff638: 0x0000000005fd3bc0 0x00000000071674a0
0x00007ffeefbff648: 0x00007ffeefbff690 0x0000000004065885 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff658: 0x000000000406583d <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
runtime/signal_unix.go:719 +0x396
goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x4e810e0, 0x1, 0x40487413, 0xc0001577a0)
runtime/sys_darwin.go:22 +0x3b fp=0xc000157710 sp=0xc0001576f0 pc=0x406427b
syscall.syscall(0x40b7a26, 0xc0004dea00, 0xc0001577c8, 0x40b7958)
<autogenerated>:1 +0x26 fp=0xc000157758 sp=0xc000157710 pc=0x406a1e6
golang.org/x/sys/unix.ioctl(0x5c69713, 0x4, 0x100000449d23c)
golang.org/x/sys@v0.0.0-20210502180810-71e4cd670f79/unix/zsyscall_darwin_amd64.go:690 +0x39 fp=0xc000157788 sp=0xc000157758 pc=0x4e80c39
golang.org/x/sys/unix.IoctlGetTermios(...)
golang.org/x/sys@v0.0.0-20210502180810-71e4cd670f79/unix/ioctl.go:73
github.com/mattn/go-isatty.IsTerminal(0x5c69713)
github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc0001577f8 sp=0xc000157788 pc=0x50fd0b0
github.com/fatih/color.init()
github.com/fatih/color@v1.10.0/color.go:21 +0x7a fp=0xc000157830 sp=0xc0001577f8 pc=0x50ff0da
runtime.doInit(0x704a3a0)
runtime/proc.go:6498 +0x123 fp=0xc000157968 sp=0xc000157830 pc=0x40462e3
runtime.doInit(0x7056360)
runtime/proc.go:6475 +0x71 fp=0xc000157aa0 sp=0xc000157968 pc=0x4046231
runtime.doInit(0x705a400)
runtime/proc.go:6475 +0x71 fp=0xc000157bd8 sp=0xc000157aa0 pc=0x4046231
runtime.doInit(0x7061080)
runtime/proc.go:6475 +0x71 fp=0xc000157d10 sp=0xc000157bd8 pc=0x4046231
runtime.doInit(0x704eac0)
runtime/proc.go:6475 +0x71 fp=0xc000157e48 sp=0xc000157d10 pc=0x4046231
runtime.doInit(0x70592e0)
runtime/proc.go:6475 +0x71 fp=0xc000157f80 sp=0xc000157e48 pc=0x4046231
runtime.main()
runtime/proc.go:238 +0x1e6 fp=0xc000157fe0 sp=0xc000157f80 pc=0x4039286
runtime.goexit()
runtime/asm_amd64.s:1581 +0x1 fp=0xc000157fe8 sp=0xc000157fe0 pc=0x4067b61
goroutine 21 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x0)
k8s.io/klog/v2@v2.8.0/klog.go:1164 +0x6a
created by k8s.io/klog/v2.init.0
k8s.io/klog/v2@v2.8.0/klog.go:418 +0xfb
$ brew config
HOMEBREW_VERSION: 3.3.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: 768b172393339b4654107dc6a840a2cd08dc64b9
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f1e20e3a48d6d80b5888899c128adbb1d75f9d96
Core tap last commit: 16 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 13.0.0 build 1300
Git: 2.34.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6.2-x86_64
CLT: 13.2.0.0.1.1638488800
Xcode: N/A
$ brew info k2tf
k2tf: stable 0.6.3 (bottled), HEAD
Kubernetes YAML to Terraform HCL converter
https://github.com/sl1pm4t/k2tf
/usr/local/Cellar/k2tf/0.6.3 (59 files, 59MB) *
Poured from bottle on 2022-01-24 at 21:03:32
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/k2tf.rb
License: MPL-2.0
==> Dependencies
Build: go โ
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 160 (30 days), 654 (90 days), 911 (365 days)
install-on-request: 160 (30 days), 656 (90 days), 913 (365 days)
build-error: 0 (30 days)
Same for me as well on 0.6.3
k2tf -f configmap.yaml
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff2040ac9e]
runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2040ac9e
stack: frame={sp:0x7ffeefbfecb8, fp:0x7ffeefbfed08} stack=[0x7ffeefb7fd58,0x7ffeefbfedc0)
0x00007ffeefbfebb8: 0x01007ffeefbfebd8 0x0000000000000004
0x00007ffeefbfebc8: 0x000000000000001f 0x00007fff2040ac9e
0x00007ffeefbfebd8: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbfebe8: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbfec88
0x00007ffeefbfebf8: 0x0000000005c9ae0a 0x00007ffeefbfec40
0x00007ffeefbfec08: 0x0000000004036c28 <runtime.fatalthrow.func1+0x0000000000000048> 0x00000000071674a0
0x00007ffeefbfec18: 0x0000000000000001 0x0000000000000001
0x00007ffeefbfec28: 0x00007ffeefbfec88 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbfec38: 0x00000000071674a0 0x00007ffeefbfec78
0x00007ffeefbfec48: 0x0000000004036bb0 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbfec58
0x00007ffeefbfec58: 0x0000000004036be0 <runtime.fatalthrow.func1+0x0000000000000000> 0x00000000071674a0
0x00007ffeefbfec68: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbfec88
0x00007ffeefbfec78: 0x00007ffeefbfeca8 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbfec88: 0x00007ffeefbfec90 0x00000000040369a0 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbfec98: 0x0000000005cbaf76 0x000000000000002a
0x00007ffeefbfeca8: 0x00007ffeefbfecf8 0x000000000404c3d6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbfecb8: <0x0000000005cbaf76 0x0000000004069380 <runtime.nanotime_trampoline+0x0000000000000000>
0x00007ffeefbfecc8: 0x00007ffeefbfed38 0x0000000004029766 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbfecd8: 0x000000c0001cd4f0 0x0000000004013268 <runtime.evacuate+0x0000000000000268>
0x00007ffeefbfece8: 0x000000c0000001a0 0x0000000000000000
0x00007ffeefbfecf8: 0x00007ffeefbfed40 !0x00007fff2040ac9e
0x00007ffeefbfed08: >0x00007ffeefbfed40 0x000000000703c000
0x00007ffeefbfed18: 0x000000000000048e 0x0000000004e810e5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbfed28: 0x0000000004069a1f <runtime.syscall+0x000000000000001f> 0x000000c0001cd710
0x00007ffeefbfed38: 0x00007ffeefbfed80 0x000000c0001cd6e0
0x00007ffeefbfed48: 0x0000000004067870 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbfed58: 0x0000000000005000 0x5000000000000200
0x00007ffeefbfed68: 0x00007ffeefbfed80 0x0000000004060305 <runtime.wbBufFlush.func1+0x0000000000000025>
0x00007ffeefbfed78: 0x0000000000000948 0x000000c0000001a0
0x00007ffeefbfed88: 0x0000000004065a6b <runtime.morestack+0x000000000000008b> 0x0000000000000004
0x00007ffeefbfed98: 0x0000000005fd3bc0 0x00000000071674a0
0x00007ffeefbfeda8: 0x00007ffeefbfedf8 0x0000000004065885 <runtime.mstart+0x0000000000000005>
0x00007ffeefbfedb8: 0x000000000406583d <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x5cbaf76, 0x4069380})
runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2040ac9e
stack: frame={sp:0x7ffeefbfecb8, fp:0x7ffeefbfed08} stack=[0x7ffeefb7fd58,0x7ffeefbfedc0)
0x00007ffeefbfebb8: 0x01007ffeefbfebd8 0x0000000000000004
0x00007ffeefbfebc8: 0x000000000000001f 0x00007fff2040ac9e
0x00007ffeefbfebd8: 0x0b01dfacedebac1e 0x0000000000000001
0x00007ffeefbfebe8: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbfec88
0x00007ffeefbfebf8: 0x0000000005c9ae0a 0x00007ffeefbfec40
0x00007ffeefbfec08: 0x0000000004036c28 <runtime.fatalthrow.func1+0x0000000000000048> 0x00000000071674a0
0x00007ffeefbfec18: 0x0000000000000001 0x0000000000000001
0x00007ffeefbfec28: 0x00007ffeefbfec88 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbfec38: 0x00000000071674a0 0x00007ffeefbfec78
0x00007ffeefbfec48: 0x0000000004036bb0 <runtime.fatalthrow+0x0000000000000050> 0x00007ffeefbfec58
0x00007ffeefbfec58: 0x0000000004036be0 <runtime.fatalthrow.func1+0x0000000000000000> 0x00000000071674a0
0x00007ffeefbfec68: 0x0000000004036971 <runtime.throw+0x0000000000000071> 0x00007ffeefbfec88
0x00007ffeefbfec78: 0x00007ffeefbfeca8 0x0000000004036971 <runtime.throw+0x0000000000000071>
0x00007ffeefbfec88: 0x00007ffeefbfec90 0x00000000040369a0 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbfec98: 0x0000000005cbaf76 0x000000000000002a
0x00007ffeefbfeca8: 0x00007ffeefbfecf8 0x000000000404c3d6 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbfecb8: <0x0000000005cbaf76 0x0000000004069380 <runtime.nanotime_trampoline+0x0000000000000000>
0x00007ffeefbfecc8: 0x00007ffeefbfed38 0x0000000004029766 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbfecd8: 0x000000c0001cd4f0 0x0000000004013268 <runtime.evacuate+0x0000000000000268>
0x00007ffeefbfece8: 0x000000c0000001a0 0x0000000000000000
0x00007ffeefbfecf8: 0x00007ffeefbfed40 !0x00007fff2040ac9e
0x00007ffeefbfed08: >0x00007ffeefbfed40 0x000000000703c000
0x00007ffeefbfed18: 0x000000000000048e 0x0000000004e810e5 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbfed28: 0x0000000004069a1f <runtime.syscall+0x000000000000001f> 0x000000c0001cd710
0x00007ffeefbfed38: 0x00007ffeefbfed80 0x000000c0001cd6e0
0x00007ffeefbfed48: 0x0000000004067870 <runtime.asmcgocall+0x0000000000000070> 0x0000000000000001
0x00007ffeefbfed58: 0x0000000000005000 0x5000000000000200
0x00007ffeefbfed68: 0x00007ffeefbfed80 0x0000000004060305 <runtime.wbBufFlush.func1+0x0000000000000025>
0x00007ffeefbfed78: 0x0000000000000948 0x000000c0000001a0
0x00007ffeefbfed88: 0x0000000004065a6b <runtime.morestack+0x000000000000008b> 0x0000000000000004
0x00007ffeefbfed98: 0x0000000005fd3bc0 0x00000000071674a0
0x00007ffeefbfeda8: 0x00007ffeefbfedf8 0x0000000004065885 <runtime.mstart+0x0000000000000005>
0x00007ffeefbfedb8: 0x000000000406583d <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
runtime/signal_unix.go:719 +0x396
goroutine 1 [syscall, locked to thread]:
syscall.syscall(0x4e810e0, 0x1, 0x40487413, 0xc0001cd7a0)
runtime/sys_darwin.go:22 +0x3b fp=0xc0001cd710 sp=0xc0001cd6f0 pc=0x406427b
syscall.syscall(0x40b7a26, 0xc0004dca00, 0xc0001cd7c8, 0x40b7958)
<autogenerated>:1 +0x26 fp=0xc0001cd758 sp=0xc0001cd710 pc=0x406a1e6
golang.org/x/sys/unix.ioctl(0x5c69713, 0x4, 0x100000449d23c)
golang.org/x/sys@v0.0.0-20210502180810-71e4cd670f79/unix/zsyscall_darwin_amd64.go:690 +0x39 fp=0xc0001cd788 sp=0xc0001cd758 pc=0x4e80c39
golang.org/x/sys/unix.IoctlGetTermios(...)
golang.org/x/sys@v0.0.0-20210502180810-71e4cd670f79/unix/ioctl.go:73
github.com/mattn/go-isatty.IsTerminal(0x5c69713)
github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc0001cd7f8 sp=0xc0001cd788 pc=0x50fd0b0
github.com/fatih/color.init()
github.com/fatih/color@v1.10.0/color.go:21 +0x7a fp=0xc0001cd830 sp=0xc0001cd7f8 pc=0x50ff0da
runtime.doInit(0x704a3a0)
runtime/proc.go:6498 +0x123 fp=0xc0001cd968 sp=0xc0001cd830 pc=0x40462e3
runtime.doInit(0x7056360)
runtime/proc.go:6475 +0x71 fp=0xc0001cdaa0 sp=0xc0001cd968 pc=0x4046231
runtime.doInit(0x705a400)
runtime/proc.go:6475 +0x71 fp=0xc0001cdbd8 sp=0xc0001cdaa0 pc=0x4046231
runtime.doInit(0x7061080)
runtime/proc.go:6475 +0x71 fp=0xc0001cdd10 sp=0xc0001cdbd8 pc=0x4046231
runtime.doInit(0x704eac0)
runtime/proc.go:6475 +0x71 fp=0xc0001cde48 sp=0xc0001cdd10 pc=0x4046231
runtime.doInit(0x70592e0)
runtime/proc.go:6475 +0x71 fp=0xc0001cdf80 sp=0xc0001cde48 pc=0x4046231
runtime.main()
runtime/proc.go:238 +0x1e6 fp=0xc0001cdfe0 sp=0xc0001cdf80 pc=0x4039286
runtime.goexit()
runtime/asm_amd64.s:1581 +0x1 fp=0xc0001cdfe8 sp=0xc0001cdfe0 pc=0x4067b61
goroutine 35 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x0)
k8s.io/klog/v2@v2.8.0/klog.go:1164 +0x6a
created by k8s.io/klog/v2.init.0
k8s.io/klog/v2@v2.8.0/klog.go:418 +0xfb
what is the golang version do you folks use?
Hi all,
I'm not able to reproduce this with the new v0.7.0 release of k2tf.
After doing brew upgrade k2tf
I do not get a panic.
@asychev / @kevinheins are you able to test and confirm?
Thanks
I'm going to close this issue as the problem appears to be resolved.
Hi all, I'm not able to reproduce this with the new v0.7.0 release of k2tf. After doing
brew upgrade k2tf
I do not get a panic. @asychev / @kevinheins are you able to test and confirm?Thanks
Works for me now on 0.7.0
, thanks!