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

fatal error: bad summary data leading to panic and crash #509

Open
ajkessel opened this issue Dec 4, 2024 · 0 comments
Open

fatal error: bad summary data leading to panic and crash #509

ajkessel opened this issue Dec 4, 2024 · 0 comments

Comments

@ajkessel
Copy link

ajkessel commented Dec 4, 2024

I have never been able to complete a full sync. My most recent attempt ended in a panic. Full stack dump attached. Begins with:

runtime stack:
runtime.throw({0x7ff7d769cef4?, 0x7ff7d671b888?})
        /snap/go/10743/src/runtime/panic.go:1067 +0x4d fp=0xa5ccbff640 sp=0xa5ccbff610 pc=0x7ff7d676624d
runtime.(*pageAlloc).alloc(0x7ff7d8070348, 0x4)
        /snap/go/10743/src/runtime/mpagealloc.go:892 +0x26a fp=0xa5ccbff688 sp=0xa5ccbff640 pc=0x7ff7d671f3ea
runtime.(*mheap).allocSpan(0x7ff7d8070340, 0x4, 0x0, 0x1)
        /snap/go/10743/src/runtime/mheap.go:1241 +0x192 fp=0xa5ccbff730 sp=0xa5ccbff688 pc=0x7ff7d671b172
runtime.(*mheap).alloc.func1()
        /snap/go/10743/src/runtime/mheap.go:962 +0x5c fp=0xa5ccbff778 sp=0xa5ccbff730 pc=0x7ff7d671ac1c
runtime.systemstack(0xc001a781c0)
        /snap/go/10743/src/runtime/asm_amd64.s:514 +0x49 fp=0xa5ccbff788 sp=0xa5ccbff778 pc=0x7ff7d676caa9

goroutine 2181518 gp=0xc001124380 m=51 mp=0xc000981808 [running]:
runtime.systemstack_switch()
        /snap/go/10743/src/runtime/asm_amd64.s:479 +0x8 fp=0xc0015bc458 sp=0xc0015bc448 pc=0x7ff7d676ca48
runtime.(*mheap).alloc(0x8000?, 0x4?, 0x0?)
        /snap/go/10743/src/runtime/mheap.go:956 +0x5b fp=0xc0015bc4a0 sp=0xc0015bc458 pc=0x7ff7d671ab7b
runtime.(*mcache).allocLarge(0x7ff7d69d6fa7?, 0x8000, 0x1)
        /snap/go/10743/src/runtime/mcache.go:234 +0x87 fp=0xc0015bc4f0 sp=0xc0015bc4a0 pc=0x7ff7d6707947
runtime.mallocgc(0x8000, 0x0, 0x0)
        /snap/go/10743/src/runtime/malloc.go:1177 +0x5d0 fp=0xc0015bc590 sp=0xc0015bc4f0 pc=0x7ff7d6760db0
runtime.growslice(0x0, 0x2016?, 0x64?, 0x70?, 0x0?)
        /snap/go/10743/src/runtime/slice.go:264 +0x5c9 fp=0xc0015bc600 sp=0xc0015bc590 pc=0x7ff7d67683e9
bytes.growSlice({0xc0007e6000, 0x3fea, 0x0?}, 0x2000?)
        /snap/go/10743/src/bytes/buffer.go:249 +0x93 fp=0xc0015bc690 sp=0xc0015bc600 pc=0x7ff7d682bd33
bytes.(*Buffer).grow(0xc00012c3d8, 0x200)
        /snap/go/10743/src/bytes/buffer.go:151 +0x13d fp=0xc0015bc6c8 sp=0xc0015bc690 pc=0x7ff7d682b75d
bytes.(*Buffer).ReadFrom(0xc00012c3d8, {0x7ff7d7853240, 0xc003d386f0})
        /snap/go/10743/src/bytes/buffer.go:209 +0x3e fp=0xc0015bc720 sp=0xc0015bc6c8 pc=0x7ff7d682bb3e
github.com/ProtonMail/proton-bridge/v3/pkg/message.DecryptMessage(_, {{{0xc0006fefc0, 0x58}, {0xc0006ff380, 0x58}, {0xc000397440, 0x4, 0x4}, {0xc0004a4de0, 0x2f}, ...}, ...}, ...)
        /home/adam/src/proton-bridge/pkg/message/decrypt.go:81 +0x7b1 fp=0xc0015bcaf0 sp=0xc0015bc720 pc=0x7ff7d6f84711
github.com/ProtonMail/proton-bridge/v3/pkg/message.DecryptAndBuildRFC822Into(_, {{{0xc0006fefc0, 0x58}, {0xc0006ff380, 0x58}, {0xc000397440, 0x4, 0x4}, {0xc0004a4de0, 0x2f}, ...}, ...}, ...)
        /home/adam/src/proton-bridge/pkg/message/decrypt_and_build.go:37 +0x5e fp=0xc0015bcfb0 sp=0xc0015bcaf0 pc=0x7ff7d6f84abe
github.com/ProtonMail/proton-bridge/v3/internal/services/imapservice.SyncMessageBuilder.BuildMessage({_}, _, {{{{0xc0006fefc0, 0x58}, {0xc0006ff380, 0x58}, {0xc000397440, 0x4, 0x4}, {0xc0004a4de0, ...}, ...}, ...}, ...}, ...)
        /home/adam/src/proton-bridge/internal/services/imapservice/sync_message_builder.go:49 +0x10f fp=0xc0015bd170 sp=0xc0015bcfb0 pc=0x7ff7d6fbbe0f
github.com/ProtonMail/proton-bridge/v3/internal/services/imapservice.(*SyncMessageBuilder).BuildMessage(_, _, {{{{0xc0006fefc0, 0x58}, {0xc0006ff380, 0x58}, {0xc000397440, 0x4, 0x4}, {0xc0004a4de0, ...}, ...}, ...}, ...}, ...)
        <autogenerated>:1 +0x9b fp=0xc0015bd358 sp=0xc0015bd170 pc=0x7ff7d6fc1c5b
github.com/ProtonMail/proton-bridge/v3/internal/services/syncservice.(*BuildStage).run.func1.1({_, _}, {{{{0xc0006fefc0, 0x58}, {0xc0006ff380, 0x58}, {0xc000397440, 0x4, 0x4}, {0xc0004a4de0, ...}, ...}, ...}, ...})
        /home/adam/src/proton-bridge/internal/services/syncservice/stage_build.go:157 +0x147 fp=0xc0015bdbe8 sp=0xc0015bd358 pc=0x7ff7d6f91c07
github.com/bradenaw/juniper/parallel.MapContext[...].func1(0x36?)
        /home/adam/go/pkg/mod/github.com/bradenaw/[email protected]/parallel/parallel.go:145 +0xd9 fp=0xc0015bdf28 sp=0xc0015bdbe8 pc=0x7ff7d6f98259
github.com/bradenaw/juniper/parallel.DoContext.func1()
        /home/adam/go/pkg/mod/github.com/bradenaw/[email protected]/parallel/parallel.go:103 +0x97 fp=0xc0015bdf78 sp=0xc0015bdf28 pc=0x7ff7d6bfe037
golang.org/x/sync/errgroup.(*Group).Go.func1()
        /home/adam/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x50 fp=0xc0015bdfe0 sp=0xc0015bdf78 pc=0x7ff7d6bfd810
runtime.goexit({})
        /snap/go/10743/src/runtime/asm_amd64.s:1700 +0x1 fp=0xc0015bdfe8 sp=0xc0015bdfe0 pc=0x7ff7d676ea81
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 60
        /home/adam/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0x96

proton-bridge-stack-trace.log

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

No branches or pull requests

1 participant