Skip to content
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

Runtime cgo error on CentOS 7.9.2009 #2059

Open
Morphdust opened this issue Jun 5, 2024 · 2 comments
Open

Runtime cgo error on CentOS 7.9.2009 #2059

Morphdust opened this issue Jun 5, 2024 · 2 comments
Labels

Comments

@Morphdust
Copy link

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

@mikefarah
Copy link
Owner

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?

@Morphdust
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants