Seg fault on python client

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.

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.

1 Like