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

panic when running on windows with multiple go routines #32

Closed
techmanmike opened this issue Dec 2, 2020 · 4 comments · Fixed by #21
Closed

panic when running on windows with multiple go routines #32

techmanmike opened this issue Dec 2, 2020 · 4 comments · Fixed by #21
Assignees
Labels
bug Something isn't working

Comments

@techmanmike
Copy link

techmanmike commented Dec 2, 2020

Running this with multiple go routines causes this crash (on windows):

runtime: bad pointer in frame github.com/gookit/color.EnableVirtualTerminalProcessing at 0xc000581838: 0x58
fatal error: invalid pointer found on stack

runtime stack:
runtime.throw(0xc6d2fe, 0x1e)
        C:/Program Files/go/src/runtime/panic.go:1116 +0x79 fp=0xb2f1bff4d0 sp=0xb2f1bff4a0 pc=0x659799
runtime.adjustpointers(0xc000581838, 0xb2f1bff5c0, 0xb2f1bff948, 0xfbcc00, 0x100e2a0)
        C:/Program Files/go/src/runtime/stack.go:605 +0x1e8 fp=0xb2f1bff520 sp=0xb2f1bff4d0 pc=0x66e888
runtime.adjustframe(0xb2f1bff858, 0xb2f1bff948, 0x100e2a0)
        C:/Program Files/go/src/runtime/stack.go:647 +0x36b fp=0xb2f1bff5f0 sp=0xb2f1bff520 pc=0x66ec0b
runtime.gentraceback(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0xc000084d80, 0x0, 0x0, 0x7fffffff, 0xc89118, 0xb2f1bff948, 0x0, ...)
        C:/Program Files/go/src/runtime/traceback.go:334 +0x11b5 fp=0xb2f1bff8c0 sp=0xb2f1bff5f0 pc=0x67acd5
runtime.copystack(0xc000084d80, 0x2000)
        C:/Program Files/go/src/runtime/stack.go:910 +0x2a7 fp=0xb2f1bffa78 sp=0xb2f1bff8c0 pc=0x66f387
runtime.shrinkstack(0xc000084d80)
        C:/Program Files/go/src/runtime/stack.go:1178 +0x149 fp=0xb2f1bffaa0 sp=0xb2f1bffa78 pc=0x670429
runtime.scanstack(0xc000084d80, 0xc00002de98)
        C:/Program Files/go/src/runtime/mgcmark.go:815 +0x56e fp=0xb2f1bffca8 sp=0xb2f1bffaa0 pc=0x640e4e
runtime.markroot.func1()
        C:/Program Files/go/src/runtime/mgcmark.go:245 +0xce fp=0xb2f1bffcf8 sp=0xb2f1bffca8 pc=0x681cee
runtime.markroot(0xc00002de98, 0x14)
        C:/Program Files/go/src/runtime/mgcmark.go:218 +0x310 fp=0xb2f1bffd80 sp=0xb2f1bffcf8 pc=0x63f910
runtime.gcDrain(0xc00002de98, 0x7)
        C:/Program Files/go/src/runtime/mgcmark.go:1109 +0x138 fp=0xb2f1bffdd8 sp=0xb2f1bffd80 pc=0x641578
runtime.gcBgMarkWorker.func2()
        C:/Program Files/go/src/runtime/mgc.go:1981 +0x176 fp=0xb2f1bffe18 sp=0xb2f1bffdd8 pc=0x681bd6
runtime.systemstack(0x0)
        C:/Program Files/go/src/runtime/asm_amd64.s:370 +0x6b fp=0xb2f1bffe20 sp=0xb2f1bffe18 pc=0x68a6ab
runtime.mstart()
        C:/Program Files/go/src/runtime/proc.go:1116 fp=0xb2f1bffe28 sp=0xb2f1bffe20 pc=0x65e920
@inhere inhere self-assigned this Dec 2, 2020
@inhere inhere added the bug Something isn't working label Dec 2, 2020
@inhere
Copy link
Member

inhere commented Dec 4, 2020

hi @techmanmike

Please provide the package version.

It would be better if you could provide examples!

@mxmauro
Copy link
Contributor

mxmauro commented Dec 17, 2020

@inhere ->> #21 This is the issue

@inhere
Copy link
Member

inhere commented Dec 18, 2020

thanks. the PR has been merged.

@inhere inhere linked a pull request Dec 18, 2020 that will close this issue
@mxmauro
Copy link
Contributor

mxmauro commented Dec 18, 2020

You are welcome

@inhere inhere closed this as completed Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants