lericson/pylibmc — Issue #71: Shutting down memcached crashes program with "Abort trap: 6"
Author: kristaps
Created: 2012-01-23 12:08:26+00:00
State: open

With a memcached server running run this program:

```#!/usr/bin/env python

import time
import pylibmc

mc = pylibmc.Client(['127.0.0.1'])

mc.set('mc_test_foo', 10)

while True:
try:
print mc.get('mc_test_foo')
except:
print "Got exception"
time.sleep(1)```

Now shut down memcached. At the next get() the program crashes with the following output:
Assertion failed: (0), function memcached_io_read, file libmemcached/io.cc, line 356.
Abort trap: 6