[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#490999: gcc-4.3 / qt3 misalignment



Hello Sune,

On Sun, Nov 23, 2008 at 03:25:32PM +0100, Sune Vuorela wrote:
> This gives bus error on sparc
...
> except in some cases where it segfaults.

Thanks for the test case! This results in the following bt:

#0  0xf7f38168 in _dl_fixup () from /lib/ld-linux.so.2
#1  0xf7f3ea34 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#2  0x00010ba8 in main (argc=0x1, argv=0xffb036e4) at a.c:7

The bt looks similar for SIGBUG and SIGSEGV.


> If I recompile Qt3 in debug mode (with -O0), it works fine.
>  
> Somehow I feel like blaming the toolchain or gcc. So debian-sparc, it is your 
> turn!
> 
> When compiling qt3 with different options, I get:
> with gcc 4.1 and -O2, I don't get a bus error, but wrong results from 
> t.hour();
> with gcc 4.3 and -O2 I get bus error 
> with gcc 4.3 and -O1 it seems to work
> with gcc 4.3 and -O0 it seems to work

The test case works fine with qt4. Glibc is the same. Could it be
possible that qt3 overwrites memory somewhere? Wrong results for
t.hour() would also speak for that.

With kind regards,
-- 
Baurzhan Ismagulov
http://www.kz-easy.com/


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: sparc (sparc64)
            
Kernel: Linux 2.6.24-1-sparc64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
            
ii  kdebase-data            4:3.5.9.dfsg.1-2 shared data files for the KDE base
ii  kdelibs4c2a             4:3.5.9.dfsg.1-6 core libraries and binaries for al
ii  libc6                   2.7-16           GNU C Library: Shared libraries
ii  libgcc1                 1:4.3.2-1        GCC support library
ii  libkonq4                4:3.5.9.dfsg.1-2 core libraries for Konqueror
ii  libqt3-mt               3:3.3.8b-5       Qt GUI Library (Threaded runtime v
ii  libstdc++6              4.3.2-1          The GNU Standard C++ Library v3
ii  libx11-6                2:1.1.4-2        X11 client-side library
ii  libxau6                 1:1.0.3-3        X11 authorisation library
ii  libxcomposite1          1:0.4.0-3        X11 Composite extension library
ii  libxfixes3              1:4.0.3-2        X11 miscellaneous 'fixes' extensio
ii  libxrender1             1:0.9.4-2        X Rendering Extension client libra

ii  libqt4-assistant       4.4.3-1           Qt 4 assistant module
ii  libqt4-dbus            4.4.3-1           Qt 4 D-Bus module
ii  libqt4-designer        4.4.3-1           Qt 4 designer module
ii  libqt4-help            4.4.3-1           Qt 4 help module
ii  libqt4-network         4.4.3-1           Qt 4 network module
ii  libqt4-qt3support      4.4.3-1           Qt 3 compatibility library for Qt 
ii  libqt4-script          4.4.3-1           Qt 4 script module
ii  libqt4-sql             4.4.3-1           Qt 4 SQL module
ii  libqt4-svg             4.4.3-1           Qt 4 SVG module
ii  libqt4-test            4.4.3-1           Qt 4 test module
ii  libqt4-webkit          4.4.3-1           Qt 4 WebKit module
ii  libqt4-xml             4.4.3-1           Qt 4 XML module
ii  libqt4-xmlpatterns     4.4.3-1           Qt 4 XML patterns module
ii  libqtcore4             4.4.3-1           Qt 4 core module
ii  libqtgui4              4.4.3-1           Qt 4 GUI module
ii  qt4-qmake              4.4.3-1           Qt 4 qmake Makefile generator tool
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime
ii  libqt4-opengl-dev             4.4.3-1    Qt 4 OpenGL library development fi


Reply to: