cezheng / Fuzi

A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
MIT License
1.07k stars 156 forks source link

Fuzi behaving different in debug and release build, sometimes crash #112

Closed kukushi closed 4 years ago

kukushi commented 4 years ago

Description:

Environment

How to reproduce:

I have an example for reproducing this issue: https://github.com/kukushi/FuziCrash

lyricdon commented 4 years ago

I run into this issue too, the method 'xmlGetProp' crashed with 'EXC_BAD_ACCESS'. Have you resolve this?

kukushi commented 4 years ago

During the process of creating a minimum swift file for reproducing this issue, I found it was a crash caused by an inappropriate usage of unowned let and referencing a released object inside the third party framework. The weird part is that crash only happened in the release build. Anyway, this is not a issue of libxml and I will close this issue.