Sorry, this is not a stack trace. Please type "bt" at gdb prompt to get the real stack trace. Also please look at the variable values as it's not clear why does it crash: is wxtree_model invalid? Or parent? Please try doing e.g. p *parent to try to check it.