iPhone app crashes in xmlparser in the middle of nowhere?
This app has been running fine for months, but now on iOS4 i get crashes when using NSXMLParser. It is crashing in the middle of parsing.
The problem is that i dont get a decent call-stack. the result is:
0 _func__.29470 1 stub helpers
combined with a: Program received signal: “EXC_BAD_ACCESS”.
in the logs.
I enabled: NSZombieEnabled NSDebugEnabled
and i dont get any messages coming out of that, so I guess this is开发者_如何学编程 some really nasty memory bug.
Any advice on how to track this down?
Solved
there was some weird stuff in my xml in the url attribute:
<relatedArticle url="http://www.xx.yy/dir/7/99/29/ÃÇ«-cristiano-ronaldo-a-rate-son-mondial-ÃÇ»/"><![CDATA[Le podcast de Christophe Berti : "Ronaldo a ratÈ son mondial"]]></relatedArticle>
This crashed the app. I think it is a bug as in this case NSXMLParser should return an error.
精彩评论