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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 BUG]: Segfault when sending message via nats-cli #1650

Closed
1 task done
KernelMrex opened this issue Jul 20, 2023 · 2 comments 路 Fixed by roadrunner-server/nats#70
Closed
1 task done

[馃悰 BUG]: Segfault when sending message via nats-cli #1650

KernelMrex opened this issue Jul 20, 2023 · 2 comments 路 Fixed by roadrunner-server/nats#70
Assignees
Labels
B-bug Bug: bug, exception F-need-verification
Milestone

Comments

@KernelMrex
Copy link

No duplicates 馃ゲ.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

I have got segfault in RoadRunner container when sending data like this

nats -s 127.0.0.1:4222 pub default "test 2345"

Error

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

goroutine 48 [running]:
github.com/roadrunner-server/nats/v4/natsjobs.(*Driver).listenerStart.func1()
        github.com/roadrunner-server/nats/v4@v4.2.9/natsjobs/listener.go:58 +0x3e3
created by github.com/roadrunner-server/nats/v4/natsjobs.(*Driver).listenerStart
        github.com/roadrunner-server/nats/v4@v4.2.9/natsjobs/listener.go:32 +0x56     

Version (rr --version)

rr version 2023.1.5 (build time: 2023-06-08T14:45:06+0000, go1.20.4), OS: linux, arch: amd64

How to reproduce the issue?

Install nats-cli tool from via go install github.com/nats-io/natscli/nats@latest

nats -s 127.0.0.1:4222 pub default "test 2345"

Relevant log output

No response

@KernelMrex KernelMrex added B-bug Bug: bug, exception F-need-verification labels Jul 20, 2023
@rustatian rustatian added this to the v2023.2.1 milestone Jul 20, 2023
@rustatian
Copy link
Member

Hey @KernelMrex 馃憢馃徎
Yeah, I can confirm that the bug exists. Planned for the 2023.2.1 bugfix release.

@rustatian
Copy link
Member

BTW, you may use consume_all: true pipeline option to bypass this error. This option should be used if you send non json encoded data via console or any third party sender

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: bug, exception F-need-verification
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants