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

ISSUE-718: Panic on NewReader - nil pointer dereference in TopicNameWithoutPartitionPart #258

Open
sijie opened this issue Jan 25, 2022 · 0 comments

Comments

@sijie
Copy link
Member

sijie commented Jan 25, 2022

Original Issue: apache#718


https://github.com/apache/pulsar-client-go/blob/edf81af225d1573848584a7e48f090a558a9c620/pulsar/internal/topic_name.go#L110

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x1429578]

goroutine 1691 [running]:
github.com/apache/pulsar-client-go/pulsar/internal.TopicNameWithoutPartitionPart(0xc0006de100)
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/internal/topic_name.go:110 +0x18
github.com/apache/pulsar-client-go/pulsar/internal.(*Metrics).GetLeveledMetrics(0xc0005b0dc0, {0xc0006de100, 0x7b})
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/internal/metrics.go:486 +0x6f
github.com/apache/pulsar-client-go/pulsar.newReader(0xc000132840, {{0xc0006de100, 0x7b}, {0x0, 0x0}, 0x0, {0x1d38d58, 0xc000143f68}, 0x0, 0x0, ...})
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/reader_impl.go:99 +0x53d
github.com/apache/pulsar-client-go/pulsar.(*client).CreateReader(0xc000132840, {{0xc0006de100, 0x7b}, {0x0, 0x0}, 0x0, {0x1d38d58, 0xc000143f68}, 0x0, 0x0, ...})
	/src/vendor/github.com/apache/pulsar-client-go/pulsar/client_impl.go:171 +0x58
github.com/cogitocorp/compute-platform-library/pkg/platform/pulsarhelpers.PulsarHelper.NewReader({{{0xc0000401b0, 0x24}, {0x0, 0x0}}, {0x1d38418, 0xc000132840}, {0xc000590650, 0xc}}, {0xc0006de100, 0x7b})
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