kde-4.0.4 segfaults on netbsd sparc
raymond.meyer at rambler.ru
raymond.meyer at rambler.ru
Sun May 25 03:47:37 BST 2008
I can't start kde on netbsd sparc machine, because kdelibs contains sloppy
code that causes segfault. It terminates with "Bus error" which indicates
unaligned memory access. Below is the backtrace.
The problem is with kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp. On line 159 it
has
*mSize = *((quint32*)(mMemory + mSizeEntryOffset));
So looks like a pointer to char is cast to a pointer to some form of uint32_t
and then dereferenced. Can anyone suggest a proper fix?
Core was generated by `ksmserver'.
Program terminated with signal 10, Bus error.
#0 0x40a5a710 in KPCMemoryDevice (this=0xffffc0f8, start=0x42654000 "KDE
PIXMAP CACHE ", size=0x42510538, available=0)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:159
159 /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:
No such file or directory.
in /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp
(gdb) where
#0 0x40a5a710 in KPCMemoryDevice (this=0xffffc0f8, start=0x42654000 "KDE
PIXMAP CACHE ", size=0x42510538, available=0)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:159
#1 0x40a5a994 in KPixmapCache::Private::mmapFile (this=0x42510500,
filename=@0x42510510, info=0x42510530,
newsize=<value optimized out>)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:467
#2 0x40a5cd98 in KPixmapCache::Private::mmapFiles (this=0x42510500)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:393
#3 0x40a5b678 in KPixmapCache::Private::init (this=0x42510500)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:999
#4 0x40a5b77c in KPixmapCache::isValid (this=0x42553340)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kpixmapcache.cpp:1028
#5 0x40a4780c in KIconLoaderPrivate::init (this=0x4250b880,
_appname=@0xffffc3cc, _dirs=0x4250e6a0)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kiconloader.cpp:375
#6 0x40a47c3c in KIconLoader (this=0x42552cd0, componentData=@0x42509568,
parent=0x0)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kiconloader.cpp:348
#7 0x40a47d0c in operator-> (this=0x40c78748)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kiconloader.cpp:1554
#8 0x40a46074 in KIcon (this=0xffffc588, iconName=@0xffffc5dc)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/icons/kicon.cpp:40
#9 0x40a745b4 in KApplicationPrivate::parseCommandLine (this=0x42507b80)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/kernel/kapplication.cpp:870
#10 0x40a74c44 in KApplicationPrivate::init (this=0x42507b80, GUIenabled=true)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/kernel/kapplication.cpp:499
#11 0x40a75f04 in KApplication (this=0xffffc910, GUIenabled=<value optimized
out>)
at /opt/pkg.obj/wip/kdelibs4/work.ultra10/kdelibs-4.0.4/kdeui/kernel/kapplication.cpp:355
#12 0x4006d4ac in kdemain (argc=1, argv=<value optimized out>)
at /opt/pkg.obj/wip/kdebase-workspace4/work.ultra10/kdebase-workspace-4.0.4/ksmserver/main.cpp:213
#13 0x000108c0 in ___start ()
#14 0x000107f0 in _start ()
___________________________________________________
This message is from the kde mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
More information about the kde
mailing list