[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Apoorv Reddy
Apoorv Reddy added the comment: Greetings Larry ! I apologize for spamming so many people. I was hoping to get some insight into this ! Could you let me know to whom I could reach out for help ? I've included tehybel as I saw that he has raised/resolved some issues with PyDict in the past

[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-18 Thread Apoorv Reddy
Change by Apoorv Reddy : -- nosy: +amaury.forgeotdarc, belopolsky, benjamin.peterson, christian.heimes, duaneg, ebarry, georg.brandl, inada.naoki, larry, meador.inge, ned.deily, rhettinger, serhiy.storchaka, tehybel ___ Python tracker <ht

[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-18 Thread Apoorv Reddy
New submission from Apoorv Reddy : I'm trying to use ctypes to speed up an internal function in my project. However, I'm getting a segmentation fault on a simple dictionary lookup in my C Code, on PyDict_GetItem(dict, key). I have supplied a minimal version of the code I'm trying in C, which