Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf causes crash beacuse of mutex lock #679

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 4 comments
Open

protobuf causes crash beacuse of mutex lock #679

GoogleCodeExporter opened this issue Mar 17, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
FreeBSD 10, it sometimes crashes on SerializeToOstream

    ostringstream os(ios::out | ios::binary);  
    email.SerializeToOstream(&os);

and creates a core of binary here is gdb output:

#0  0x00000000004aa1a1 in google::protobuf::internal::Mutex::Lock ()
#1  0x00000000004ab767 in google::protobuf::internal::MutexLock::MutexLock ()
#2  0x00000000004aa011 in google::protobuf::internal::LogMessage::Finish ()
#3  0x00000000004aa0e9 in google::protobuf::internal::LogFinisher::operator= ()
#4  0x000000000054e623 in 
google::protobuf::internal::WireFormat::VerifyUTF8StringFallback ()
#5  0x000000000044b7a2 in 
google::protobuf::internal::WireFormat::VerifyUTF8String (
    data=0x8071b5798 "testtir asdas asda sda sdasdasd dadsad n asdasd\nBilgilerinize.\nSayg�lar�mla,\nSibel Kocaku� �ENG�N\nKalite ve �dari ��ler\n<mailto:[email protected]> e:  [email protected]  |\n<http:/"..., size=836, op=google::protobuf::internal::WireFormat::SERIALIZE) at gthr-default.h:199
#6  0x0000000000449007 in emails::Email::SerializeWithCachedSizesToArray 
(this=0x7ffffffed170, target=0x80702b0a2 "word\" xmlns:x=\"urn:schemas-mic 
�$\a\b") at emailInput.pb.cc:43
#7  0x00000000004ac1e7 in 
google::protobuf::MessageLite::SerializePartialToCodedStream ()
#8  0x00000000004ac35d in google::protobuf::MessageLite::SerializeToCodedStream 
()
#9  0x00000000004ac39b in 
google::protobuf::MessageLite::SerializeToZeroCopyStream ()
#10 0x000000000053b2b0 in google::protobuf::Message::SerializeToOstream ()


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

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 12 Nov 2014 at 10:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant