This is the second time I face this error: SIGSEGV: Illegal storage access. (Attempt to read from nil?)
So I am pretty sure this is something that I systematically do wrong. This happens when I wrap some libraries. My question is what is the right strategy to debug this sort of problem (bearing in mind I have never used gdb). Any particular recommended read?