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

Zilla crashes on mqtt cli -T option #1039

Closed
ttimot24 opened this issue May 20, 2024 · 0 comments · Fixed by #1044
Closed

Zilla crashes on mqtt cli -T option #1039

ttimot24 opened this issue May 20, 2024 · 0 comments · Fixed by #1044
Assignees
Labels
bug Something isn't working

Comments

@ttimot24
Copy link
Contributor

ttimot24 commented May 20, 2024

Describe the bug
I was able to crash Zilla with the following command:

mqtt sub -d -v -J -T -h localhost -p 61616 -i webinar-client -t mndwrk-zilla-response

Zilla version: 0.9.80

To Reproduce
Install HiveMQ CLI mqtt client tool and run the above command

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Zilla Environment:

Attach the zilla.yaml config file:

Attach the zilla dump pcap file:

ZILLA_INCUBATOR_ENABLED=true ./zilla dump --verbose --write /tmp/zilla.pcap

Kafka Environment:

  • Provider: [e.g. Kafka, Confluent, Redpanda]
  • Version: [e.g. 22]
  • Config: [e.g. log compaction, Sasl]

Client Environment:

  • Service: [e.g. IoT, Microservice, REST client]
  • Library/SDK:
  • Browser:
  • Version:

Additional context

zilla  | zilla-mndwrk.mndwrk_mqtt_server [20/May/2024:21:04:49 +0000] CLIENT_CONNECTED - webinar-client
zilla  | org.agrona.concurrent.AgentTerminationException: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
zilla  | 	at io.aklivity.zilla.runtime.engine@0.9.80/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.doWork(EngineWorker.java:823)
zilla  | 	at org.agrona.core/org.agrona.concurrent.AgentRunner.doWork(AgentRunner.java:304)
zilla  | 	at org.agrona.core/org.agrona.concurrent.AgentRunner.workLoop(AgentRunner.java:296)
zilla  | 	at org.agrona.core/org.agrona.concurrent.AgentRunner.run(AgentRunner.java:162)
zilla  | 	at java.base/java.lang.Thread.run(Thread.java:1583)
zilla  | Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
zilla  | 	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
zilla  | 	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
zilla  | 	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
zilla  | 	at java.base/java.util.Objects.checkIndex(Objects.java:385)
zilla  | 	at java.base/java.util.ArrayList.get(ArrayList.java:427)
zilla  | 	at io.aklivity.zilla.runtime.binding.mqtt@0.9.80/io.aklivity.zilla.runtime.binding.mqtt.internal.stream.MqttServerFactory$MqttServer$MqttSessionStream.onSessionData(MqttServerFactory.java:5372)
zilla  | 	at io.aklivity.zilla.runtime.binding.mqtt@0.9.80/io.aklivity.zilla.runtime.binding.mqtt.internal.stream.MqttServerFactory$MqttServer$MqttSessionStream.onSession(MqttServerFactory.java:5106)
zilla  | 	at io.aklivity.zilla.runtime.engine@0.9.80/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.handleReadReply(EngineWorker.java:1408)
zilla  | 	at io.aklivity.zilla.runtime.engine@0.9.80/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.handleRead(EngineWorker.java:1209)
zilla  | 	at io.aklivity.zilla.runtime.engine@0.9.80/io.aklivity.zilla.runtime.engine.internal.concurent.ManyToOneRingBuffer.read(ManyToOneRingBuffer.java:229)
zilla  | 	at io.aklivity.zilla.runtime.engine@0.9.80/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.doWork(EngineWorker.java:817)
zilla  | 	... 4 more
zilla  | 	Suppressed: java.lang.Exception: [engine/data#3]	[0x030300000000000c] streams=[consumeAt=0x00011960 (0x0000000000011960), produceAt=0x00011960 (0x0000000000011960)]
zilla  | 		at io.aklivity.zilla.runtime.engine@0.9.80/io.aklivity.zilla.runtime.engine.internal.registry.EngineWorker.doWork(EngineWorker.java:821)
zilla  | 		... 4 more
zilla  | stopped
@ttimot24 ttimot24 added the bug Something isn't working label May 20, 2024
@bmaidics bmaidics linked a pull request May 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants