[llvm-dev] iOS Parsing Error

Johan Wehrli via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 11 00:59:24 PDT 2016


Hi,

When compiling mumble-iphone from https://github.com/mumble-voip/mumble-iphoneos <https://github.com/mumble-voip/mumble-iphoneos> I had a parser error on the file CodeOutputStream.m (form https://github.com/booyah/protobuf-objc/tree/696b7b61cdd4e8d77c55ace98b3119194fa04b7f <https://github.com/booyah/protobuf-objc/tree/696b7b61cdd4e8d77c55ace98b3119194fa04b7f>).

I know that the code form protobuf is old but maybe there is an issue in the parser.

I get the following error (this is working well with the llvm from Apple): 

/src/runtime/Classes/CodedOutputStream.m:389:47: current parser token '{'
clang-3.9: error: unable to execute command: Segmentation fault: 11

I have no experience with the front-end but it seems that the issue is at the end of the file (I have attached the file).

If you remove the function writeRawLittleEndian32 and writeRawLittleEndian64, the parser does not indicate any error (maybe the error is in writeRawVarint64 and it is propagate to the next function). 

Greetings, 

Johan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161011/8342166b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodedOutputStream.m
Type: application/octet-stream
Size: 11259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161011/8342166b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161011/8342166b/attachment-0001.html>


More information about the llvm-dev mailing list