Bug#466848: webkit - FTBFS: Undefined behaviour

2008-02-21 Thread Bastian Blank
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::HashTableKey, Value, Extractor, HashFunctions, Traits, 
 KeyTraits::rehash(int) [with Key = int, Value = std::pairint, 
 KJS::ProtectedPtrKJS::JSValue , Extractor = 
 WTF::PairFirstExtractorstd::pairint, KJS::ProtectedPtrKJS::JSValue  , 
 HashFunctions = WTF::IntHashint, Traits = 
 WTF::PairHashTraitsWTF::HashTraitsint, 
 WTF::HashTraitsKJS::ProtectedPtrKJS::JSValue  , KeyTraits = 
 WTF::HashTraitsint]':
 ../../../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 [0xbbadbeef])) 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. 0xbbadbeef is the sign extended version of it. This is no
valid pointer and any usage produces undefined behaviour.

Bastian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#466848: webkit - FTBFS: Undefined behaviour

2008-02-21 Thread Mike Hommey
On Thu, Feb 21, 2008 at 01:20:11PM +0100, Bastian Blank [EMAIL PROTECTED] 
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::HashTableKey, Value, Extractor, HashFunctions, Traits, 
  KeyTraits::rehash(int) [with Key = int, Value = std::pairint, 
  KJS::ProtectedPtrKJS::JSValue , Extractor = 
  WTF::PairFirstExtractorstd::pairint, KJS::ProtectedPtrKJS::JSValue  , 
  HashFunctions = WTF::IntHashint, Traits = 
  WTF::PairHashTraitsWTF::HashTraitsint, 
  WTF::HashTraitsKJS::ProtectedPtrKJS::JSValue  , KeyTraits = 
  WTF::HashTraitsint]':
  ../../../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 [0xbbadbeef])) 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. 0xbbadbeef 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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#466848: webkit - FTBFS: Undefined behaviour

2008-02-21 Thread Bastian Blank
On Thu, Feb 21, 2008 at 01:55:26PM +0100, Mike Hommey wrote:
 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.

The same pointer is used trap pointer. This is no good idea as this is a
valid userspace pointer on most arches. Use abort(3).

Bastian

-- 
It is undignified for a woman to play servant to a man who is not hers.
-- Spock, Amok Time, stardate 3372.7



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#466848: webkit - FTBFS: Undefined behaviour

2008-02-21 Thread Mike Hommey
On Thu, Feb 21, 2008 at 02:20:32PM +0100, Bastian Blank [EMAIL PROTECTED] 
wrote:
 On Thu, Feb 21, 2008 at 01:55:26PM +0100, Mike Hommey wrote:
  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.
 
 The same pointer is used trap pointer. This is no good idea as this is a
 valid userspace pointer on most arches. Use abort(3).

These pointers are used in debug builds, which are aimed at webkit developers.
The thing is that the rules for testkjs don't disable debug code, which this
pointer is. Adding a include(../../WebKit.pri) in
JavaScriptCore/kjs/testkjs.pro should solve the problem. (BTW, if you could
give that a try, that would be helpful, except if it's going to take a day)

Cheers,

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#466848: webkit - FTBFS: Undefined behaviour

2008-02-21 Thread Martin Michlmayr
* Bastian Blank [EMAIL PROTECTED] [2008-02-21 13:20]:
  (nil))
  ../../../JavaScriptCore/wtf/HashTable.h:856: internal compiler error: in 
  reload_cse_simplify_operands, at postreload.c:392
  Please submit a full bug report,

This is also a compiler bug, though.  Can you please file a bug on
gcc-4.2 with the preprocessed source.
-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#466848: webkit - FTBFS: Undefined behaviour

2008-02-21 Thread Mike Hommey
On Thu, Feb 21, 2008 at 03:31:56PM +0100, Martin Michlmayr wrote:
 * Bastian Blank [EMAIL PROTECTED] [2008-02-21 13:20]:
   (nil))
   ../../../JavaScriptCore/wtf/HashTable.h:856: internal compiler error: in 
   reload_cse_simplify_operands, at postreload.c:392
   Please submit a full bug report,
 
 This is also a compiler bug, though.  Can you please file a bug on
 gcc-4.2 with the preprocessed source.

It seems to be another instance of #466613, actually.

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]