Description
What version of protobuf and what language are you using?
Version: v4.24.0
Language: Python upb
What operating system (Linux, Windows, ...) and version?
Repros on Linux and MacOS
What runtime / compiler are you using (e.g., python version or gcc version)
python 3.8
Installed Apple clang version 14.0.3 (clang-1403.0.22.14.1)
What did you do?
We have a proto message that fundamentally looks like this:
syntax = "proto3";
package message;
message TestMessage {
optional int64 field_one = 1;
optional int64 field_two = 2;
map<int32, double> map_field = 3;
}
And we have a piece of python that tries to copy an empty version of one of these messages into the other:
message = message_pb2.TestMessage()
message2 = message_pb2.TestMessage()
message2.CopyFrom(message)
This is resulting on a segmentation fault on exactly the CopyFrom
line.
This failure started with us picking up version 4.24.0 with yesterday's release. Reverting back to any version prior fixes the issue.
Unfortunately building the above example proto as an MVP did not repro the segmentation fault for me. If there are any diagnostics I can provide that would make root causing this easier, happy to help.
What did you expect to see
No seg fault, behavior as before.
What did you see instead?
Segmentation fault failure on CopyFrom
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment