Bug#490999: kicker: crashes on startup

2008-11-23 Thread Ben Hutchings
This is due to a compiler bug.  The first two instructions of the
function QTime::addMSecs(int) are:

0xf7ce212c _ZNK5QTime8addMSecsEi+0:   save  %sp, -112, %sp
0xf7ce2130 _ZNK5QTime8addMSecsEi+4:   ld  [ %sp + 0x40 ], %i5

The second instruction is supposed to load the address where the
returned QTime object should be stored.  The calling convention is that
this is passed at 64 bytes above the stack pointer.  But it is using the
value of %sp *after* modification by the preceding save instruction, so
it reads random garbage.

These instructions should be generated in the opposite order, or the %sp
in the second instruction changed to %fp.  I have confirmed that the
latter change (replace opcode 0xfa03a040 with 0xfa07a040) causes the
test program to run successfully.

Ben.



signature.asc
Description: This is a digitally signed message part


Bug#490999: kicker: crashes on startup

2008-07-15 Thread Baurzhan Ismagulov
Package: kicker
Version: 4:3.5.9.dfsg.1-2+b1
Severity: important


Hello,

kicker from lenny is crashing during starting up on sparc. Two or three
weeks ago I installed lenny on i386, it worked. Crashing sometimes with
SIGBUS (usual problem since sparc doesn't allow unaligned word access)
and sometimes with SIGSEGV is suspicious, however.

Thanks in advance,
Baurzhan.

-- 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

Versions of packages kicker depends on:
ii  kdebase-data 4:3.5.9.dfsg.1-2shared data files for the KDE base
ii  kdelibs4c2a  4:3.5.9.dfsg.1-4core libraries and binaries for al
ii  libc62.7-10  GNU C Library: Shared libraries
ii  libgcc1  1:4.3.1-2   GCC support library
ii  libkonq4 4:3.5.9.dfsg.1-2+b1 core libraries for Konqueror
ii  libqt3-mt3:3.3.8b-5  Qt GUI Library (Threaded runtime v
ii  libstdc++6   4.3.1-2 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

kicker recommends no packages.

-- no debconf information
Program received signal SIGBUS, Bus error.
[Switching to Thread 0xf7ae6a60 (LWP 15572)]
0xf7fdc1a8 in ?? () from /lib/ld-linux.so.2
(gdb) bt
#0  0xf7fdc1a8 in ?? () from /lib/ld-linux.so.2
#1  0xf7fe2a74 in ?? () from /lib/ld-linux.so.2
#2  0xf5b4d1a4 in DigitalClock::updateClock (this=0x169c68)
at /build/buildd/kdebase-3.5.9.dfsg.1/./kicker/applets/clock/clock.cpp:316
#3  0xf5b553b4 in ClockApplet::reconfigure (this=0x149140)
at /build/buildd/kdebase-3.5.9.dfsg.1/./kicker/applets/clock/clock.cpp:1179
#4  0xf5b55f78 in ClockApplet (this=0x149140, [EMAIL PROTECTED],
t=KPanelApplet::Normal, actions=0x4, parent=value optimized out,
name=value optimized out)
at /build/buildd/kdebase-3.5.9.dfsg.1/./kicker/applets/clock/clock.cpp:902
#5  0xf5b56154 in init (parent=0x1474d8, [EMAIL PROTECTED])
at /build/buildd/kdebase-3.5.9.dfsg.1/./kicker/applets/clock/clock.cpp:75
#6  0xf7f3a66c in PluginManager::loadApplet (this=0x55a18, [EMAIL PROTECTED],
parent=0x1474d8)
at 
/build/buildd/kdebase-3.5.9.dfsg.1/./kicker/kicker/core/pluginmanager.cpp:158
#7  0xf7f3f0b8 in AppletContainer (this=0x1473d8, [EMAIL PROTECTED],
opMenu=0xc7cf0, immutable=0x0, parent=0xcb640)
at 
/build/buildd/kdebase-3.5.9.dfsg.1/./kicker/kicker/core/container_applet.cpp:102
#8  0xf7f41460 in PluginManager::createAppletContainer (this=0x55a18,
[EMAIL PROTECTED], isStartup=0x1, configFile=value optimized out,
opMenu=0xc7cf0, parent=0xcb640, isImmutable=0x0)
---Type return to continue, or q return to quit---
at 
/build/buildd/kdebase-3.5.9.dfsg.1/./kicker/kicker/core/pluginmanager.cpp:290
#9  0xf7f42a0c in ContainerArea::defaultContainerConfig (this=0xc8718)
at 
/build/buildd/kdebase-3.5.9.dfsg.1/./kicker/kicker/core/containerarea.cpp:258
#10 0xf7f42c68 in ContainerArea::initialize (this=0xc8718,
useDefaultConfig=0x1)
at 
/build/buildd/kdebase-3.5.9.dfsg.1/./kicker/kicker/core/containerarea.cpp:136
#11 0xf7f42e58 in PanelExtension::populateContainerArea (this=0x2c0a0)
at 
/build/buildd/kdebase-3.5.9.dfsg.1/./kicker/kicker/core/panelextension.cpp:107
#12 0xf7f381d8 in PanelExtension::qt_invoke (this=0x2c0a0, _id=0x32,
_o=0xfffaa3e8) at ./panelextension.moc:99
#13 0xf7183194 in QObject::activate_signal (this=0xe0fc0, clist=0xcc1e8,
o=0xfffaa3e8) at kernel/qobject.cpp:2359
#14 0xf74c3668 in QSignal::signal (this=0xe0fc0, t0=value optimized out)
at .moc/release-shared-mt/moc_qsignal.cpp:100
#15 0xf719df44 in QSignal::activate (this=0xe0fc0) at kernel/qsignal.cpp:215
#16 0xf71a5344 in QSingleShotTimer::event (this=0xe0f98)
at kernel/qtimer.cpp:289
#17 0xf711fea8 in QApplication::internalNotify (this=0x71340,
receiver=0xe0f98, e=0xfffaa810) at kernel/qapplication.cpp:2638
---Type return to continue, or q return to quit---
#18 0xf7120de8 in QApplication::notify (this=0x2e980, receiver=0xe0f98,
e=0xfffaa810) at kernel/qapplication.cpp:2526
#19 0xf6df81f0 in KApplication::notify (this=0x2e980, receiver=0xe0f98,
event=0xfffaa810)
at /build/buildd/kdelibs-3.5.9.dfsg.1/./kdecore/kapplication.cpp:550
#20 0xf7114494 in QEventLoop::activateTimers (this=value optimized out)
at kernel/qapplication.h:523
#21 0xf70caef4 in QEventLoop::processEvents (this=0x59e68, flags=0x0)
at kernel/qeventloop_x11.cpp:392
#22 0xf71384f4 in QEventLoop::processEvents