Closed GoogleCodeExporter closed 8 years ago
[deleted comment]
(Thank you for the note on alloca; fixed in subversion)
I don't have a freebsd system to test on, but this is a normal protobuf (not
protobuf-c) program that's failing.
It's crashing in protobuf's static initializers -- this is code that runs
before main().
Can you apply the attached patch to protobuf-c, then re-run
cxx-generate-packed-data > /dev/null
and tell me if it prints
calling generated code static init before protobuf static init
before crashing?
thanks
Original comment by lahike...@gmail.com
on 25 Jun 2009 at 4:01
Attachments:
common-test-arrays.h:61: warning: deprecated conversion from string constant to
'char*'
common-test-arrays.h:61: warning: deprecated conversion from string constant to
'char*'
common-test-arrays.h:61: warning: deprecated conversion from string constant to
'char*'
common-test-arrays.h:61: warning: deprecated conversion from string constant to
'char*'
common-test-arrays.h:62: warning: deprecated conversion from string constant to
'char*'
if g++ -DPACKAGE_NAME=\"protobuf-c\" -DPACKAGE_TARNAME=\"protobuf-c\"
-DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"protobuf-c\ 0.11\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"protobuf-c\" -DVERSION=\"0.11\"
-DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_SYS_POLL_H=1
-DHAVE_SYS_SELECT_H=1 -DPROTOC_VERSION=2001000 -DHAVE_MACHINE_ENDIAN_H=1
-DIS_LITTLE_ENDIAN=1 -I. -I. -I./.. -I/usr/local/include -MT test-full.pb.o
-MD
-MP -MF ".deps/test-full.pb.Tpo" -c -o test-full.pb.o `test -f
'generated-code/test-full.pb.cc' || echo './'`generated-code/test-full.pb.cc;
then
mv -f ".deps/test-full.pb.Tpo" ".deps/test-full.pb.Po"; else rm -f
".deps/test-full.pb.Tpo"; exit 1; fi
/bin/sh ../../libtool --tag=CXX --mode=link g++ -I/usr/local/include
-L/usr/local/lib -o cxx-generate-packed-data cxx-generate-packed-data.o
test-full.pb.o -lprotobuf
g++ -I/usr/local/include -o cxx-generate-packed-data cxx-generate-packed-data.o
test-full.pb.o -L/usr/local/lib /usr/local/lib/libprotobuf.so -lz -Wl,--rpath
-Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
./cxx-generate-packed-data > generated-code/test-full-cxx-output.inc
Segmentation fault (core dumped)
*** Error code 139
Stop in /tmp/protobuf-c-0.11/src/test.
I see no change.
Original comment by nagy.att...@gmail.com
on 25 Jun 2009 at 1:08
Hmm, this looks tricky.
1) probably you can just ignore this problem since protobuf-c has already
built and
you have working a protoc-c program and a libprotobuf-c.so -- essentially just
doing
'make install' should give you a working installation. this isn't very
satisfying
and is probably inacceptable if you are trying to make an official port of
protobuf-c
2) one general debugging aid is valgrind -- if you could install it and run
cd /tmp/protobuf-c-0.11/src/test
valgrind ./cxx-generate-packed-data > /dev/null
and send me whatever valgrind prints it might help (or it might not, who knows?)
3) i will take a stab at debugging on your machine if you give me an account.
if
you want to do this email me. (i will send you my ssh public-key -- that way we
won't have to send passwords through email. i'll need your ip address/hostname
and
the account name.)
Original comment by lahike...@gmail.com
on 29 Jun 2009 at 4:49
it builds all over .. and no follow-up for a long time.. feel free to try with
responses to
my questions
Original comment by lahike...@gmail.com
on 18 Mar 2010 at 2:26
Original issue reported on code.google.com by
nagy.att...@gmail.com
on 24 Jun 2009 at 2:33