[Pkg-chromium-maint] Need help with FTBFS in chromium 19 and 20

Andrew Chant andrew.chant+debian at gmail.com
Wed May 30 21:05:08 UTC 2012


Which version of gcc & g++ are you using?  using gcc-4.4 and g++-4.4 I
get the following:

The floating point error happens during a lookup into the hash_map
kTypeNames at parser.cc:1339.
the g++-4.4 hashtable implementation (
/usr/include/c++/4.4/backward/hashtable.h:590 ) calls  { return
_M_hash(__key) % __n; }
in this case, __n is zero which causes a divide-by-zero error.

__n is zero because kTypeNames hasn't been initialized.
Despite having a static initializer:
const TypeNameMap kTypeNames = MakeTypeNameTable();
gdb never triggers on breakpoints in the initializer functions, and at
the crash all 40 bytes of kTypeNames are 0.

The error I get when calling protoc with no arguments occurs on the line:
 cerr << "Missing input file." << endl
in third_party/google/protobuf/compiler/command_line_interface.cc:793

which is also very straightforward and shouldn't die. It looks like
there's some some of linker issue happening with protoc.


On Wed, May 30, 2012 at 12:07 PM, Andrew Chant
<andrew.chant+debian at gmail.com> wrote:
> The copy it built of protoc is extremely unhappy on my system -
> running it with no commands or --version results in a segmentation
> fault.
>
>
> On Wed, May 30, 2012 at 11:51 AM, Giuseppe Iuculano
> <giuseppe at iuculano.it> wrote:
>> On 30/05/2012 20:46, Andrew Chant wrote:
>>> I get the same error on your tarball, without any Debian patches applied.
>>> The error is while calling the protobuf compiler, I suspect it's due
>>> to a recent update of libprotoc7:
>>
>> It compiles and uses its internal copy, src/third_party/protobuf/
>>
>>
>> Cheers,
>> Giuseppe.
>>



More information about the Pkg-chromium-maint mailing list