-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
tl;dr
$ echo '{PublicIpAddress: "18.191.190.107"}' | super -c 'cut quiet(PublicIpAddress)' -
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020648398 stack=[0xc020648000, 0xc040648000]
fatal error: stack overflow
runtime stack:
runtime.throw({0x507ce53?, 0x200000008?})
/usr/local/opt/go/libexec/src/runtime/panic.go:1094 +0x48 fp=0x7000075f8e28 sp=0x7000075f8df8 pc=0x38391c8
runtime.newstack()
/usr/local/opt/go/libexec/src/runtime/stack.go:1159 +0x5bd fp=0x7000075f8f58 sp=0x7000075f8e28 pc=0x381c9bd
runtime.morestack()
/usr/local/opt/go/libexec/src/runtime/asm_amd64.s:620 +0x7d fp=0x7000075f8f60 sp=0x7000075f8f58 pc=0x383fcdd
goroutine 1 gp=0xc000002380 m=9 mp=0xc000680008 [running]:
strings.ToLower({0xc000321288, 0x5})
/usr/local/opt/go/libexec/src/strings/strings.go:727 +0x446 fp=0xc0206483a8 sp=0xc0206483a0 pc=0x38e3d46
...
Details
Repro is with super commit 7c4d960.
The problem does not occur if I drop the use of the quiet function.
$ super -version
Version: 7c4d960ac
$ echo '{PublicIpAddress: "18.191.190.107"}' | super -c 'cut PublicIpAddress' -
{PublicIpAddress:"18.191.190.107"}
At prior commit fd64ee8, the problem also does not occur even when quiet is used, which indicates the problem is associated with the merge of the changes in #6292.
$ super -version
Version: fd64ee8a6
$ echo '{PublicIpAddress: "18.191.190.107"}' | super -c 'cut quiet(PublicIpAddress)' -
{PublicIpAddress:"18.191.190.107"}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working