Bug 160057 - konqueror crashes on fonts display
Summary: konqueror crashes on fonts display
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 157738 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-29 11:57 UTC by Ralph Janke
Modified: 2008-10-01 11:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Janke 2008-03-29 11:57:37 UTC
Version:           4.0.2 (using KDE 4.0.2)
Installed from:    Ubuntu Packages
OS:                Linux

Forwarded report from Kubuntu (https://bugs.launchpad.net/ubuntu/+source/kdebase-kde4/+bug/198794)

I was trying to use konqueror to look up the fonts database , so I did
fonts:// as the URL
it gave me an error saying either personal or System needs to be defined.
So I did fonts://System/
still it didn't come up.
Then I did fonts://System/System & it promptly crashed.
I get the Konqueror crash dialog box which says :-
The application Konqueror crashed the signal 6 (SIGABRT)
This is the backtrace in the next tab in the dialog box.
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
 [Thread debugging using libthread_db enabled]
 [New Thread 0xb63f0720 (LWP 15290)]
 [New Thread 0xb2ee4b90 (LWP 15309)]
 0xb7ef0410 in __kernel_vsyscall ()
 [Current thread is 0 (LWP 15290)]
Thread 2 (Thread 0xb2ee4b90 (LWP 15309)):
 #0 0xb7ef0410 in __kernel_vsyscall ()
 #1 0xb7d88311 in select () from /lib/tls/i686/cmov/libc.so.6
 #2 0xb7bd5b97 in ?? () from /usr/lib/libQtCore.so.4
 #3 0x00000008 in ?? ()
 #4 0xb2ee4268 in ?? ()
 #5 0x00000000 in ?? ()
Thread 1 (Thread 0xb63f0720 (LWP 15290)):
 #0 0xb7ef0410 in __kernel_vsyscall ()
 #1 0xb7d4eba6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6
 #2 0xb7d4e9b7 in sleep () from /lib/tls/i686/cmov/libc.so.6
 #3 0xb7844000 in ?? () from /usr/lib/kde4/lib/libkdeui.so.5
 #4 0x00000001 in ?? ()
 #5 0x00000000 in ?? ()
 #0 0xb7ef0410 in __kernel_vsyscall ()
Comment 1 Oliver Putz 2008-03-29 14:15:11 UTC
I can confirm this crash with kdelibs r790019. It seems to be a KIO problem and also occurs in dolphin.

The backtrace (for the dolphin crash) is:

Application: Dolphin (dolphin), signal SIGABRT
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb621c9d0 (LWP 5750)]
[New Thread 0xb4cf5b90 (LWP 5759)]
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb646d1f1 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0xb646e9b8 in *__GI_abort () at abort.c:88
#9  0xb7d37a45 in qt_message_output (msgType=QtFatalMsg, 
    buf=0xbf96d4ec "ASSERT: \"result.second\" in file /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/kdirmodel.cpp, line 308")
    at global/qglobal.cpp:2047
#10 0xb7d37b0a in qFatal (msg=0xb7e8ffec "ASSERT: \"%s\" in file %s, line %d")
    at global/qglobal.cpp:2249
#11 0xb7d37fd5 in qt_assert (assertion=0xb77a0908 "result.second", 
    file=0xb77a0588 "/var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/kdirmodel.cpp", line=308) at global/qglobal.cpp:1821
#12 0xb7683b79 in KDirModelPrivate::_k_slotNewItems (this=0x82c4000, 
    items=@0x83efc38)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/kdirmodel.cpp:308
#13 0xb76842f0 in KDirModel::qt_metacall (this=0x82c4908, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf96f73c)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/kdirmodel.moc:76
#14 0xb7e4d2c8 in QMetaObject::activate (sender=0x82c4828, 
    from_signal_index=<value optimized out>, to_signal_index=13, 
    argv=<value optimized out>) at kernel/qobject.cpp:2995
#15 0xb7e4da44 in QMetaObject::activate (sender=0x82c4828, m=0x809a020, 
    local_signal_index=9, argv=0xbf96f73c) at kernel/qobject.cpp:3065
#16 0xb766b824 in KDirLister::newItems (this=0x82c4828, _t1=@0x83efc38)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/kdirlister.moc:253
#17 0xb766be4a in KDirLister::Private::emitItems (this=0x82c6b20)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/kdirlister.cpp:2200
#18 0xb7670aef in KDirListerCache::slotEntries (this=0x81962c8, 
    job=0x82d7490, entries=@0xbf96fc14)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/kdirlister.cpp:975
#19 0xb7676534 in KDirListerCache::qt_metacall (this=0x81962c8, 
    _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbf96f988)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/kdirlister_p.moc:97
#20 0xb7e4d2c8 in QMetaObject::activate (sender=0x82d7490, 
    from_signal_index=<value optimized out>, to_signal_index=40, 
    argv=<value optimized out>) at kernel/qobject.cpp:2995
#21 0xb7e4da44 in QMetaObject::activate (sender=0x82d7490, m=0xb77bf6a0, 
    local_signal_index=0, argv=0xbf96f988) at kernel/qobject.cpp:3065
#22 0xb76496f7 in KIO::ListJob::entries (this=0x82d7490, _t1=0x82d7490, 
    _t2=@0xbf96fc14)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/jobclasses.moc:763
#23 0xb7652c86 in KIO::ListJobPrivate::slotListEntries (this=0x8384a80, 
    list=@0xbf96fc14)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/job.cpp:2282
#24 0xb7652f8b in KIO::ListJob::qt_metacall (this=0x82d7490, 
    _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbf96fb1c)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/jobclasses.moc:750
#25 0xb7e4d2c8 in QMetaObject::activate (sender=0x82dbf10, 
    from_signal_index=<value optimized out>, to_signal_index=10, 
    argv=<value optimized out>) at kernel/qobject.cpp:2995
#26 0xb7e4da44 in QMetaObject::activate (sender=0x82dbf10, m=0xb77c2024, 
    local_signal_index=6, argv=0xbf96fb1c) at kernel/qobject.cpp:3065
#27 0xb76f7704 in KIO::SlaveInterface::listEntries (this=0x82dbf10, 
    _t1=@0xbf96fc14)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/slaveinterface.moc:175
#28 0xb76f941f in KIO::SlaveInterface::dispatch (this=0x82dbf10, _cmd=106, 
    rawdata=@0xbf96fc74)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/slaveinterface.cpp:195
#29 0xb76f9e46 in KIO::SlaveInterface::dispatch (this=0x82dbf10)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/slaveinterface.cpp:90
#30 0xb76ec7a7 in KIO::Slave::gotInput (this=0x82dbf10)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/slave.cpp:319
#31 0xb76edc3d in KIO::Slave::qt_metacall (this=0x82dbf10, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf96fd78)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/slave.moc:75
#32 0xb7e4d2c8 in QMetaObject::activate (sender=0x83326b0, 
    from_signal_index=<value optimized out>, to_signal_index=4, 
    argv=<value optimized out>) at kernel/qobject.cpp:2995
#33 0xb7e4da44 in QMetaObject::activate (sender=0x83326b0, m=0xb77beea0, 
    local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3065
#34 0xb7626673 in KIO::Connection::readyRead (this=0x83326b0)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/connection.moc:84
#35 0xb76274f6 in KIO::ConnectionPrivate::dequeue (this=0x8180170)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kio/kio/connection.cpp:82
#36 0xb7628295 in KIO::Connection::qt_metacall (this=0x83326b0, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x83dbca0)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs_build/kio/connection.moc:72
#37 0xb7e46b79 in QMetaCallEvent::placeMetaCall (this=0x8409480, 
    object=0x83326b0) at kernel/qobject.cpp:535
#38 0xb7e48ede in QObject::event (this=0x83326b0, e=0x8409480)
    at kernel/qobject.cpp:1131
#39 0xb68ff71f in QApplicationPrivate::notify_helper (this=0x80ac1f0, 
    receiver=0x83326b0, e=0x8409480) at kernel/qapplication.cpp:3735
#40 0xb69012fa in QApplication::notify (this=0xbf970544, receiver=0x83326b0, 
    e=0x8409480) at kernel/qapplication.cpp:3329
#41 0xb79726c3 in KApplication::notify (this=0xbf970544, receiver=0x83326b0, 
    event=0x8409480)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:311
#42 0xb7e36cf7 in QCoreApplication::notifyInternal (this=0xbf970544, 
    receiver=0x83326b0, event=0x8409480) at kernel/qcoreapplication.cpp:586
#43 0xb7e38059 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 
    event_type=0, data=0x809cb68)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#44 0xb7e383bd in QCoreApplication::sendPostedEvents (receiver=0x0, 
    event_type=0) at kernel/qcoreapplication.cpp:1084
#45 0xb6997b1e in QEventDispatcherX11::processEvents (this=0x80a5e50, 
    flags=@0xbf970464)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#46 0xb7e35e61 in QEventLoop::processEvents (this=0xbf9704d0, 
    flags=@0xbf970498) at kernel/qeventloop.cpp:146
#47 0xb7e35f8f in QEventLoop::exec (this=0xbf9704d0, flags=@0xbf9704d8)
    at kernel/qeventloop.cpp:197
#48 0xb7e38476 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:838
#49 0xb68fee37 in QApplication::exec () at kernel/qapplication.cpp:3267
#50 0x0807f621 in main (argc=3, argv=0xbf970704)
    at /var/tmp/portage/kde-base/kdebase-9999.4/work/kdebase-9999.4/apps/dolphin/src/main.cpp:95
#51 0xb6459fdc in __libc_start_main (main=0x807ebf0 <main>, argc=3, 
    ubp_av=0xbf970704, init=0x808de40 <__libc_csu_init>, 
    fini=0x808de30 <__libc_csu_fini>, rtld_fini=0xb7f36100 <_dl_fini>, 
    stack_end=0xbf9706fc) at libc-start.c:229
#52 0x0805fcc1 in _start ()
#0  0xffffe410 in __kernel_vsyscall ()
Comment 2 Oliver Putz 2008-09-15 22:28:52 UTC
*** Bug 157738 has been marked as a duplicate of this bug. ***
Comment 3 Oliver Putz 2008-09-15 22:30:34 UTC
Still valid in KDE-4.1.1 (just open fonts://System/System)
Comment 4 Oliver Putz 2008-09-16 13:37:18 UTC
*** Bug 160070 has been marked as a duplicate of this bug. ***
Comment 5 Frank Reininghaus 2008-09-16 19:09:44 UTC
*** Bug 170695 has been marked as a duplicate of this bug. ***
Comment 6 Frank Reininghaus 2008-09-16 19:33:11 UTC
*** Bug 171117 has been marked as a duplicate of this bug. ***
Comment 7 David Faure 2008-09-23 23:47:54 UTC
Even though the backtraces are the same (kdirmodel is the one showing the error), there should really be one bug report per kioslave, they need to be fixed separately. Too much merging isn't a good idea on this issue.
Comment 8 Frank Reininghaus 2008-09-29 23:54:04 UTC
David, the error message you added before the assert is (hope it helps):

dolphin(27112)/kio (KDirModel): First item has URL KUrl("fonts:/System/ae_Khalid.ttf") -> parent directory would be KUrl("fonts:/System") but that directory isn't in KDirModel! Root directory: KUrl("fonts://system/System")

I'm removing the people who were added to CC because we marked wrong duplicates.

Comment 9 David Faure 2008-10-01 11:55:37 UTC
The problem was that fonts://foo/bar means "hostname foo, path /bar", and
obviously kio_fonts doesn't care for a hostname (so it would list files without
the hostname, and KDirModel would get confused). I fixed this for all "local"
kioslaves in KDirLister by stripping off the hostname.
trunk r866552, 4.1-branch r866553.

I think I went through all the "duplicates" and fixed them too, but ping me if
I missed one.