Skip to content

Instantly share code, notes, and snippets.

@thrawn01
Created September 12, 2024 20:11
Show Gist options
  • Save thrawn01/4b609db71bbe45186a0e4a3d7b3cc018 to your computer and use it in GitHub Desktop.
Save thrawn01/4b609db71bbe45186a0e4a3d7b3cc018 to your computer and use it in GitHub Desktop.
BadgerDB stack split
```
Create partition {QueueName:queue-00188 StorageName:badger-0 ReadOnly:false Partition:0}
badger 2024/09/12 14:59:20 INFO: All 0 tables opened in 0s
badger 2024/09/12 14:59:20 INFO: Discard stats nextEmptySlot: 0
badger 2024/09/12 14:59:20 INFO: Set nextTxnTs to 0
sync.loop
runtime: newstack sp=0x17efc2f00 stack=[0xc0002b4000, 0xc0002b8000]
morebuf={pc:0x104e86b30 sp:0x17efc2f00 lr:0x0}
sched={pc:0x104f098c0 sp:0x17efc2f00 lr:0x104e86b30 ctxt:0x0}
runtime: gp=0xc0002f4700, goid=46424, gp->status=0x2
runtime: split stack overflow: 0x17efc2f00 < 0xc0002b4000
fatal error: runtime: split stack overflow
runtime stack:
runtime.throw({0x1058abded?, 0xc0002b6038?})
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/panic.go:1023 +0x40 fp=0x17efc2d50 sp=0x17efc2d20 pc=0x104eedef0
runtime.newstack()
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/stack.go:1047 +0x5a4 fp=0x17efc2f00 sp=0x17efc2d50 pc=0x104f0ce14
runtime.morestack()
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/asm_arm64.s:341 +0x70 fp=0x17efc2f00 sp=0x17efc2f00 pc=0x104f2a8a0
goroutine 46424 gp=0xc0002f4700 m=6 mp=0xc000180008 [running]:
runtime.sigpanic()
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/signal_unix.go:862 +0x380 fp=0x17efc2f00 sp=0x17efc2f00 pc=0x104f098c0
created by net/http.(*Server).Serve in goroutine 46271
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/net/http/server.go:3285 +0x678
goroutine 1 gp=0xc0000021c0 m=nil [chan receive]:
runtime.gopark(0x0?, 0xc0079c24e0?, 0x18?, 0x0?, 0x104f3a5ac?)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/proc.go:402 +0xc8 fp=0xc00040d6d0 sp=0xc00040d6b0 pc=0x104ef0c88
runtime.chanrecv(0xc000302cb0, 0xc00040d7df, 0x1)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/chan.go:583 +0x3a8 fp=0xc00040d760 sp=0xc00040d6d0 pc=0x104eb9d38
runtime.chanrecv1(0x10613dee0?, 0x105a80400?)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/chan.go:442 +0x14 fp=0xc00040d790 sp=0xc00040d760 pc=0x104eb9954
testing.(*T).Run(0xc000306d00, {0x1058a0817, 0x11}, 0x105ba4b68)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/testing/testing.go:1750 +0x604 fp=0xc00040d8b0 sp=0xc00040d790 pc=0x105034e74
testing.runTests.func1(0xc000306d00)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/testing/testing.go:2161 +0x84 fp=0xc00040d900 sp=0xc00040d8b0 pc=0x1050382c4
testing.tRunner(0xc000306d00, 0xc0003dfb08)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/testing/testing.go:1689 +0x184 fp=0xc00040d9d0 sp=0xc00040d900 pc=0x105033bd4
testing.runTests(0xc0003045e8, {0x10612f240, 0x3, 0x3}, {0x104e708a4?, 0x0?, 0x10613ef40?})
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/testing/testing.go:2159 +0x6e4 fp=0xc00040db30 sp=0xc00040d9d0 pc=0x105038154
testing.(*M).Run(0xc00032ce60)
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/testing/testing.go:2027 +0xb78 fp=0xc00040deb0 sp=0xc00040db30 pc=0x105035f98
main.main()
_testmain.go:57 +0x298 fp=0xc00040df40 sp=0xc00040deb0 pc=0x105894af8
runtime.main()
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/proc.go:271 +0x28c fp=0xc00040dfd0 sp=0xc00040df40 pc=0x104ef082c
runtime.goexit({})
/Users/thrawn/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.3.darwin-arm64/src/runtime/asm_arm64.s:1222 +0x4 fp=0xc00040dfd0 sp=0xc00040dfd0 pc=0x104f2cc74
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment