wangxiaowei0303 / rapidjson

Automatically exported from code.google.com/p/rapidjson
MIT License
0 stars 0 forks source link

Random errors in high optimitzed code (Xcode 4.3 with LLVM 3.1 compiler) #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem:
1. Try parsing a file without optimizing option, notice everything works fine
2. Enable the highest optimization available (fastest, smallest on Xcode 4.3 
LLVM 3.1)
3. Random crashes when parsing the same file as before

That is happening on Mac OSX Lion with Xcode 4.3 with LLVM 3.1 compiler.

I uploaded the same file that i'm using so you can test it and see if you can 
reproduce this bug.
We've also experienced some infinite loop while trying to parse a string field 
containing an email from facebook API, don't know if it's related, but 
disabling the optimization seemed to fix the problem...

Original issue reported on code.google.com by xavier1...@gmail.com on 3 Sep 2012 at 11:14

Attachments:

GoogleCodeExporter commented 9 years ago
I have difficulty to reproduce this.
Can you provide more information on the crash? Such as call stack.
We may need some disassembly to find out where it actually crashes.
If the bug can be reproduced with turning inline off, then it may be easier to 
locate the issue.

Original comment by milo...@gmail.com on 14 Nov 2012 at 3:09

GoogleCodeExporter commented 9 years ago
Am getting random errors with an iOS app. The root object seems to randomly 
return that it is an array when it should be an object. Happens about a third 
of the time. Not traced far in yet, but I can see that is sees the opening '{' 
and heads into ParseObject every time. May be related?

Original comment by htks...@gmail.com on 4 Dec 2012 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by milo...@gmail.com on 30 Jun 2014 at 10:50