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

Bug#584725: Konsole on Sparc keeps crashing with "Bus Errors"



I'm afraid I've known about this one for a while, but was under pressure to get something working for somebody when I discovered it on Squeeze so fell back to Lenny. The following relates to a recently-installed Wheezy+KDE system.

You can try getting an useful backtrace by installing konsole-dbg and kdelibs5-dbg (which should install also the -dbg packages for qt4 and libc), and then following these:

I'm rebooting at this point to make sure that the latest libraries etc. are being used.

a) close any konsole instance
b) in a terminal, run `gdb --args konsole --nofork`

I'm running this in a straight xterm with output redirected to files, since otherwise gdb output crashes Konsole :-)

c) at the gdb prompt, «(gdb)», execute "run", and then use konsole until
   it crashes
d) at the gdb prompt, execute "thread apply all bt" and attach its output

Two files attached (gdb stdout and stderr).

Thanks for your help, Pino.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "sparc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/konsole...Reading symbols from /usr/lib/debug/usr/bin/konsole...done.
done.
(gdb) run
Starting program: /usr/bin/konsole --nofork
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc-linux-gnu/libthread_db.so.1".
[New Thread 0xf1f9bb70 (LWP 7178)]

Program received signal SIGBUS, Bus error.
0xf7d5e8bc in Konsole::CompactHistoryLine::CompactHistoryLine (
    this=0xf170c062, line=..., bList=...) at ../../src/History.cpp:586
(gdb) thread apply all bt

Thread 2 (Thread 0xf1f9bb70 (LWP 7178)):
#0  0xf7eeaef8 in select () from /lib/sparc-linux-gnu/libc.so.6
#1  0xf745ac88 in QProcessManager::run (this=0xf75dfcc0)
    at io/qprocess_unix.cpp:245
#2  0xf735f41c in QThreadPrivate::start (arg=0xf75dfcc0)
    at thread/qthread_unix.cpp:307
#3  0xf5d4271c in start_thread () from /lib/sparc-linux-gnu/libpthread.so.0
#4  0xf7ef2abc in ?? () from /lib/sparc-linux-gnu/libc.so.6
#5  0xf7ef2abc in ?? () from /lib/sparc-linux-gnu/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0xf7ce2930 (LWP 7163)):
#0  0xf7d5e8bc in Konsole::CompactHistoryLine::CompactHistoryLine (
    this=0xf170c062, line=..., bList=...) at ../../src/History.cpp:586
#1  0xf7d5ed68 in Konsole::CompactHistoryScroll::addCellsVector (
    this=0x199db0, cells=...) at ../../src/History.cpp:697
#2  0xf7d87bd4 in addHistLine (this=0x18fb88) at ../../src/Screen.cpp:1323
#3  Konsole::Screen::addHistLine (this=0x18fb88) at ../../src/Screen.cpp:1314
#4  0xf7d88870 in Konsole::Screen::scrollUp (this=0x18fb88, n=1)
    at ../../src/Screen.cpp:767
#5  0xf7d57694 in Konsole::Emulation::receiveData (this=0x18f470, 
    text=0x3a7f60 "total 32\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 10:09 \033[0m\033[01;34mDesktop\033[0m\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 17:54 \033[01;34mDocuments\033[0m\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 09:08 \033"..., length=587) at ../../src/Emulation.cpp:250
#6  0xf7d8fe78 in Konsole::Session::onReceiveBlock (this=0x18ef98, 
    buf=0x3a7f60 "total 32\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 10:09 \033[0m\033[01;34mDesktop\033[0m\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 17:54 \033[01;34mDocuments\033[0m\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 09:08 \033"..., len=587) at ../../src/Session.cpp:1297
#7  0xf7d93868 in qt_static_metacall (_a=0xffffc5cc, _id=<optimized out>, 
    _o=0x18ef98, _c=<optimized out>) at ./Session.moc:216
#8  Konsole::Session::qt_static_metacall (_o=0x18ef98, 
    _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xffffc5cc)
    at ./Session.moc:154
#9  0xf749bc30 in QMetaObject::activate (sender=0x190360, m=<optimized out>, 
    local_signal_index=<optimized out>, argv=0xffffc5cc)
    at kernel/qobject.cpp:3547
#10 0xf7d845c8 in Konsole::Pty::receivedData (this=0x190360, 
    _t1=0x3a7f60 "total 32\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 10:09 \033[0m\033[01;34mDesktop\033[0m\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 17:54 \033[01;34mDocuments\033[0m\r\ndrwxr-xr-x 2 markMLl markMLl 4096 Oct 23 09:08 \033"..., _t2=587) at ./Pty.moc:111
#11 0xf7d84614 in Konsole::Pty::dataReceived (this=0x190360)
    at ../../src/Pty.cpp:304
#12 0xf749bc30 in QMetaObject::activate (sender=0x181878, m=<optimized out>, 
    local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#13 0xf67508bc in KPtyDevicePrivate::_k_canRead (this=0x190968)
    at ../../kpty/kptydevice.cpp:335
#14 0xf6750e3c in qt_static_metacall (_a=0xffffc8e0, _o=0x181878, 
    _c=<optimized out>, _id=<optimized out>) at ./kptydevice.moc:55
#15 KPtyDevice::qt_static_metacall (_o=0x181878, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xffffc8e0)
    at ./kptydevice.moc:48
#16 0xf749bc30 in QMetaObject::activate (sender=0x193a40, m=<optimized out>, 
    local_signal_index=<optimized out>, argv=0xffffc8e0)
    at kernel/qobject.cpp:3547
#17 0xf74f545c in QSocketNotifier::activated (this=0x193a40, _t1=14)
    at .moc/release-shared/moc_qsocketnotifier.cpp:103
#18 0xf74a572c in QSocketNotifier::event (this=0x193a40, e=0xffffcec4)
    at kernel/qsocketnotifier.cpp:317
#19 0xf69beef4 in notify_helper (e=0xffffcec4, receiver=0x193a40, this=0x4c170)
    at kernel/qapplication.cpp:4556
#20 QApplicationPrivate::notify_helper (this=0x4c170, receiver=0x193a40, 
    e=0xffffcec4) at kernel/qapplication.cpp:4528
#21 0xf69c4e3c in QApplication::notify (this=0xffffd290, receiver=0x193a40, 
    e=0xffffcec4) at kernel/qapplication.cpp:4417
#22 0xf7ac9730 in KApplication::notify (this=0xffffd290, receiver=0x193a40, 
    event=0xffffcec4) at ../../kdeui/kernel/kapplication.cpp:311
#23 0xf7481488 in QCoreApplication::notifyInternal (this=0xffffd290, 
    receiver=0x193a40, event=0xffffcec4) at kernel/qcoreapplication.cpp:915
#24 0xf74baee0 in sendEvent (event=0xffffcec4, receiver=<optimized out>)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 socketNotifierSourceDispatch (source=0x4e580)
    at kernel/qeventdispatcher_glib.cpp:110
#26 0xf5c252e0 in g_main_context_dispatch ()
   from /lib/sparc-linux-gnu/libglib-2.0.so.0
#27 0xf5c256c0 in ?? () from /lib/sparc-linux-gnu/libglib-2.0.so.0
#28 0xf5c256c0 in ?? () from /lib/sparc-linux-gnu/libglib-2.0.so.0
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) q
A debugging session is active.

	Inferior 1 [process 7163] will be killed.

Quit anyway? (y or n) 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
586	../../src/History.cpp: No such file or directory.

Reply to: