You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like an assertion was thrown in hiredis but I'm not sure if it's a bug in hiredis or unexpected usage of the lib by node_redis so I'm filing here.
Assertion failed: (redisReaderFeed(r->reader, data, length) == REDIS_OK), function Feed, file ../reader.cc, line 198.
Abort trap
This is only possible on an OOM condition, or when the reader object was already in an erroneous state. When you catch an error related to a protocol error or something, a new instance of the reader should be created because hiredis can't fix a broken data stream. This is where redisReaderFeed returns REDIS_ERR and the assertion fails.
This is only possible on an OOM condition, or when the reader object was already in an erroneous state. When you catch an error related to a protocol error or something, a new instance of the reader should be created because hiredis can't fix a broken data stream. This is where redisReaderFeed returns REDIS_ERR and the assertion fails.
Reply to this email directly or view it on GitHub: #126 (comment)
I filed a separate ticket showing example stack traces. The problem is after node_redis autoreconnects the queries will hang indefinitely except for the occasional protocol error. Then once in a while that will crash hiredis. So I think one bug is uncovering 2-3 others.
The other relevant piece here is that queries hang after auto-reconnect when connecting over a UNIX socket. I haven't tried over a TCP socket yet, I can do that today.
On Aug 10, 2011, at 9:39 AM, pietern wrote:
Did this happen after normal use of node_redis/hiredis? Protocol errors are very rare (unless you connect to something different than Redis).
Reply to this email directly or view it on GitHub: #126 (comment)
Activity
mranney commentedon Aug 10, 2011
Do you have a way to reproduce this?
@pietern any thoughts?
pietern commentedon Aug 10, 2011
This is only possible on an OOM condition, or when the reader object was already in an erroneous state. When you catch an error related to a protocol error or something, a new instance of the reader should be created because hiredis can't fix a broken data stream. This is where
redisReaderFeedreturnsREDIS_ERRand the assertion fails.jhurliman commentedon Aug 10, 2011
The latter is what happened here. There was a protocol error before the crash.
John
On Aug 10, 2011, at 7:36 AM, [email protected] wrote:
pietern commentedon Aug 10, 2011
Did this happen after normal use of node_redis/hiredis? Protocol errors are very rare (unless you connect to something different than Redis).
jhurliman commentedon Aug 10, 2011
I filed a separate ticket showing example stack traces. The problem is after node_redis autoreconnects the queries will hang indefinitely except for the occasional protocol error. Then once in a while that will crash hiredis. So I think one bug is uncovering 2-3 others.
John
On Aug 10, 2011, at 9:39 AM, [email protected] wrote:
jhurliman commentedon Aug 10, 2011
The other relevant piece here is that queries hang after auto-reconnect when connecting over a UNIX socket. I haven't tried over a TCP socket yet, I can do that today.
On Aug 10, 2011, at 9:39 AM, pietern wrote:
jhurliman commentedon Aug 12, 2011
I believe this was fixed with commit 3e95c55