yq icon indicating copy to clipboard operation
yq copied to clipboard

Runtime cgo error on CentOS 7.9.2009

Open Morphdust opened this issue 1 year ago • 2 comments

Bug description brief Any call to yq causes runtime error. runtime/cgo: pthread_create failed: Operation not permitted

Description Using yq on cluster machines externally managed, I assume a system update was performed in-between using the machines. yq installation got updated to v4.44.1 few days ago and new version causes crash. Reverted to v4.40.5 (rev 2450 in snap) and issue goes away instantly. Other machines escaped the update and have v4.40.5 and have no issue. Issue is repeatable when upgrading back again to the latest version.

Version of yq: v4.44.1 Operating system: CentOS 7.9.2009 (x86_64) / Linux kernel 3.10.0 Installed via: snap

Issue present without any input yaml at all. Even running the following causes the same error: yq help

Full error message [user@machine ~]$ yq help runtime/cgo: pthread_create failed: Operation not permitted SIGABRT: abort PC=0x7f5a97e589fc m=0 sigcode=18446744073709551610

goroutine 0 gp=0xd8a1a0 m=0 mp=0xd8a760 [idle]: runtime: g 0 gp=0xd8a1a0: unknown pc 0x7f5a97e589fc stack: frame={sp:0x7ffc1cc497e0, fp:0x0} stack=[0x7ffc1c44c000,0x7ffc1cc49d40) 0x00007ffc1cc496e0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc496f0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49700: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49710: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49720: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49730: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49740: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49750: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49760: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49770: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49780: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49790: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497a0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497b0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497c0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497d0: 0x0000000000000000 0x00007f5a97e589ee 0x00007ffc1cc497e0: <0x0000000000000000 0x0000000000000000 0x00007ffc1cc497f0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49800: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49810: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49820: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49830: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49840: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49850: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49860: 0x0000000000000000 0x9e09845c1480cd00 0x00007ffc1cc49870: 0x00007f5a97dbf740 0x0000000000000006 0x00007ffc1cc49880: 0x00000000009e289e 0x00007ffc1cc49bb0 0x00007ffc1cc49890: 0x0000000000d8a1a0 0x00007f5a97e04476 0x00007ffc1cc498a0: 0x00007f5a97fdde90 0x00007f5a97dea7f3 0x00007ffc1cc498b0: 0x0000000000000020 0x0000000000000000 0x00007ffc1cc498c0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc498d0: 0x0000000000000000 0x0000000000000000 runtime: g 0 gp=0xd8a1a0: unknown pc 0x7f5a97e589fc stack: frame={sp:0x7ffc1cc497e0, fp:0x0} stack=[0x7ffc1c44c000,0x7ffc1cc49d40) 0x00007ffc1cc496e0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc496f0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49700: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49710: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49720: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49730: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49740: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49750: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49760: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49770: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49780: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49790: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497a0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497b0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497c0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc497d0: 0x0000000000000000 0x00007f5a97e589ee 0x00007ffc1cc497e0: <0x0000000000000000 0x0000000000000000 0x00007ffc1cc497f0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49800: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49810: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49820: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49830: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49840: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49850: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc49860: 0x0000000000000000 0x9e09845c1480cd00 0x00007ffc1cc49870: 0x00007f5a97dbf740 0x0000000000000006 0x00007ffc1cc49880: 0x00000000009e289e 0x00007ffc1cc49bb0 0x00007ffc1cc49890: 0x0000000000d8a1a0 0x00007f5a97e04476 0x00007ffc1cc498a0: 0x00007f5a97fdde90 0x00007f5a97dea7f3 0x00007ffc1cc498b0: 0x0000000000000020 0x0000000000000000 0x00007ffc1cc498c0: 0x0000000000000000 0x0000000000000000 0x00007ffc1cc498d0: 0x0000000000000000 0x0000000000000000

goroutine 1 gp=0xc0000061c0 m=0 mp=0xd8a760 [running]: runtime.systemstack_switch() /snap/go/10585/src/runtime/asm_amd64.s:474 +0x8 fp=0xc000066750 sp=0xc000066740 pc=0x470ae8 runtime.main() /snap/go/10585/src/runtime/proc.go:171 +0x67 fp=0xc0000667e0 sp=0xc000066750 pc=0x440447 runtime.goexit({}) /snap/go/10585/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000667e8 sp=0xc0000667e0 pc=0x472b01

rax 0x0 rbx 0x7f5a97dbf740 rcx 0xffffffffffffffff rdx 0x6 rdi 0x73dd rsi 0x73dd rbp 0x73dd rsp 0x7ffc1cc497e0 r8 0x7ffc1cc498b0 r9 0x7fffffff r10 0x8 r11 0x246 r12 0x6 r13 0x16 r14 0xd8a1a0 r15 0x1ffffffffffffff rip 0x7f5a97e589fc rflags 0x246 cs 0x33 fs 0x0 gs 0x0

Morphdust avatar Jun 05 '24 13:06 Morphdust

Odd. I wonder if this is a snap thing. Does this happen when you run the same version binaries from yq's github releases page?

mikefarah avatar Jun 15 '24 06:06 mikefarah

Just double checked and yep you're right, when using the version from the github binaries there's no issue and it works fine with v4.44.1

So must be an issue with snap?

Morphdust avatar Jun 17 '24 10:06 Morphdust