acg/lwpb — Issue #2: memory corruption?
Author: sigmonsays
Created: 2011-11-01 00:53:52+00:00
State: open

Symptoms are seen on the 'python' branch using the python bindings. There seems to be a very strange type of error where the python stack, memory or state in general is getting smashed up. Please see the following example at https://gist.github.com/11c6f1b509770b848a52 as github markup formatting couldn't easily preformat blocks of text.

Line #30 from the gist explodes. The output looks like this:
$ python test.py
1
2
Traceback (most recent call last):
File "test_perf_lwpb.py", line 13, in
for n in [1,2]:
OverflowError: could not convert to long

Platform is ubuntu lucid

dpkg -l |grep protobuf
ii libprotobuf-c0 0.14-1 Protocol Buffers C library
ii libprotobuf-c0-dev 0.14-1 Protocol Buffers C static library and header
ii libprotobuf-dev 2.4.0a-2ubuntu2 protocol buffers C++ library (development fi
ii libprotobuf-lite7 2.4.0a-2ubuntu2 protocol buffers C++ library (lite version)
rc libprotobuf5 2.2.0a-0.1ubuntu1 protocol buffers C++ library
ii libprotobuf7 2.4.0a-2ubuntu2 protocol buffers C++ library
ii protobuf-c-compiler 0.14-1 protocol buffers C compiler
ii protobuf-compiler 2.4.0a-2ubuntu2 compiler for protocol buffer definition file
ii python-protobuf 2.4.0a-2ubuntu2 Python bindings for protocol buffers