Closed dynamobi-build closed 12 years ago
[author="jvs", created="Mon, 6 Feb 2006 13:50:47 -0500 (GMT-05:00)"] Looks like the optimized build is catching unitialized variable dummyBuffer (which is assigned to pTupleBuffer).
[author="zfong", created="Mon, 6 Feb 2006 14:09:56 -0500 (GMT-05:00)"] Checked in fix into Eigenchange 5349.j
[author="schoi", created="Mon, 6 Feb 2006 23:15:47 -0500 (GMT-05:00)"] verified. thanks
[author="schoi", created="Tue, 7 Feb 2006 23:49:11 -0500 (GMT-05:00)"]
I think with eigenchange 5358 (integrate from dev@5355), another uninitialized variable:
schoi@chikai:~/open/farrago$ ./initBuild.sh --with-fennel --with-optimization --without-debug
.....
creating SqlRegExpTest
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/schoi/open/fennel/../thirdparty/stlport/stlport -I/home/schoi/open/fennel/../thirdparty/boost -I../.. -I../../.. -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -MT SqlStringTest.o -MD -MP -MF ".deps/SqlStringTest.Tpo" -c -o SqlStringTest.o SqlStringTest.cpp;
then mv -f ".deps/SqlStringTest.Tpo" ".deps/SqlStringTest.Po"; else rm -f ".deps/SqlStringTest.Tpo"; exit 1; fi
SqlStringTest.cpp: In member function void<br/> SqlStringTest::testSqlStringCastFromApprox()':<br/> SqlStringTest.cpp:3177: warning:
int prec' might be used uninitialized in this
function
SqlStringTest.cpp:3179: warning: char last_digit' might be used uninitialized<br/> in this function<br/> make[3]: *** [SqlStringTest.o] Error 1<br/> make[3]: Leaving directory
/home/schoi/open/fennel/disruptivetech/test'
make[2]: * [all-recursive] Error 1
make[2]: Leaving directory `/home/schoi/open/fennel/disruptivetech'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory`/home/schoi/open/fennel'
make: *\ [all] Error 2
[author="jvs", created="Wed, 8 Feb 2006 11:06:54 -0500 (GMT-05:00)"]
Eigenchange 5376. Sunny, to avoid confusion, could you create a separate issue next time?
Need to see if we can change our debug build settings so we can catch these earlier. The problem is that now gcc only catches these when optimization is turned on, which we don't want for a debug build. But maybe there's a minimal -O setting we can use which will catch these without rearranging code (which makes debugging difficult). Or we could file an enhancement request with the gcc people and wait a few years.
[reporter="schoi", created="Mon, 6 Feb 2006 13:45:51 -0500 (GMT-05:00)"] from /open/farrago:
"./initBuild.sh --with-fennel --without-tests --with-optimization --without-debug" fails in fennel make (but "./initBuild.sh --with-fennel --without-tests" builds ok)
---------------------------------
make[3]: Leaving directory
/home/schoi/open/fennel/lucidera/libfennel_lu'<br/> Making all in test<br/> make[3]: Entering directory
/home/schoi/open/fennel/lucidera/test'if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/schoi/open/fennel/../thirdparty/stlport/stlport -I/home/schoi/open/fennel/../thirdparty/boost -I../.. -I../../.. -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -MT ExternalSortExecStreamTest.o -MD -MP -MF ".deps/ExternalSortExecStreamTest.Tpo" -c -o ExternalSortExecStreamTest.o ExternalSortExecStreamTest.cpp;
then mv -f ".deps/ExternalSortExecStreamTest.Tpo" ".deps/ExternalSortExecStreamTest.Po"; else rm -f ".deps/ExternalSortExecStreamTest.Tpo"; exit 1; fi
/bin/sh ../../libtool --mode=link g++ -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -L/home/schoi/open/fennel/../thirdparty/boost/lib -L/home/schoi/open/fennel/../thirdparty/stlport/lib -Wl,-lboost_thread-gcc-mt-p-1_33 -Wl,-lboost_regex-gcc-mt-p-1_33 -Wl,-lboost_date_time-gcc-mt-p-1_33 -Wl,-lboost_filesystem-gcc-mt-p-1_33 -Wl,-lstlport_gcc -Wl,-E -lpthread -lstdc++ -lgcc_s -lrt -release 0.5.0 -o ExternalSortExecStreamTest ExternalSortExecStreamTest.o -L../../test -L../../libfennel -L../../lucidera/libfennel_lu -L../../disruptivetech/libfennel_dt -lfenneltestdyn -lfennel_lu_bitmap -lfennel_lu_colstore -lfennel_lu_flatfile -lfennel_lu_sorter -lfennel_ftrs -lfennel_db -lfennel_btree -lfennel_exec -lfennel_tuple -lfennel_txn -lfennel_segment -lfennel_cache -lfennel_device -lfennel_common -lfennel_dt_calc -lfennel_dt_xo -lstlport_gcc -lpthread -lstdc++ -lgcc_s -lrt -release 0.5.0
mkdir .libs
libtool: link: warning:
-release' is ignored for programs<br/> g++ -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -Wl,-lboost_thread-gcc-mt-p-1_33 -Wl,-lboost_regex-gcc-mt-p-1_33 -Wl,-lboost_date_time-gcc-mt-p-1_33 -Wl,-lboost_filesystem-gcc-mt-p-1_33 -Wl,-lstlport_gcc -Wl,-E -o .libs/ExternalSortExecStreamTest ExternalSortExecStreamTest.o -L/home/schoi/open/fennel/../thirdparty/boost/lib -L/home/schoi/open/fennel/../thirdparty/stlport/lib -L/home/schoi/open/fennel/test -L/home/schoi/open/fennel/libfennel -L/home/schoi/open/fennel/lucidera/libfennel_lu -L/home/schoi/open/fennel/disruptivetech/libfennel_dt /home/schoi/open/fennel/test/.libs/libfenneltestdyn.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_bitmap.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_colstore.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_flatfile.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_sorter.so /home/schoi/open/fennel/libfennel/.libs/libfennel_ftrs.so /home/schoi/open/fennel/libfennel/.libs/libfennel_db.so /home/schoi/open/fennel/libfennel/.libs/libfennel_btree.so /home/schoi/open/fennel/libfennel/.libs/libfennel_exec.so /home/schoi/open/fennel/libfennel/.libs/libfennel_tuple.so /home/schoi/open/fennel/libfennel/.libs/libfennel_txn.so /home/schoi/open/fennel/libfennel/.libs/libfennel_segment.so /home/schoi/open/fennel/libfennel/.libs/libfennel_cache.so /home/schoi/open/fennel/libfennel/.libs/libfennel_device.so /home/schoi/open/fennel/libfennel/.libs/libfennel_common.so /home/schoi/open/fennel/disruptivetech/libfennel_dt/.libs/libfennel_dt_calc.so /home/schoi/open/fennel/disruptivetech/libfennel_dt/.libs/libfennel_dt_xo.so -lstlport_gcc -lpthread -lstdc++ -lgcc_s -lrt -Wl,--rpath -Wl,/usr/local/lib<br/> creating ExternalSortExecStreamTest<br/> if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/schoi/open/fennel/../thirdparty/stlport/stlport -I/home/schoi/open/fennel/../thirdparty/boost -I../.. -I../../.. -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -MT FlatFileExecStreamTest.o -MD -MP -MF ".deps/FlatFileExecStreamTest.Tpo" -c -o FlatFileExecStreamTest.o FlatFileExecStreamTest.cpp; \<br/> then mv -f ".deps/FlatFileExecStreamTest.Tpo" ".deps/FlatFileExecStreamTest.Po"; else rm -f ".deps/FlatFileExecStreamTest.Tpo"; exit 1; fi<br/> /bin/sh ../../libtool --mode=link g++ -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -L/home/schoi/open/fennel/../thirdparty/boost/lib -L/home/schoi/open/fennel/../thirdparty/stlport/lib -Wl,-lboost_thread-gcc-mt-p-1_33 -Wl,-lboost_regex-gcc-mt-p-1_33 -Wl,-lboost_date_time-gcc-mt-p-1_33 -Wl,-lboost_filesystem-gcc-mt-p-1_33 -Wl,-lstlport_gcc -Wl,-E -lpthread -lstdc++ -lgcc_s -lrt -release 0.5.0 -o FlatFileExecStreamTest FlatFileExecStreamTest.o -L../../test -L../../libfennel -L../../lucidera/libfennel_lu -L../../disruptivetech/libfennel_dt -lfenneltestdyn -lfennel_lu_bitmap -lfennel_lu_colstore -lfennel_lu_flatfile -lfennel_lu_sorter -lfennel_ftrs -lfennel_db -lfennel_btree -lfennel_exec -lfennel_tuple -lfennel_txn -lfennel_segment -lfennel_cache -lfennel_device -lfennel_common -lfennel_dt_calc -lfennel_dt_xo -lstlport_gcc -lpthread -lstdc++ -lgcc_s -lrt -release 0.5.0<br/> libtool: link: warning:
-release' is ignored for programsg++ -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -Wl,-lboost_thread-gcc-mt-p-1_33 -Wl,-lboost_regex-gcc-mt-p-1_33 -Wl,-lboost_date_time-gcc-mt-p-1_33 -Wl,-lboost_filesystem-gcc-mt-p-1_33 -Wl,-lstlport_gcc -Wl,-E -o .libs/FlatFileExecStreamTest FlatFileExecStreamTest.o -L/home/schoi/open/fennel/../thirdparty/boost/lib -L/home/schoi/open/fennel/../thirdparty/stlport/lib -L/home/schoi/open/fennel/test -L/home/schoi/open/fennel/libfennel -L/home/schoi/open/fennel/lucidera/libfennel_lu -L/home/schoi/open/fennel/disruptivetech/libfennel_dt /home/schoi/open/fennel/test/.libs/libfenneltestdyn.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_bitmap.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_colstore.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_flatfile.so /home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_sorter.so /home/schoi/open/fennel/libfennel/.libs/libfennel_ftrs.so /home/schoi/open/fennel/libfennel/.libs/libfennel_db.so /home/schoi/open/fennel/libfennel/.libs/libfennel_btree.so /home/schoi/open/fennel/libfennel/.libs/libfennel_exec.so /home/schoi/open/fennel/libfennel/.libs/libfennel_tuple.so /home/schoi/open/fennel/libfennel/.libs/libfennel_txn.so /home/schoi/open/fennel/libfennel/.libs/libfennel_segment.so /home/schoi/open/fennel/libfennel/.libs/libfennel_cache.so /home/schoi/open/fennel/libfennel/.libs/libfennel_device.so /home/schoi/open/fennel/libfennel/.libs/libfennel_common.so /home/schoi/open/fennel/disruptivetech/libfennel_dt/.libs/libfennel_dt_calc.so /home/schoi/open/fennel/disruptivetech/libfennel_dt/.libs/libfennel_dt_xo.so -lstlport_gcc -lpthread -lstdc++ -lgcc_s -lrt -Wl,--rpath -Wl,/usr/local/lib
creating FlatFileExecStreamTest
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/home/schoi/open/fennel/../thirdparty/stlport/stlport -I/home/schoi/open/fennel/../thirdparty/boost -I../.. -I../../.. -pipe -ftemplate-depth-64 -Wall -Wno-unused-parameter -Wno-sign-compare -Werror -D_REENTRANT -D_STLP_USE_DYNAMIC_LIB=1 -D_STLP_NO_ANACHRONISMS=1 -DBOOST_NO_HASH=1 -DLITTLEENDIAN -O3 -Wno-unused-variable -DNDEBUG -MT LcsClusterAppendExecStreamTest.o -MD -MP -MF ".deps/LcsClusterAppendExecStreamTest.Tpo" -c -o LcsClusterAppendExecStreamTest.o LcsClusterAppendExecStreamTest.cpp;
then mv -f ".deps/LcsClusterAppendExecStreamTest.Tpo" ".deps/LcsClusterAppendExecStreamTest.Po"; else rm -f ".deps/LcsClusterAppendExecStreamTest.Tpo"; exit 1; fi
LcsClusterAppendExecStreamTest.cpp: In member function
void<br/> LcsClusterAppendExecStreamTest::testScanSingleCol(unsigned int,<br/> boost::shared_ptr<fennel::MockProducerExecStreamGenerator>,<br/> boost::shared_ptr<fennel::MockProducerExecStreamGenerator>)':<br/> LcsClusterAppendExecStreamTest.cpp:352: warning:
uint8_tdummyBuffer' might beused uninitialized in this function
make[3]: ** [LcsClusterAppendExecStreamTest.o] Error 1
make[3]: Leaving directory
/home/schoi/open/fennel/lucidera/test'<br/> make[2]: *** [all-recursive] Error 1<br/> make[2]: Leaving directory
/home/schoi/open/fennel/lucidera'make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/home/schoi/open/fennel'
make: * [all] Error 2
schoi@chikai:~/open/farrago$