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

Bug in 2.2 dev

Tags: None
(comma "," separated)
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0

Bug in 2.2 dev

Fri May 18, 2007 10:28 am
I have uncovered a bug in r665575.

I tried to change my max downloading to 2 (from 1) and my max seeding to 5 (from 2). And ktorrent crashed. I forgot I had enabled the debuging symbols when I compiled it so I just hit close and went to launch it again. The KDE crash handler showed up again. I did a backtrace. Here is the output:

Code: Select all
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1234307392 (LWP 23671)]
[KCrash handler]
#5  0xb6767847 in raise () from /lib/tls/libc.so.6
#6  0xb67690d9 in abort () from /lib/tls/libc.so.6
#7  0xb693dc6b in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#8  0xb693b8a4 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.6
#9  0xb693b8e1 in std::terminate () from /usr/lib/libstdc++.so.6
#10 0xb693ba64 in __cxa_throw () from /usr/lib/libstdc++.so.6
#11 0xb7ea51b3 in bt::CacheFile::openFile ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#12 0xb7ea67cb in bt::CacheFile::diskUsage ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#13 0xb7e875a8 in bt::SingleFileCache::diskUsage ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#14 0xb7e530d2 in bt::ChunkManager::diskUsage ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#15 0xb7e6b898 in bt::TorrentControl::checkDiskSpace ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#16 0xb7ea12ed in bt::QueueManager::start ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#17 0xb7ea1ac4 in bt::QueueManager::orderQueue ()
   from /opt/kde/lib/libktorrent-2.2dev.so
#18 0x08078fe6 in KTorrentCore::loadTorrents ()
#19 0x0807162d in KTorrent::KTorrent ()
#20 0x08073c28 in KTorrentApp::newInstance ()
#21 0xb75cdc5e in KUniqueApplication::processDelayed ()
   from /opt/kde/lib/libkdecore.so.4
#22 0xb75cde3c in KUniqueApplication::qt_invoke ()
   from /opt/kde/lib/libkdecore.so.4
#23 0x08073837 in KTorrentApp::qt_invoke ()
#24 0xb6f23c74 in QObject::activate_signal ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#25 0xb72650dd in QSignal::signal () from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#26 0xb6f3e6d1 in QSignal::activate () from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#27 0xb6f461d3 in QSingleShotTimer::event ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#28 0xb6ebec1f in QApplication::internalNotify ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#29 0xb6ebedbc in QApplication::notify ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#30 0xb750bac5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#31 0xb6eb216c in QEventLoop::activateTimers ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#32 0xb6e6a6a1 in QEventLoop::processEvents ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#33 0xb6ed5341 in QEventLoop::enterLoop ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#34 0xb6ed5296 in QEventLoop::exec () from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#35 0xb6ebdd7f in QApplication::exec ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#36 0x08089870 in main ()


My apologies if this is already fixed, but I figured I would get it in before I can't reproduce it.

Jeremy
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0

Fri May 18, 2007 11:00 am
I just updated to the latest svn (r665880) and the problem still happens. I will try deleting (actually renaming the folder) the contents in my .kde/share/apps/ktorrent folder and see if it still happens.

Code: Select all
Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1234241856 (LWP 15985)]
[KCrash handler]
#5  0xb6777847 in raise () from /lib/tls/libc.so.6
#6  0xb67790d9 in abort () from /lib/tls/libc.so.6
#7  0xb694dc6b in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#8  0xb694b8a4 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.6
#9  0xb694b8e1 in std::terminate () from /usr/lib/libstdc++.so.6
#10 0xb694ba64 in __cxa_throw () from /usr/lib/libstdc++.so.6
#11 0xb7ef8e65 in bt::CacheFile::openFile (this=0xbfed34d0,
    mode=bt::CacheFile::READ) at cachefile.cpp:95
#12 0xb7ef9f24 in bt::CacheFile::diskUsage (this=0x84d5fa0)
    at cachefile.cpp:488
#13 0xb7edc10c in bt::SingleFileCache::diskUsage (this=0x83e9690)
    at singlefilecache.cpp:194
#14 0xb7ea8662 in bt::ChunkManager::diskUsage (this=0x0)
    at chunkmanager.cpp:1102
#15 0xb7ec16cf in bt::TorrentControl::checkDiskSpace (this=0x83e8dc8,
    emit_sig=false) at torrentcontrol.cpp:1601
#16 0xb7ef5061 in bt::QueueManager::start (this=0x8324488, tc=0x83e8dc8,
    user=2) at queuemanager.cpp:120
#17 0xb7ef57da in bt::QueueManager::orderQueue (this=0x8324488)
    at queuemanager.cpp:537
#18 0x0807a74d in KTorrentCore::loadTorrents (this=0x83243c0)
    at ktorrentcore.cpp:520
#19 0x08073503 in KTorrent (this=0x81916c0) at ktorrent.cpp:185
#20 0x08076843 in KTorrentApp::newInstance (this=0xbfed4220)
    at ktorrentapp.cpp:58
#21 0xb75ddc5e in KUniqueApplication::processDelayed ()
   from /opt/kde/lib/libkdecore.so.4
#22 0xb75dde3c in KUniqueApplication::qt_invoke ()
   from /opt/kde/lib/libkdecore.so.4
#23 0x080765f7 in KTorrentApp::qt_invoke (this=0xbfed4220, _id=18,
    _o=0xbfed3b90) at ktorrentapp.moc:77
#24 0xb6f33c74 in QObject::activate_signal ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#25 0xb72750dd in QSignal::signal () from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#26 0xb6f4e6d1 in QSignal::activate () from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#27 0xb6f561d3 in QSingleShotTimer::event ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#28 0xb6ecec1f in QApplication::internalNotify ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#29 0xb6ecedbc in QApplication::notify ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#30 0xb751bac5 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#31 0xb6ec216c in QEventLoop::activateTimers ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#32 0xb6e7a6a1 in QEventLoop::processEvents ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#33 0xb6ee5341 in QEventLoop::enterLoop ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#34 0xb6ee5296 in QEventLoop::exec () from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#35 0xb6ecdd7f in QApplication::exec ()
   from /usr/lib/qt-3.3.8/lib/libqt-mt.so.3
#36 0x08089e09 in main (argc=1, argv=0xbfed43e4) at main.cpp:176


Jeremy
User avatar
bassmadrigal
Registered Member
Posts
113
Karma
0

Fri May 18, 2007 11:09 am
OK after doing more digging I found out that a particular torrents data was causing the crash. I think what may have caused a problem is, I originally started up a bunch of torrents and let them allocate, but then I realized I wouldn't have room to do all of them, so I removed a bunch of the preallocated files. All except this one prompted me to reallocate the files when I started them. For whatever reason this one decided not to, and cause a crash. I will just readd the torrent, so this should be taken care of on my end.

I will be saving the contents of the folder I removed for a couple of days, so if you would like them, let me know the best way to get them to you.

Jeremy
George
Moderator
Posts
5421
Karma
1

Sat May 19, 2007 10:10 am
It's an uncaught exception, will have it fixed in 5 minutes.
George
Moderator
Posts
5421
Karma
1

Sat May 19, 2007 10:14 am
OK, shouldn't happen anymore


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot]