Skip Menu |

This queue is for tickets about the Redis-hiredis CPAN distribution.

Report information
The Basics
Id: 68617
Status: new
Priority: 0/
Queue: Redis-hiredis

People
Owner: Nobody in particular
Requestors: evgl1934 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.9.2.6
Fixed in: (no value)



Subject: SIGBUS when Redis server restarted
Hello Brian. I have found a bug in Redis::hiredis. If the daemon has restarted after successful client connection, then any command results to SIGBUS. "Patch" is in attachment. Yours, Eugene. Distribution name and version: Redis-hiredis-0.9.2.6 Perl version: 5.8.9, 5.10.1 OS: MacOSX/FreeBSD several versions
Subject: hiredis.xs.patch
--- Redis-hiredis-0.9.2.6/hiredis.xs.orig 2011-02-20 05:02:31.000000000 +0300 +++ Redis-hiredis-0.9.2.6/hiredis.xs 2011-06-03 00:58:49.000000000 +0400 @@ -145,6 +145,10 @@ else { reply = redisCommand(self->context, (char *)SvPV_nolen(ST(1))); } + + if(reply == NULL) + croak("error processing command: %s\n", self->context->errstr); + RETVAL = _read_reply(self, reply); freeReplyObject(reply); OUTPUT: