Bug 203695

Summary: Dolphin/Konq crashes opening smb network folder configured with user is in a domain (KDirListerCache::slotResult)
Product: [Unmaintained] kio Reporter: Giulio Rossato <giulio.rossato>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Giulio Rossato 2009-08-13 12:42:01 UTC
Application that crashed: dolphin
Version of the application: 1.3
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.29-2-686 i686
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
I have set up a Microsoft Windows network drive on my pc.
In the url i inserted the username with its domain.
When the directory is accesed dolphin asks me username and password for authentication. The username field is presented with the username and domain already inserted, so i insert only the password. After the authentication the remote directory is shown for a while and then the program crashes.
My url has this form:
smb://icnt%2fyyi2047@ic01.ic.intra.infocamere.it/cdr-902

If the url has the form
smb://ic01.ic.intra.infocamere.it/cdr-902
then the program ask me username and password and the remote directory is opened without crash.
Konqueror has the same problem.

 -- Backtrace:
Application: Dolphin (dolphin), signal: Segmentation fault
[KCrash Handler]
#6  KDirListerCache::slotResult (this=0x9ba7df0, j=0x9bbd008) at /usr/include/qt4/QtCore/qatomic_i386.h:120
#7  0xb7defccc in KDirListerCache::qt_metacall (this=0x9ba7df0, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfda996c) at ./kdirlister_p.moc:99
#8  0xb68d9ad3 in QMetaObject::activate (sender=0x9bbd008, from_signal_index=7, to_signal_index=7, argv=0xbfda996c) at kernel/qobject.cpp:3112
#9  0xb68da722 in QMetaObject::activate (sender=0x9bbd008, m=0x80b5580, local_signal_index=3, argv=0xbfda996c) at kernel/qobject.cpp:3186
#10 0xb74c0083 in KJob::result (this=0x9bbd008, _t1=0x9bbd008) at ./kjob.moc:188
#11 0xb74c0529 in KJob::emitResult (this=0x9bbd008) at ../../kdecore/jobs/kjob.cpp:304
#12 0xb7dc09e5 in KIO::SimpleJob::slotFinished (this=0x9bbd008) at ../../kio/kio/job.cpp:477
#13 0xb7dc0fa4 in KIO::ListJob::slotFinished (this=0x9bbd008) at ../../kio/kio/job.cpp:2408
#14 0xb7dc29e3 in KIO::ListJob::qt_metacall (this=0x9bbd008, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfda9b58) at ./jobclasses.moc:764
#15 0xb68d9ad3 in QMetaObject::activate (sender=0x9d4ef00, from_signal_index=8, to_signal_index=8, argv=0x0) at kernel/qobject.cpp:3112
#16 0xb68da722 in QMetaObject::activate (sender=0x9d4ef00, m=0xb7f67b64, local_signal_index=4, argv=0x0) at kernel/qobject.cpp:3186
#17 0xb7e866d7 in KIO::SlaveInterface::finished (this=0x9d4ef00) at ./slaveinterface.moc:165
#18 0xb7e8a487 in KIO::SlaveInterface::dispatch (this=0x9d4ef00, _cmd=104, rawdata=@0xbfda9d24) at ../../kio/kio/slaveinterface.cpp:175
#19 0xb7e86bb7 in KIO::SlaveInterface::dispatch (this=0x9d4ef00) at ../../kio/kio/slaveinterface.cpp:91
#20 0xb7e78b9d in KIO::Slave::gotInput (this=0x9d4ef00) at ../../kio/kio/slave.cpp:322
#21 0xb7e7b083 in KIO::Slave::qt_metacall (this=0x9d4ef00, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfda9e28) at ./slave.moc:76
#22 0xb68d9ad3 in QMetaObject::activate (sender=0x9ebdf48, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3112
#23 0xb68da722 in QMetaObject::activate (sender=0x9ebdf48, m=0xb7f644a0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3186
#24 0xb7d85427 in KIO::Connection::readyRead (this=0x9ebdf48) at ./connection.moc:86
#25 0xb7d86d33 in KIO::ConnectionPrivate::dequeue (this=0x9f05918) at ../../kio/kio/connection.cpp:82
#26 0xb7d87116 in KIO::Connection::qt_metacall (this=0x9ebdf48, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x9f04100) at ./connection.moc:73
#27 0xb68d32db in QMetaCallEvent::placeMetaCall (this=0x9eb1860, object=0x9ebdf48) at kernel/qobject.cpp:477
#28 0xb68d4db0 in QObject::event (this=0x9ebdf48, e=0x9eb1860) at kernel/qobject.cpp:1110
#29 0xb6afc7d4 in QApplicationPrivate::notify_helper (this=0x9a18610, receiver=0x9ebdf48, e=0x9eb1860) at kernel/qapplication.cpp:4056
#30 0xb6b0493e in QApplication::notify (this=0xbfdaa5d4, receiver=0x9ebdf48, e=0x9eb1860) at kernel/qapplication.cpp:3603
#31 0xb77f300d in KApplication::notify (this=0xbfdaa5d4, receiver=0x9ebdf48, event=0x9eb1860) at ../../kdeui/kernel/kapplication.cpp:302
#32 0xb68c496b in QCoreApplication::notifyInternal (this=0xbfdaa5d4, receiver=0x9ebdf48, event=0x9eb1860) at kernel/qcoreapplication.cpp:610
#33 0xb68c55ae in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x99f0ae0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#34 0xb68c578d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#35 0xb68efbaf in postEventSourceDispatch (s=0x9a10d10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#36 0xb5ef8848 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0xb5efbdab in ?? () from /usr/lib/libglib-2.0.so.0
#38 0x09a10960 in ?? ()
#39 0x00000000 in ?? ()

Reported using DrKonqi
Comment 1 David Faure 2009-08-20 23:18:46 UTC
Hmm, I can't reproduce this bug here.
smb://dfaure@obelix/d works just fine, with 4.3 and trunk. Strange.
Comment 2 Giulio Rossato 2009-08-21 11:17:47 UTC
I try to explain better.
My url is
smb://icnt%2Fyyi2047@ic01.ic.intra.infocamere.it/cdr-902
If i write the url directly in konqueror, it ask me username and password for authentication. I insert the password (the user name field is already inserted with icnt/yyi2047). Then konqueror shows the remote folder without any problem.

But i don't want to remember the url, so i configure the remote folder with the following steps. You should follow these steps.
- open konqueror and write the url remote:/
- click on 'Add Network Folder' for opening the network folder wizard
- choose the button 'Microsoft windows network drive' and then click next
- in Server field i write inct%2fyyi2047@ic01.ic.intra.infocamere.it and in Folder field i write /cdr-902. You should insert your username@server and folder.
- if you click connect, it'll ask username and password. If the authentication is not asked, please close all programs, do logout and login, go to  remote:/ url and try to open the remote folder that you've just configured.
- konqueror crash

I also note that your url is a little different. My user is in microsoft domain 'icnt', while your user not, so the form of my url is
smb://domain%2fuser@server/dir
while the form of your url is
smb://user@server/dir
I think that the difference is not a problem, but i don't know the code and i can't exclude it.

thanks, Giulio
Comment 3 Giulio Rossato 2009-09-30 15:05:21 UTC
I upgraded the system to kde 4.3.1 and the problem has disappear.
I consider the problem resolved.
Thanks, Giulio
Comment 4 David Faure 2009-10-01 00:25:29 UTC
Excellent, thanks for the update.