aerospike-client-python
aerospike-client-python copied to clipboard
SIGSEGV during connection
during connection on unreliable network this sigsegv occures (Python 3.5.2, client 2.0.6):
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x0000000000548ec9 in PyUnicode_FromString () at ../Objects/unicodeobject.c:1884
#2 0x00007fabba86605e in raise_exception (err=err@entry=0x7ffe8527e0f0) at src/main/exception.c:366
#3 0x00007fabba868595 in AerospikeClient_Connect (self=<optimized out>, args=<optimized out>, kwds=<optimized out>) at src/main/client/connect.c:125
cfg = {"hosts": [("10.0.17.4", 300)]}
client = aerospike.Client(aeroconfig)
client.connect()
I tried this on both OS X and Ubuntu 14.04 and in both cases I got the expected client exception:
>>> import aerospike
>>> cfg = {"hosts": [("10.0.17.4", 300)]}
>>> client = aerospike.Client(cfg)
>>> client.connect()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
exception.ClientError: (-1, 'Failed to connect', 'src/main/aerospike/as_cluster.c', 375)
Which OS are you running on?
I'm running Ubuntu 16.04 LTS. The network is slow and laggy, I'm getting this sigsegv time to time - let's say 1 from 10 attempts approximately. I have core file, if you're interested.