This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[rev 1156730] Unknown crash

Tags: None
(comma "," separated)
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS

[rev 1156730] Unknown crash

Thu Jul 29, 2010 11:55 pm
Sometimes ktorrent just crashes in background, but I don't know why, happens once or twice a day.

Code: Select all
Application: KTorrent (ktorrent), signal: Aborted
[Current thread is 1 (Thread 0x7fb4a987b760 (LWP 10771))]

Thread 5 (Thread 0x7fb495b88710 (LWP 10773)):
[KCrash Handler]
#6  0x00007fb4a4bb79e5 in raise () from /lib64/libc.so.6
#7  0x00007fb4a4bb8ee6 in abort () from /lib64/libc.so.6
#8  0x00007fb4a4bf2c53 in __libc_message () from /lib64/libc.so.6
#9  0x00007fb4a4bf8226 in malloc_printerr () from /lib64/libc.so.6
#10 0x00007fb4a93ee03c in qDeleteAll<QList<utp::UnackedPacket*>::const_iterator> (begin=..., end=...) at /usr/include/QtCore/qalgorithms.h:322
#11 0x00007fb4a93edbf1 in qDeleteAll<QList<utp::UnackedPacket*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#12 0x00007fb4a93ed04f in utp::RemoteWindow::~RemoteWindow (this=0x1ec6580, __in_chrg=<value optimized out>) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/remotewindow.cpp:50
#13 0x00007fb4a93ed0b6 in utp::RemoteWindow::~RemoteWindow (this=0x1ec6580, __in_chrg=<value optimized out>) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/remotewindow.cpp:51
#14 0x00007fb4a93e95f9 in utp::Connection::~Connection (this=0x13be160, __in_chrg=<value optimized out>) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/connection.cpp:89
#15 0x00007fb4a93e97a0 in utp::Connection::~Connection (this=0x13be160, __in_chrg=<value optimized out>) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/connection.cpp:91
#16 0x00007fb4a93e0099 in utp::UTPServer::Private::clearDeadConnections (this=0x86bd00) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpserver.cpp:234
#17 0x00007fb4a93e1f0c in utp::UTPServer::cleanup (this=0x86b050) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpserver.cpp:631
#18 0x00007fb4a930457d in utp::UTPServer::qt_metacall (this=0x86b050, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fb495b873b0)
    at /home/kriko/workspace/repo/ktorrent/libktorrent/build/src/moc_utpserver.cpp:86
#19 0x00007fb4a68d1a1f in QMetaObject::activate (sender=0x7fb495b87e20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3295
#20 0x00007fb4a68cf22e in QObject::event (this=0x7fb495b87e20, e=0x7fb495b87b70) at kernel/qobject.cpp:1212
#21 0x00007fb4a581c4d4 in QApplicationPrivate::notify_helper (this=0x7462b0, receiver=0x7fb495b87e20, e=0x7fb495b87b70) at kernel/qapplication.cpp:4302
#22 0x00007fb4a5824aca in QApplication::notify (this=<value optimized out>, receiver=0x7fb495b87e20, e=0x7fb495b87b70) at kernel/qapplication.cpp:4185
#23 0x0000000000441156 in kt::App::notify (this=0x7fffb550ffc0, receiver=0x7fb495b87e20, event=0x7fb495b87b70) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/app.cpp:97
#24 0x00007fb4a68bde4c in QCoreApplication::notifyInternal (this=0x7fffb550ffc0, receiver=0x7fb495b87e20, event=0x7fb495b87b70) at kernel/qcoreapplication.cpp:726
#25 0x00007fb4a68e90c9 in sendEvent (this=0x8d3380) at kernel/qcoreapplication.h:215
#26 QTimerInfoList::activateTimers (this=0x8d3380) at kernel/qeventdispatcher_unix.cpp:618
#27 0x00007fb4a68e98c0 in QEventDispatcherUNIX::processEvents (this=0x7cf040, flags=...) at kernel/qeventdispatcher_unix.cpp:939
#28 0x00007fb4a68bd292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007fb4a68bd495 in QEventLoop::exec (this=0x7fb495b87dc0, flags=...) at kernel/qeventloop.cpp:201
#30 0x00007fb4a67d42cf in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#31 0x00007fb4a93e8faf in utp::UTPServerThread::run (this=0x86ab80) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpserverthread.cpp:44
#32 0x00007fb4a67d6bf5 in QThreadPrivate::start (arg=0x86ab80) at thread/qthread_unix.cpp:248
#33 0x00007fb4a6548a4f in start_thread () from /lib64/libpthread.so.0
#34 0x00007fb4a4c5582d in clone () from /lib64/libc.so.6
#35 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fb495387710 (LWP 10774)):
#0  0x00007fb4a4c4c6b3 in poll () from /lib64/libc.so.6
#1  0x00007fb4a93285d6 in net::Poll::poll (this=0x7fb495386d60, timeout=500) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/poll.cpp:99
#2  0x00007fb4a93a6f8a in dht::RPCServer::Private::run (this=0x754480) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/dht/rpcserver.cpp:95
#3  0x00007fb4a67d6bf5 in QThreadPrivate::start (arg=0x754480) at thread/qthread_unix.cpp:248
#4  0x00007fb4a6548a4f in start_thread () from /lib64/libpthread.so.0
#5  0x00007fb4a4c5582d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fb492172710 (LWP 10779)):
#0  0x00007fb4a654d39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb4a67d5d23 in QMutexPrivate::wait (this=0x86be40, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fb4a67d2465 in QMutex::lock (this=0x86bdb8) at thread/qmutex.cpp:167
#3  0x00007fb4a93208b9 in QMutexLocker::relock (this=0x7fb492171cb0) at /usr/include/QtCore/qmutex.h:120
#4  0x00007fb4a9320810 in QMutexLocker::QMutexLocker (this=0x7fb492171cb0, m=0x86bdb8) at /usr/include/QtCore/qmutex.h:102
#5  0x00007fb4a93e1a20 in utp::UTPServer::preparePolling (this=0x86b050, p=0x7149e0, mode=net::Poll::INPUT, conn=0x307ff10)
    at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpserver.cpp:561
#6  0x00007fb4a93ee9f8 in utp::UTPSocket::prepare (this=0x27b8e40, p=0x7149e0, mode=net::Poll::INPUT) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpsocket.cpp:201
#7  0x00007fb4a9323141 in net::DownloadThread::waitForSocketReady (this=0x7149d0) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/downloadthread.cpp:123
#8  0x00007fb4a9322dd7 in net::DownloadThread::update (this=0x7149d0) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/downloadthread.cpp:48
#9  0x00007fb4a932345e in net::NetworkThread::run (this=0x7149d0) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/networkthread.cpp:48
#10 0x00007fb4a67d6bf5 in QThreadPrivate::start (arg=0x7149d0) at thread/qthread_unix.cpp:248
#11 0x00007fb4a6548a4f in start_thread () from /lib64/libpthread.so.0
#12 0x00007fb4a4c5582d in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fb491971710 (LWP 10780)):
#0  0x00007fb4a654d39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb4a67d5d23 in QMutexPrivate::wait (this=0x714940, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fb4a67d2465 in QMutex::lock (this=0x7062a8) at thread/qmutex.cpp:167
#3  0x00007fb4a9320352 in net::SocketMonitor::lock (this=0x7062a0) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/socketmonitor.cpp:82
#4  0x00007fb4a9321e3f in net::UploadThread::waitForSocketsReady (this=0x715060) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/uploadthread.cpp:112
#5  0x00007fb4a9321b7b in net::UploadThread::update (this=0x715060) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/uploadthread.cpp:45
#6  0x00007fb4a932345e in net::NetworkThread::run (this=0x715060) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/net/networkthread.cpp:48
#7  0x00007fb4a67d6bf5 in QThreadPrivate::start (arg=0x715060) at thread/qthread_unix.cpp:248
#8  0x00007fb4a6548a4f in start_thread () from /lib64/libpthread.so.0
#9  0x00007fb4a4c5582d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb4a987b760 (LWP 10771)):
#0  0x00007fb4a654d39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb4a67d5d23 in QMutexPrivate::wait (this=0x86be40, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007fb4a67d2465 in QMutex::lock (this=0x86bdb8) at thread/qmutex.cpp:167
#3  0x00007fb4a93208b9 in QMutexLocker::relock (this=0x7fffb550f080) at /usr/include/QtCore/qmutex.h:120
#4  0x00007fb4a9320810 in QMutexLocker::QMutexLocker (this=0x7fffb550f080, m=0x86bdb8) at /usr/include/QtCore/qmutex.h:102
#5  0x00007fb4a93e1a20 in utp::UTPServer::preparePolling (this=0x86b050, p=0x705d00, mode=net::Poll::INPUT, conn=0x88c2700)
    at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpserver.cpp:561
#6  0x00007fb4a93ee9f8 in utp::UTPSocket::prepare (this=0x8c13500, p=0x705d00, mode=net::Poll::INPUT) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/utp/utpsocket.cpp:201
#7  0x00007fb4a93321b6 in bt::AuthenticationMonitor::update (this=0x705d00) at /home/kriko/workspace/repo/ktorrent/libktorrent/src/peer/authenticationmonitor.cpp:93
#8  0x0000000000432f73 in kt::Core::update (this=0x8db650) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/core.cpp:1021
#9  0x0000000000435643 in kt::Core::qt_metacall (this=0x8db650, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fffb550f320)
    at /home/kriko/workspace/repo/ktorrent/ktorrent/build/ktorrent/core.moc:157
#10 0x00007fb4a68d1a1f in QMetaObject::activate (sender=0x8db678, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3295
#11 0x00007fb4a68cf22e in QObject::event (this=0x8db678, e=0x7fffb550fae0) at kernel/qobject.cpp:1212
#12 0x00007fb4a581c4d4 in QApplicationPrivate::notify_helper (this=0x7462b0, receiver=0x8db678, e=0x7fffb550fae0) at kernel/qapplication.cpp:4302
#13 0x00007fb4a5824aca in QApplication::notify (this=<value optimized out>, receiver=0x8db678, e=0x7fffb550fae0) at kernel/qapplication.cpp:4185
#14 0x0000000000441156 in kt::App::notify (this=0x7fffb550ffc0, receiver=0x8db678, event=0x7fffb550fae0) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/app.cpp:97
#15 0x00007fb4a68bde4c in QCoreApplication::notifyInternal (this=0x7fffb550ffc0, receiver=0x8db678, event=0x7fffb550fae0) at kernel/qcoreapplication.cpp:726
#16 0x00007fb4a68e90c9 in sendEvent (this=0x746cb0) at kernel/qcoreapplication.h:215
#17 QTimerInfoList::activateTimers (this=0x746cb0) at kernel/qeventdispatcher_unix.cpp:618
#18 0x00007fb4a68e98c0 in QEventDispatcherUNIX::processEvents (this=0x7135f0, flags=...) at kernel/qeventdispatcher_unix.cpp:939
#19 0x00007fb4a58bdcbc in QEventDispatcherX11::processEvents (this=0x7135f0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#20 0x00007fb4a68bd292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#21 0x00007fb4a68bd495 in QEventLoop::exec (this=0x7fffb550ff30, flags=...) at kernel/qeventloop.cpp:201
#22 0x00007fb4a68c188b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#23 0x000000000042c004 in main (argc=5, argv=0x7fffb5510d78) at /home/kriko/workspace/repo/ktorrent/ktorrent/ktorrent/main.cpp:176

George
Moderator
Posts
5421
Karma
1

Re: [rev 1156730] Unknown crash

Fri Jul 30, 2010 7:57 am
It would be interesting to see what got printed to the shell
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS

Re: [rev 1156730] Unknown crash

Fri Jul 30, 2010 10:12 am
Ok, running it from shell. When it happens will paste it here.
Thanks.
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS

Re: [rev 1156730] Unknown crash

Fri Aug 06, 2010 10:03 pm
I was running it from a detached shell and all I got is this:

Code: Select all
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54964c4
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x549a1f7
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x549bf63
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x549dec2
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x549f95f
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54a1531
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54a2a3c
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54a33d3
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54b16fd
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54b2a29
Warning: X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x54b4b01


Nothing usefull right? Or should I start ktorrent with some special switch?
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS

Re: [rev 1156730] Unknown crash

Fri Aug 06, 2010 10:12 pm
Disregard that previous post, just happened again:
Code: Select all
Warning: QSocketNotifier: Invalid socket 21 and type 'Read', disabling...
Warning: QSocketNotifier: Invalid socket 20 and type 'Read', disabling...
KCrash: Application 'ktorrent' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/kriko/.kde4/socket-kriko.kriko/kdeinit4__0
George
Moderator
Posts
5421
Karma
1

Re: [rev 1156730] Unknown crash

Sat Aug 07, 2010 8:34 am
The only reason this could be happening is a double delete of the same object. It's not quite obvious how this can happen.
George
Moderator
Posts
5421
Karma
1

Re: [rev 1156730] Unknown crash

Sat Aug 07, 2010 8:37 am
I have found the cause of the double delete, will fix it soon.

EDIT: It's fixed
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS

Re: [rev 1156730] Unknown crash

Sat Aug 07, 2010 8:41 am
What about when a torrent is completed?
I've set it to recheck all the chunks after download is finished.

It's true that I've deleted some torrents, but I cannot do that twice.

I also delete sometimes the .torrent files (rm *.torrent) from the scanned folder (which is also a download folder).
I do this when ktorrent adds .torrent files after downloading them but it doesn't move them to "loaded" subfolder - I don't know why this happens, but
under this circumstances ktorrent will popup a message that the torrent is already being downloaded at every
startup.

EDIT: ah, tnx - that was fast :D


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]