Bug#466848: webkit - FTBFS: Undefined behaviour
Mike Hommey
mh at glandium.org
Thu Feb 21 12:55:26 UTC 2008
On Thu, Feb 21, 2008 at 01:20:11PM +0100, Bastian Blank <waldi at debian.org> wrote:
> Package: webkit
> Version: 0~svn27674-3
> Severity: serious
>
> There was an error while trying to autobuild your package:
>
> > Automatic build of webkit_0~svn27674-3 on lxdebian.bfinv.de by sbuild/s390 98
> [...]
> > g++ -c -g -Wall -O1 -D_REENTRANT -I/usr/include -g -Wall -W -DQT_SHARED -DBUILDING_GTK__ -I/usr/share/qt4/mkspecs/linux-g++ -I../../../JavaScriptCore/kjs -I../../../JavaScriptCore -I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings -I../../../JavaScriptCore/bindings/c -I../../../JavaScriptCore/wtf -Itmp -I../../../JavaScriptCore -I../../../JavaScriptCore/kjs -I../../../JavaScriptCore/bindings -I../../../JavaScriptCore/bindings/c -I../../../JavaScriptCore/wtf -I../../../JavaScriptCore/pcre -Itmp -I../../../JavaScriptCore/kjs -I. -o tmp/debugger.o ../../../JavaScriptCore/kjs/debugger.cpp
> > ../../../JavaScriptCore/wtf/HashTable.h: In member function 'void WTF::HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits>::rehash(int) [with Key = int, Value = std::pair<int, KJS::ProtectedPtr<KJS::JSValue> >, Extractor = WTF::PairFirstExtractor<std::pair<int, KJS::ProtectedPtr<KJS::JSValue> > >, HashFunctions = WTF::IntHash<int>, Traits = WTF::PairHashTraits<WTF::HashTraits<int>, WTF::HashTraits<KJS::ProtectedPtr<KJS::JSValue> > >, KeyTraits = WTF::HashTraits<int>]':
> > ../../../JavaScriptCore/wtf/HashTable.h:856: error: insn does not satisfy its constraints:
> > (insn 796 797 58 7 ../../../JavaScriptCore/wtf/HashTable.h:712 (set (reg:SI 2 %r2)
> > (const_int -1146241297 [0xffffffffbbadbeef])) 56 {*movsi_esa} (nil)
> > (nil))
> > ../../../JavaScriptCore/wtf/HashTable.h:856: internal compiler error: in reload_cse_simplify_operands, at postreload.c:392
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> > For Debian GNU/Linux specific bug reporting instructions,
> > see <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.
> > make[2]: *** [tmp/debugger.o] Error 1
> > make[2]: Leaving directory `/build/buildd/webkit-0~svn27674/build-gtk/JavaScriptCore/kjs'
> > make[1]: *** [sub-JavaScriptCore-kjs-testkjs-pro-make_default-ordered] Error 2
> > make[1]: Leaving directory `/build/buildd/webkit-0~svn27674/build-gtk'
> > make: *** [build-gtk-stamp] Error 2
> > dpkg-buildpackage: failure: debian/rules build gave error exit status 2
> > ******************************************************************************
> > Build finished at 20080221-1231
> > FAILED [dpkg-buildpackage died]
>
> There are several parts in HashTable.h which uses 0xbbadbeef as a bad
> value. 0xffffffffbbadbeef is the sign extended version of it. This is no
> valid pointer and any usage produces undefined behaviour.
Neat, it's failing to build something that is not even shipped. And there
happens to be a -DNDEBUG missing in the gcc call, which means a Makefile
bug.
Mike
More information about the Pkg-webkit-maintainers
mailing list