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

InlineVerifyer: invalid memory address or nil pointer dereference #337

Open
Strech opened this issue Nov 7, 2022 · 0 comments
Open

InlineVerifyer: invalid memory address or nil pointer dereference #337

Strech opened this issue Nov 7, 2022 · 0 comments
Labels
Bug Something isn't working can't reproduce This doesn't seem right

Comments

@Strech
Copy link

Strech commented Nov 7, 2022

Ghostferry to terminated with panic about memory issue.

Backtrace

    /home/runner/work/ghostferry/ghostferry/inline_verifier.go:729 +0x159
github.com/Shopify/ghostferry.(*InlineVerifier).verifyBinlogBatch.func1(0xc00ac91240, 0xc000312300, 0xc000232290, 0x10, 0xc000019230, 0x24, 0xc000867180, 0x3, 0x64, 0xc0004ea910, ...)
    /home/runner/work/ghostferry/ghostferry/utils.go:20
github.com/Shopify/ghostferry.WithRetries(...)
    /home/runner/work/ghostferry/ghostferry/utils.go:39 +0x1d6
github.com/Shopify/ghostferry.WithRetriesContext(0x0, 0x0, 0x5, 0x0, 0xc000b22150, 0x812215, 0x1f, 0xc003adbef8, 0x31, 0x15)
    /home/runner/work/ghostferry/ghostferry/inline_verifier.go:730 +0x9f
github.com/Shopify/ghostferry.(*InlineVerifier).verifyBinlogBatch.func1.1(0x4d34557a4d343453, 0x6a4d222c223d557a)
    /home/runner/work/ghostferry/ghostferry/inline_verifier.go:474 +0xc6
github.com/Shopify/ghostferry.(*InlineVerifier).getFingerprintDataFromSourceDb(0xc000312300, 0xc000232290, 0x10, 0xc000019230, 0x24, 0x0, 0xc0004ea910, 0xc000867180, 0x3, 0x64, ...)
    /home/runner/work/ghostferry/ghostferry/inline_verifier.go:482 +0x85
github.com/Shopify/ghostferry.(*InlineVerifier).getFingerprintDataFromDb(0xc000312300, 0xc00000f068, 0xc000a3f9a0, 0xc000232290, 0x10, 0xc000019230, 0x24, 0x0, 0xc0004ea910, 0xc000867180, ...)
    /home/runner/work/ghostferry/ghostferry/table_schema_cache.go:79 +0x330
github.com/Shopify/ghostferry.(*TableSchema).FingerprintQuery(0xc0004ea910, 0xc000232290, 0x10, 0xc000019230, 0x24, 0x3, 0x0, 0x0)
    /opt/hostedtoolcache/go/1.16.5/x64/src/strings/strings.go:438 +0x325
strings.Join(0xc007c029a0, 0x2, 0x2, 0x8820c4, 0x1, 0xc004fba5f0, 0x4)
    /opt/hostedtoolcache/go/1.16.5/x64/src/strings/builder.go:123
strings.(*Builder).WriteString(...)
goroutine 3050 [running]:
[signal SIGSEGV: segmentation violation code=0x1 addr=0x125 pc=0x46e725]
panic: runtime error: invalid memory address or nil pointer dereference
@Strech Strech added Bug Something isn't working can't reproduce This doesn't seem right labels Nov 7, 2022
@Strech Strech self-assigned this Nov 7, 2022
@Shopify Shopify locked as resolved and limited conversation to collaborators Nov 7, 2022
@Shopify Shopify unlocked this conversation Nov 7, 2022
@Strech Strech removed their assignment Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working can't reproduce This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant