program linked to protobuf crashes before main

Bug #1857769 reported by David Lawrence
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
protobuf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This simple test crashes on a system that I installed Ubuntu Server 20.04 daily build on yesterday:
echo "syntax = \"proto2\";" >| test.pbc
echo "message TestMsg" >> test.pbc
echo "{" >> test.pbc
echo " required double f1 = 1;" >> test.pbc
echo "}" >> test.pbc

echo "int main() {return 0;}" >| test.cc

protoc --cpp_out=. ./test.pbc
g++ -c -o test.pbc.pb.o test.pbc.pb.cc
g++ -c -o test.o test.cc
g++ -o test test.o test.pbc.pb.o -lprotobuf
./test
terminate called after throwing an instance of 'std::system_error'
  what(): Unknown error -1
Aborted (core dumped)

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: protobuf-compiler 3.6.1.3-2ubuntu1
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
Uname: Linux 5.3.0-24-generic x86_64
ApportVersion: 2.20.11-0ubuntu15
Architecture: amd64
Date: Sat Dec 28 19:10:20 2019
InstallationDate: Installed on 2019-12-27 (1 days ago)
InstallationMedia: Ubuntu-Server 20.04 LTS "Focal Fossa" - Alpha amd64 (20191227)
SourcePackage: protobuf
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
David Lawrence (david-gary-lawrence) wrote :
description: updated
Revision history for this message
David Lawrence (david-gary-lawrence) wrote :

This is still crashing on an up to date 20.04 build. This is a show stopper for me using 20.04.

Revision history for this message
David Lawrence (david-gary-lawrence) wrote :

I downloaded the latest protocol buffer release (protobuf-cpp-3.12.3.tar.gz) and the simple test app does not crash with that. So this problem seems to be unique to 20.04.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in protobuf (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.