Bug 273170 - Kget crashes
Summary: Kget crashes
Status: RESOLVED WORKSFORME
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2011-05-13 08:56 UTC by bob.dicarat
Modified: 2018-10-27 02:47 UTC (History)
1 user (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 bob.dicarat 2011-05-13 08:56:31 UTC
Application: kget (2.6.2)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-9-generic i686
Distribution: Ubuntu 11.04

-- Information about the crash:
When I star Kget, the program goes completely wild, starts a few wild downloads randomly chosen from ktorrent downloads anf finally crashes. The result is my directories getting filled with files that are called like prevoiously ktorretn downloads, that occupy drive space, don't work and if used makes the whole system stall. Crazy!

The crash can be reproduced every time.

-- Backtrace:
Application: KGet (kget), signal: Segmentation fault
[Current thread is 1 (Thread 0xb60e5720 (LWP 4344))]

Thread 6 (Thread 0xb5dfbb70 (LWP 4345)):
#0  0x00f80416 in __kernel_vsyscall ()
#1  0x01f0bf76 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0x0601184b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x060011af in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x0600192b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x0630a304 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#6  0x0602a2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0x00df3e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0x01f1a73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 5 (Thread 0xb13b8b70 (LWP 4392)):
#0  0x00f80416 in __kernel_vsyscall ()
#1  0x01f0bf76 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0x036fd8a6 in net::Poll::poll (this=0x8d66220, timeout=-1) at ../../src/net/poll.cpp:99
#3  0x036f9e42 in net::DownloadThread::waitForSocketReady (this=0x8d66218) at ../../src/net/downloadthread.cpp:128
#4  0x036f9f4f in net::DownloadThread::update (this=0x8d66218) at ../../src/net/downloadthread.cpp:48
#5  0x036fa1e8 in net::NetworkThread::run (this=0x8d66218) at ../../src/net/networkthread.cpp:48
#6  0x02fadda2 in QThreadPrivate::start (arg=0x8d66218) at thread/qthread_unix.cpp:320
#7  0x00df3e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0x01f1a73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xb0af7b70 (LWP 4393)):
#0  0x036fdda4 in deref (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/qt4/QtCore/qatomic_i386.h:132
#1  deref (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:336
#2  deref (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:328
#3  ~ExternalRefCount (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:386
#4  ~QSharedPointer (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/qt4/QtCore/qsharedpointer_impl.h:445
#5  ~pair (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/c++/4.5/bits/stl_pair.h:72
#6  destroy (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/c++/4.5/ext/new_allocator.h:115
#7  _M_destroy_node (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/c++/4.5/bits/stl_tree.h:383
#8  std::_Rb_tree<int, std::pair<int const, QSharedPointer<net::PollClient> >, std::_Select1st<std::pair<int const, QSharedPointer<net::PollClient> > >, std::less<int>, std::allocator<std::pair<int const, QSharedPointer<net::PollClient> > > >::_M_erase (this=0x8d6663c, __x=0xb541cbb0) at /usr/include/c++/4.5/bits/stl_tree.h:990
#9  0x036fd91c in clear (this=0x8d66628, timeout=-1) at /usr/include/c++/4.5/bits/stl_tree.h:744
#10 clear (this=0x8d66628, timeout=-1) at /usr/include/c++/4.5/bits/stl_map.h:664
#11 net::Poll::poll (this=0x8d66628, timeout=-1) at ../../src/net/poll.cpp:113
#12 0x036f95b0 in net::UploadThread::waitForSocketsReady (this=0x8d66620) at ../../src/net/uploadthread.cpp:129
#13 0x036f96bf in net::UploadThread::update (this=0x8d66620) at ../../src/net/uploadthread.cpp:45
#14 0x036fa1e8 in net::NetworkThread::run (this=0x8d66620) at ../../src/net/networkthread.cpp:48
#15 0x02fadda2 in QThreadPrivate::start (arg=0x8d66620) at thread/qthread_unix.cpp:320
#16 0x00df3e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0x01f1a73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xb02f6b70 (LWP 4394)):
#0  0x00f80416 in __kernel_vsyscall ()
#1  0x00df848c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x02fae467 in wait (this=0xb5413aec, mutex=0xb5413ae8, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xb5413aec, mutex=0xb5413ae8, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0x036fd3af in net::ReverseResolverThread::run (this=0xb5413ae0) at ../../src/net/reverseresolver.cpp:123
#5  0x02fadda2 in QThreadPrivate::start (arg=0xb5413ae0) at thread/qthread_unix.cpp:320
#6  0x00df3e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#7  0x01f1a73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xafaf5b70 (LWP 4396)):
[KCrash Handler]
#7  0x00000000 in ?? ()
#8  0x036eb3b6 in endline (lg=...) at ../../src/util/log.cpp:160
#9  bt::endl (lg=...) at ../../src/util/log.cpp:222
#10 0x03770459 in operator<< (this=0x95cffd8) at ../../src/util/log.h:140
#11 bt::CacheFile::preallocate (this=0x95cffd8) at ../../src/diskio/cachefile.cpp:512
#12 0x03763b5f in bt::MultiFileCache::preallocateDiskSpace (this=0xb543a5b0, prealloc=0x9748fe8) at ../../src/diskio/multifilecache.cpp:807
#13 0x0377326b in bt::ChunkManager::preallocateDiskSpace (this=0xb543a430, prealloc=0x9748fe8) at ../../src/diskio/chunkmanager.cpp:896
#14 0x0376b7bc in bt::PreallocationThread::run (this=0x9748fe8) at ../../src/diskio/preallocationthread.cpp:53
#15 0x02fadda2 in QThreadPrivate::start (arg=0x9748fe8) at thread/qthread_unix.cpp:320
#16 0x00df3e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#17 0x01f1a73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb60e5720 (LWP 4344)):
#0  0x00f80416 in __kernel_vsyscall ()
#1  0x00df848c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0x02facdaa in QMutexPrivate::wait (this=0x9478350, timeout=-1) at thread/qmutex_unix.cpp:84
#3  0x02fa94b2 in QMutex::lock (this=0x9478340) at thread/qmutex.cpp:204
#4  0x036ea8a3 in bt::Log::lock (this=0x9478318) at ../../src/util/log.cpp:262
#5  0x036eac4e in bt::Out (arg=19) at ../../src/util/log.cpp:270
#6  0x03731544 in bt::Server::changePort (this=0xb5413bc8, p=6881) at ../../src/torrent/server.cpp:81
#7  0x03730c9d in bt::Globals::initTCPServer (this=0x94797b8, port=6881) at ../../src/torrent/globals.cpp:71
#8  0x0848ace7 in BTTransfer::btTransferInit (this=0x9450f18, src=..., data=...) at ../../../../kget/transfer-plugins/bittorrent/bttransfer.cpp:425
#9  0x0848c0c6 in BTTransfer::start (this=0x9450f18) at ../../../../kget/transfer-plugins/bittorrent/bttransfer.cpp:139
#10 0x00607839 in Scheduler::updateQueue (this=0x8b4db80, queue=0x8d553b0) at ../../kget/core/scheduler.cpp:285
#11 0x005f310c in JobQueue::append (this=0x8d553b0, jobs=...) at ../../kget/core/jobqueue.cpp:95
#12 0x006163a8 in TransferGroup::append (this=0x8d553b0, transfers=...) at ../../kget/core/transfergroup.cpp:102
#13 0x0060b646 in TransferTreeModel::addTransfers (this=0x8d507e8, transfers=..., group=0x8d553b0) at ../../kget/core/transfertreemodel.cpp:241
#14 0x006006e8 in KGet::createTransfers (dataItems=...) at ../../kget/core/kget.cpp:915
#15 0x00603768 in KGet::addTransfers (elements=..., groupName=...) at ../../kget/core/kget.cpp:277
#16 0x0061500d in TransferGroup::load (this=0x8d553b0, e=...) at ../../kget/core/transfergroup.cpp:399
#17 0x005f7206 in KGet::load (filename=...) at ../../kget/core/kget.cpp:559
#18 0x080e4db6 in MainWindow::init (this=0x8d45d70) at ../../kget/mainwindow.cpp:357
#19 0x080effda in KGetApp::newInstance (this=0xbf9f1928) at ../../kget/main.cpp:71
#20 0x00acbff4 in KUniqueApplicationAdaptor::newInstance (this=0x8d3a020, asn_id=..., args=...) at ../../kdeui/kernel/kuniqueapplication.cpp:436
#21 0x00acc0b2 in KUniqueApplicationAdaptor::qt_metacall (this=0x8d3a020, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf9f0ebc) at ./kuniqueapplication_p.moc:81
#22 0x00ebbacd in QDBusConnectionPrivate::deliverCall (this=0x8b93a68, object=0x8d3a020, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:942
#23 0x00ebcbb2 in QDBusConnectionPrivate::activateCall (this=0x8b93a68, object=0x8d3a020, flags=337, msg=...) at qdbusintegrator.cpp:845
#24 0x00ebd1ac in QDBusConnectionPrivate::activateObject (this=0x8b93a68, node=..., msg=..., pathStartPos=16) at qdbusintegrator.cpp:1430
#25 0x00ebd62a in QDBusActivateObjectEvent::placeMetaCall (this=0x8ce6370) at qdbusintegrator.cpp:1524
#26 0x030b73b7 in QObject::event (this=0xbf9f1928, e=0x8ce6370) at kernel/qobject.cpp:1226
#27 0x030a26ab in QCoreApplication::event (this=0xbf9f1928, e=0x8ce6370) at kernel/qcoreapplication.cpp:1560
#28 0x0547623f in QApplication::event (this=0xbf9f1928, e=0x8ce6370) at kernel/qapplication.cpp:2503
#29 0x05473d24 in QApplicationPrivate::notify_helper (this=0x8ba0cb8, receiver=0xbf9f1928, e=0x8ce6370) at kernel/qapplication.cpp:4462
#30 0x054788ce in QApplication::notify (this=0xbf9f1928, receiver=0xbf9f1928, e=0x8ce6370) at kernel/qapplication.cpp:3862
#31 0x00ac53ca in KApplication::notify (this=0xbf9f1928, receiver=0xbf9f1928, event=0x8ce6370) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x030a20bb in QCoreApplication::notifyInternal (this=0xbf9f1928, receiver=0xbf9f1928, event=0x8ce6370) at kernel/qcoreapplication.cpp:731
#33 0x030a5c79 in sendEvent (receiver=0x0, event_type=0, data=0x8b47248) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#34 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8b47248) at kernel/qcoreapplication.cpp:1372
#35 0x030a5e0d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1265
#36 0x030cf3c4 in sendPostedEvents (s=0x8ba3fb8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=0x8ba3fb8) at kernel/qeventdispatcher_glib.cpp:277
#38 0x06000aa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#39 0x06001270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#40 0x06001524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#41 0x030cf53c in QEventDispatcherGlib::processEvents (this=0x8b46d78, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#42 0x05527775 in QGuiEventDispatcherGlib::processEvents (this=0x8b46d78, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x030a1289 in QEventLoop::processEvents (this=0xbf9f1884, flags=...) at kernel/qeventloop.cpp:149
#44 0x030a1522 in QEventLoop::exec (this=0xbf9f1884, flags=...) at kernel/qeventloop.cpp:201
#45 0x030a5ecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#46 0x054718e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#47 0x080eef30 in main (argc=) at ../../kget/main.cpp:167

Reported using DrKonqi
Comment 1 Matthias Fuchs 2011-05-13 09:02:37 UTC
So the downloads it started weren't in KGet before but only in KTorrent?
Comment 2 bob.dicarat 2011-05-13 12:14:14 UTC
yes Matthias, they where only in Ktorrent. Thanx for your interest.

On Fri, May 13, 2011 at 9:02 AM, Matthias Fuchs <mat69@gmx.net> wrote:

> https://bugs.kde.org/show_bug.cgi?id=273170
>
>
> Matthias Fuchs <mat69@gmx.net> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                 CC|                            |mat69@gmx.net
>
>
>
>
> --- Comment #1 from Matthias Fuchs <mat69 gmx net>  2011-05-13 09:02:37 ---
> So the downloads it started weren't in KGet before but only in KTorrent?
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 3 Lukas Appelhans 2011-05-14 01:03:17 UTC
So it automatically adds torrent downloads from KTorrent?

Anyway what version of libktorrent are you using?

Lukas
Comment 4 bob.dicarat 2011-05-15 02:04:10 UTC
Version 4.0.5 KDE Development Platform 4.6.2

On Sat, May 14, 2011 at 1:03 AM, Lukas Appelhans <l.appelhans@gmx.de> wrote:

> https://bugs.kde.org/show_bug.cgi?id=273170
>
>
>
>
>
> --- Comment #3 from Lukas Appelhans <l appelhans gmx de>  2011-05-14
> 01:03:17 ---
> So it automatically adds torrent downloads from KTorrent?
>
> Anyway what version of libktorrent are you using?
>
> Lukas
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 5 bob.dicarat 2011-05-16 02:59:19 UTC
Yes it downloads downloads from k torrent version is 4.0.5 using KDE Development Platform 4.6.2 (4.6.2). Running Ubuntu 11.04
Comment 6 Matthias Fuchs 2011-05-16 11:11:23 UTC
Were those downloades finished in KTorrent? Was KTorrent running when you started KGet?
Comment 7 bob.dicarat 2011-05-19 01:44:10 UTC
Yes those downloads were finished and no ktorrent was not running



On , Matthias Fuchs <mat69@gmx.net> wrote:
> https://bugs.kde.org/show_bug.cgi?id=273170











> --- Comment #6 from Matthias Fuchs 2011-05-16 11:11:23 ---

> Were those downloades finished in KTorrent? Was KTorrent running when you

> started KGet?



> --

> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email

> ------- You are receiving this mail because: -------

> You reported the bug.
Comment 8 Lukas Appelhans 2011-05-20 13:00:51 UTC
At the moment I can't think of any reason why KGet should pick up any KTorrrent downloads...

Lukas
Comment 9 bob.dicarat 2011-05-20 15:26:47 UTC
Well thanks for trying. For the moment I switched to another download
manager but I will try later on to check if a newer version will work again.
By the way, just in case you wondered, I tried several times to remove and
reinstall with no success. So for the the moment it will stay removed.
Thank you

Bob
On Fri, May 20, 2011 at 1:00 PM, Lukas Appelhans <l.appelhans@gmx.de> wrote:

> https://bugs.kde.org/show_bug.cgi?id=273170
>
>
>
>
>
> --- Comment #8 from Lukas Appelhans <l appelhans gmx de>  2011-05-20
> 13:00:51 ---
> At the moment I can't think of any reason why KGet should pick up any
> KTorrrent
> downloads...
>
> Lukas
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 10 Matthias Fuchs 2011-05-21 14:22:20 UTC
I tried to reproduce this issue running Kubuntu 11.4 in Virtualbox but I was not able to. Not sure if the app data (~/.kde4/share/apps/ and there kget and ktorrent) and their settings ~/.kde4/share/config there the corrent settings) of KGet and KTorrent could help.
Comment 11 bob.dicarat 2011-05-30 00:48:24 UTC
i don't quite get what you mean or are asking for,,,, do you want me to  
send you my settings?

Il giorno , Matthias Fuchs <mat69@gmx.net> ha scritto:
> https://bugs.kde.org/show_bug.cgi?id=273170











> --- Comment #10 from Matthias Fuchs 2011-05-21 14:22:20 ---

> I tried to reproduce this issue running Kubuntu 11.4 in Virtualbox but I  
> was

> not able to. Not sure if the app data (~/.kde4/share/apps/ and there kget  
> and

> ktorrent) and their settings ~/.kde4/share/config there the corrent  
> settings)

> of KGet and KTorrent could help.



> --

> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email

> ------- You are receiving this mail because: -------

> You reported the bug.
Comment 12 Lukas Appelhans 2011-05-30 10:48:54 UTC
Yeah, please post them!

I really have no clue how this could theoretically happen, but maybe the settings will give us a clue!

Lukas
Comment 13 Matthias Fuchs 2011-08-04 16:40:55 UTC
As mentioned we can't imagine how this possibly could happen. So your settings might give us a clue or maybe even a way to reproduce this issue.
In fact if you have any personal information in there make sure to remove it.
Comment 14 bob.dicarat 2011-08-06 06:38:43 UTC
Dear Matthias,

I'm no expert and have really no idea of what kind of info I should send
you. As for me, I simply removed Kget and lived happily ever since. But if
it can be of any help or interest for you, let me know exactly the kind of
info you need. I'd be glad to help even though i doubt that I will turn back
to Kget.

All the best and thanks for your interest.

Bob

On Thu, Aug 4, 2011 at 6:40 PM, Matthias Fuchs <mat69@gmx.net> wrote:

> https://bugs.kde.org/show_bug.cgi?id=273170
>
>
> Matthias Fuchs <mat69@gmx.net> changed:
>
>           What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Status|UNCONFIRMED                 |NEEDSINFO
>         Resolution|                            |WAITINGFORINFO
> ha
>
>
>
> --- Comment #13 from Matthias Fuchs <mat69 gmx net>  2011-08-04 16:40:55
> ---
> As mentioned we can't imagine how this possibly could happen. So your
> settings
> might give us a clue or maybe even a way to reproduce this issue.
> In fact if you have any personal information in there make sure to remove
> it.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 15 Matthias Fuchs 2011-08-08 10:53:00 UTC
First thing would be to make sure that you can reproduce this issue.

The files that could be useful for us are the kgetrc file from ~/.kde4/share/config then the transfers.kgt file from ~/.kde4/share/apps/kget

Then on the KTorrent part ~/.kde4/share/ktorrent/log also ~/.kde4/share/config/ktorrentrc

Make sure that these files do not contain any information you do not wanna see on the internet though.
Comment 16 Andrew Crouthamel 2018-09-22 02:01:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 17 Andrew Crouthamel 2018-10-27 02:47:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!