Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGSEGV during connection #138

Open
jarda-manana opened this issue Dec 9, 2016 · 2 comments
Open

SIGSEGV during connection #138

jarda-manana opened this issue Dec 9, 2016 · 2 comments

Comments

@jarda-manana
Copy link

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()
@jboone100
Copy link
Contributor

jboone100 commented Dec 9, 2016

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?

@jarda-manana
Copy link
Author

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.

mlicheng pushed a commit to mlicheng/aerospike-client-python that referenced this issue Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants