Seg fault on python client

udf

#1

Hi the following code in python results in segmentation fault.

import aerospike
AEROSPIKE_CONFIG = {'hosts': []} # no host provided
c = aerospike.client(AEROSPIKE_CONFIG).connect()
c.udf_put("some_existing_file.lua")

I guess in the udf_put there is no check if the connection is valid.


#2

If you checked c.is_connected after the connect() you’d see that it isn’t. That’s the safe thing to do. Thanks for reporting the segfault. I’ll open a ticket for that bug.