Skip to content

Instantly share code, notes, and snippets.

@nghnam
Created February 28, 2024 15:30
Show Gist options
  • Save nghnam/0af84a0b17e5860f945b63f3ad2f6545 to your computer and use it in GitHub Desktop.
Save nghnam/0af84a0b17e5860f945b63f3ad2f6545 to your computer and use it in GitHub Desktop.
fatal
fatal error: all goroutines are asleep - deadlock!
goroutine 1 [semacquire]:
sync.runtime_Semacquire(0xc00006a0c0?)
/usr/local/go/src/runtime/sema.go:62 +0x25
sync.(*WaitGroup).Wait(0xc00006c180?)
/usr/local/go/src/sync/waitgroup.go:116 +0x48
main.readFileLineByLineIntoAMap({0x7ffc80a97569, 0x10})
/home/namnh/workspace/1brc-go/main.go:176 +0x346
main.evaluate({0x7ffc80a97569?, 0xc000014070?})
/home/namnh/workspace/1brc-go/main.go:89 +0x2a
main.main()
/home/namnh/workspace/1brc-go/main.go:51 +0x2da
goroutine 6 [chan send]:
main.processReadChunk({0xc0552a4000, 0x3fffff5, 0x0?}, 0xc000012000?)
/home/namnh/workspace/1brc-go/main.go:277 +0x312
main.readFileLineByLineIntoAMap.func1()
/home/namnh/workspace/1brc-go/main.go:149 +0x66
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:147 +0x14f
goroutine 7 [chan send]:
main.processReadChunk({0xc04629e000, 0x4000003, 0x0?}, 0x0?)
/home/namnh/workspace/1brc-go/main.go:277 +0x312
main.readFileLineByLineIntoAMap.func1()
/home/namnh/workspace/1brc-go/main.go:149 +0x66
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:147 +0x14f
goroutine 8 [chan send]:
main.processReadChunk({0xc04b2a0000, 0x3fffffc, 0x0?}, 0x0?)
/home/namnh/workspace/1brc-go/main.go:277 +0x312
main.readFileLineByLineIntoAMap.func1()
/home/namnh/workspace/1brc-go/main.go:149 +0x66
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:147 +0x14f
goroutine 9 [chan send]:
main.processReadChunk({0xc0502a2000, 0x4000009, 0x0?}, 0x0?)
/home/namnh/workspace/1brc-go/main.go:277 +0x312
main.readFileLineByLineIntoAMap.func1()
/home/namnh/workspace/1brc-go/main.go:149 +0x66
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:147 +0x14f
goroutine 10 [chan send]:
main.processReadChunk({0xc05a2a6000, 0x4000006, 0x0?}, 0x0?)
/home/namnh/workspace/1brc-go/main.go:277 +0x312
main.readFileLineByLineIntoAMap.func1()
/home/namnh/workspace/1brc-go/main.go:149 +0x66
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:147 +0x14f
goroutine 11 [chan send]:
main.readFileLineByLineIntoAMap.func2()
/home/namnh/workspace/1brc-go/main.go:161 +0x8a
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:157 +0x205
goroutine 12 [chan send]:
main.readFileLineByLineIntoAMap.func2()
/home/namnh/workspace/1brc-go/main.go:161 +0x8a
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:157 +0x205
goroutine 13 [chan send]:
main.readFileLineByLineIntoAMap.func3()
/home/namnh/workspace/1brc-go/main.go:171 +0x3e
created by main.readFileLineByLineIntoAMap in goroutine 1
/home/namnh/workspace/1brc-go/main.go:168 +0x339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment