Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 286 by pkwar...@gmail.com: Inconsistency with repeated fields using C++ protobufs
http://code.google.com/p/protobuf/issues/detail?id=286

What steps will reproduce the problem?
1. Compile the test.proto file attached to this ticket (protoc --python_out=. test.proto). 2. Run test1.py with PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python and then PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp. 3. Run test2.py with PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python and then PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp.

What is the expected output? What do you see instead?
test1.py:
$ PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp python ./test1.py
libprotobuf FATAL google/protobuf/reflection_ops.cc:51] CHECK failed: (&from) != (to): terminate called after throwing an instance of 'google::protobuf::FatalException'
  what():  CHECK failed: (&from) != (to):
Abort trap

$ PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python ./test1.py
repeated {
  name: "A"
  value: "1"
}

test2.py:
$ PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp python ./test2.py
repeated {
}

$ PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python python ./test2.py
repeated {
  name: "B"
  value: "4"
}

What version of the product are you using? On what operating system?
protobuf 2.4.1

Please provide any additional information below.


Attachments:
        test.proto  138 bytes
        test1.py  245 bytes
        test2.py  245 bytes

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to