Segmentation fault error in a multi threaded app in python
问题 I have a multi threaded app in python, wherein I create multiple producer threads and they extract the data from DB. Data is extracted in chunks. So the part where a thread creates sql statement with limit values is kept within lock. And to let threads execute queries simultaneously, query() function is kept outside the lock. Then the result fetching part is again kept under the lock. Below is the code snippet: with UserAgent.lock: sqlGeoTarget = "call sp_ax_ari_select_user_agent_list('0'," +