Opened 5 years ago

Closed 5 years ago

#1477 closed defect (fixed)

AIOOB on UDP

Reported by: Eche|on Owned by:
Priority: minor Milestone: 0.9.18
Component: router/transport Version: 0.9.17
Keywords: Cc:
Parent Tickets: Sensitive: no

Description

Got a few of these:

2/19/15 10:03:27 AM ERROR [receiver 2/5] .transport.udp.MessageReceiver?: Error handling a message: IB Message: 18297 from [Hash: 4LSIq98BOo~vUl9a~mUA1U9QafHbtN97hfOmYgpmkOg=] completely received with 72 bytes lifetime: 0

java.lang.ArrayIndexOutOfBoundsException?
at net.i2p.data.SDSCache.get(SDSCache.java:164)
at net.i2p.data.Hash.create(Hash.java:54)
at net.i2p.data.i2np.DatabaseLookupMessage?.readMessage(DatabaseLookupMessage?.java:363)
at net.i2p.data.i2np.I2NPMessageImpl.readMessage(I2NPMessageImpl.java:380)
at net.i2p.data.i2np.I2NPMessageImpl.fromRawByteArray(I2NPMessageImpl.java:419)
at net.i2p.router.transport.udp.MessageReceiver?.readMessage(MessageReceiver?.java:215)
at net.i2p.router.transport.udp.MessageReceiver?.loop(MessageReceiver?.java:160)
at net.i2p.router.transport.udp.MessageReceiver?$Runner.run(MessageReceiver?.java:82)
at java.lang.Thread.run(Thread.java:745)
at net.i2p.util.I2PThread.run(I2PThread.java:84)

2/19/15 8:42:50 AM ERROR [receiver 4/5] .transport.udp.MessageReceiver?: Error handling a message: IB Message: 16313 from [Hash: YazF8qylTieYw7DGVnOvrzug6xcjTfY5yaCRKG8M5cU=] completely received with 72 bytes lifetime: 1

java.lang.ArrayIndexOutOfBoundsException?
at net.i2p.data.SDSCache.get(SDSCache.java:164)
at net.i2p.data.Hash.create(Hash.java:54)
at net.i2p.data.i2np.DatabaseLookupMessage?.readMessage(DatabaseLookupMessage?.java:363)
at net.i2p.data.i2np.I2NPMessageImpl.readMessage(I2NPMessageImpl.java:380)
at net.i2p.data.i2np.I2NPMessageImpl.fromRawByteArray(I2NPMessageImpl.java:419)
at net.i2p.router.transport.udp.MessageReceiver?.readMessage(MessageReceiver?.java:215)
at net.i2p.router.transport.udp.MessageReceiver?.loop(MessageReceiver?.java:160)
at net.i2p.router.transport.udp.MessageReceiver?$Runner.run(MessageReceiver?.java:82)
at java.lang.Thread.run(Thread.java:745)
at net.i2p.util.I2PThread.run(I2PThread.java:84)

2/19/15 5:19:38 AM ERROR [receiver 2/5] .transport.udp.MessageReceiver?: Error handling a message: IB Message: 267398 from [Hash: K7BrXBEhexkjsc91QvAMBlOQOHwbjjI~XW4~TDvibzY=] completely received with 72 bytes lifetime: 0

java.lang.ArrayIndexOutOfBoundsException?
at net.i2p.data.SDSCache.get(SDSCache.java:164)
at net.i2p.data.Hash.create(Hash.java:54)
at net.i2p.data.i2np.DatabaseLookupMessage?.readMessage(DatabaseLookupMessage?.java:363)
at net.i2p.data.i2np.I2NPMessageImpl.readMessage(I2NPMessageImpl.java:380)
at net.i2p.data.i2np.I2NPMessageImpl.fromRawByteArray(I2NPMessageImpl.java:419)
at net.i2p.router.transport.udp.MessageReceiver?.readMessage(MessageReceiver?.java:215)
at net.i2p.router.transport.udp.MessageReceiver?.loop(MessageReceiver?.java:160)
at net.i2p.router.transport.udp.MessageReceiver?$Runner.run(MessageReceiver?.java:82)
at java.lang.Thread.run(Thread.java:745)
at net.i2p.util.I2PThread.run(I2PThread.java:84)

2/19/15 1:39:14 AM ERROR [receiver 5/5] .transport.udp.MessageReceiver?: Error handling a message: IB Message: 3207618 from [Hash: 1qr1Z9GZcyRxwHkHqn3TC2dMP5paydnjGQgHbA8J1C4=] completely received with 72 bytes lifetime: 0

java.lang.ArrayIndexOutOfBoundsException?
at net.i2p.data.SDSCache.get(SDSCache.java:164)
at net.i2p.data.Hash.create(Hash.java:54)
at net.i2p.data.i2np.DatabaseLookupMessage?.readMessage(DatabaseLookupMessage?.java:363)
at net.i2p.data.i2np.I2NPMessageImpl.readMessage(I2NPMessageImpl.java:380)
at net.i2p.data.i2np.I2NPMessageImpl.fromRawByteArray(I2NPMessageImpl.java:419)
at net.i2p.router.transport.udp.MessageReceiver?.readMessage(MessageReceiver?.java:215)
at net.i2p.router.transport.udp.MessageReceiver?.loop(MessageReceiver?.java:160)
at net.i2p.router.transport.udp.MessageReceiver?$Runner.run(MessageReceiver?.java:82)
at java.lang.Thread.run(Thread.java:745)
at net.i2p.util.I2PThread.run(I2PThread.java:84)

2/18/15 10:08:36 PM ERROR [receiver 3/5] .transport.udp.MessageReceiver?: Error handling a message: IB Message: 49008 from [Hash: f1IJlttIOhsT7IOcG-iOxSM3O4uyQKE2nirxC6ZAtPg=] completely received with 72 bytes lifetime: 0

java.lang.ArrayIndexOutOfBoundsException?
at net.i2p.data.SDSCache.get(SDSCache.java:164)
at net.i2p.data.Hash.create(Hash.java:54)
at net.i2p.data.i2np.DatabaseLookupMessage?.readMessage(DatabaseLookupMessage?.java:363)
at net.i2p.data.i2np.I2NPMessageImpl.readMessage(I2NPMessageImpl.java:380)
at net.i2p.data.i2np.I2NPMessageImpl.fromRawByteArray(I2NPMessageImpl.java:419)
at net.i2p.router.transport.udp.MessageReceiver?.readMessage(MessageReceiver?.java:215)
at net.i2p.router.transport.udp.MessageReceiver?.loop(MessageReceiver?.java:160)
at net.i2p.router.transport.udp.MessageReceiver?$Runner.run(MessageReceiver?.java:82)
at java.lang.Thread.run(Thread.java:745)
at net.i2p.util.I2PThread.run(I2PThread.java:84)

I2P version: 0.9.17-23-deb1

Java version: Oracle Corporation 1.8.0_31 (Java™ SE Runtime Environment 1.8.0_31-b13)
Wrapper version: 3.5.25
Server version: 8.1.16.v20140903
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux amd64 3.16.0-4-amd64
Processor: Haswell (corei)
Jbigi: Locally optimized native BigInteger? library loaded from file
Encoding: UTF-8
Charset: UTF-8

Subtickets

Change History (1)

comment:1 Changed 5 years ago by zzz

Component: unspecifiedrouter/transport
Milestone: undecided0.9.18
Resolution: fixed
Status: newclosed

Fixed in 23f6245954e5e86ade3a8cad3a1f191bc88cc5c2 0.9.17-25-rc

This is an old i2pd bug, since fixed, that sends corrupt DatabaseLookup? messages (bad number of excluded peers). Thought I already changed the log level to WARN but missed a spot.

Note: See TracTickets for help on using tickets.