Summary: | ktorrent crash on exit | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | jenna <giantpune> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
jenna
2011-06-06 03:08:10 UTC
Could you run it under valgrind ? valgrind --log-file=vg.log /usr/bin/ktorrent --nofork Post the generated vg.log file here, this would be very helpful, in analyzing what is going wrong. here is the vg.log: ==9526== Memcheck, a memory error detector ==9526== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==9526== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==9526== Command: /usr/bin/ktorrent --nofork ==9526== Parent PID: 4446 ==9526== ==9526== Conditional jump or move depends on uninitialised value(s) ==9526== at 0xC617510: inflateReset2 (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) ==9526== by 0xC617605: inflateInit2_ (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) ==9526== by 0xE7481B0: png_create_read_struct_2 (in /lib/x86_64-linux-gnu/libpng12.so.0.44.0) ==9526== by 0xE748356: png_create_read_struct (in /lib/x86_64-linux-gnu/libpng12.so.0.44.0) ==9526== by 0x85044F6: QPngHandlerPrivate::readPngHeader() (qpnghandler.cpp:368) ==9526== by 0x8505224: QPngHandlerPrivate::readPngImage(QImage*) (qpnghandler.cpp:439) ==9526== by 0x84D5577: QImageReader::read(QImage*) (qimagereader.cpp:1205) ==9526== by 0x84D5BC6: QImageReader::read() (qimagereader.cpp:1155) ==9526== by 0x84CAE11: operator>>(QDataStream&, QImage&) (qimage.cpp:5204) ==9526== by 0x84E5705: operator>>(QDataStream&, QPixmap&) (qpixmap.cpp:1329) ==9526== by 0x6CC2F5E: KIconLoaderPrivate::findCachedPixmapWithPath(QString const&, QPixmap&, QString&) (kiconloader.cpp:884) ==9526== by 0x6CC5D38: KIconLoader::loadIcon(QString const&, KIconLoader::Group, int, int, QStringList const&, QString*, bool) const (kiconloader.cpp:1231) ==9526== ==9526== Conditional jump or move depends on uninitialised value(s) ==9526== at 0x4EA796B: net::SocketMonitor::Private::shutdown() (socketmonitor.cpp:76) ==9526== by 0x42D562: kt::Core::onExit() (core.cpp:903) ==9526== by 0x437AE5: kt::GUI::queryExit() (gui.cpp:568) ==9526== by 0x6DD58E3: KMainWindowPrivate::_k_shuttingDown() (kmainwindow.cpp:1142) ==9526== by 0x6DD82A8: KMainWindow::qt_metacall(QMetaObject::Call, int, void**) (kmainwindow.moc:102) ==9526== by 0x6E0E334: KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**) (kxmlguiwindow.moc:102) ==9526== by 0x5772E1F: KParts::MainWindow::qt_metacall(QMetaObject::Call, int, void**) (mainwindow.moc:75) ==9526== by 0x43A13F: kt::GUI::qt_metacall(QMetaObject::Call, int, void**) (gui.moc:102) ==9526== by 0x7CBB5F7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3287) ==9526== by 0x7CA9EF2: QCoreApplication::exec() (qcoreapplication.cpp:1013) ==9526== by 0x429BDE: main (main.cpp:177) ==9526== ==9526== Use of uninitialised value of size 8 ==9526== at 0x4EA796D: net::SocketMonitor::Private::shutdown() (socketmonitor.cpp:76) ==9526== by 0x42D562: kt::Core::onExit() (core.cpp:903) ==9526== by 0x437AE5: kt::GUI::queryExit() (gui.cpp:568) ==9526== by 0x6DD58E3: KMainWindowPrivate::_k_shuttingDown() (kmainwindow.cpp:1142) ==9526== by 0x6DD82A8: KMainWindow::qt_metacall(QMetaObject::Call, int, void**) (kmainwindow.moc:102) ==9526== by 0x6E0E334: KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**) (kxmlguiwindow.moc:102) ==9526== by 0x5772E1F: KParts::MainWindow::qt_metacall(QMetaObject::Call, int, void**) (mainwindow.moc:75) ==9526== by 0x43A13F: kt::GUI::qt_metacall(QMetaObject::Call, int, void**) (gui.moc:102) ==9526== by 0x7CBB5F7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3287) ==9526== by 0x7CA9EF2: QCoreApplication::exec() (qcoreapplication.cpp:1013) ==9526== by 0x429BDE: main (main.cpp:177) ==9526== ==9526== Invalid read of size 1 ==9526== at 0x4EA796D: net::SocketMonitor::Private::shutdown() (socketmonitor.cpp:76) ==9526== by 0x42D562: kt::Core::onExit() (core.cpp:903) ==9526== by 0x437AE5: kt::GUI::queryExit() (gui.cpp:568) ==9526== by 0x6DD58E3: KMainWindowPrivate::_k_shuttingDown() (kmainwindow.cpp:1142) ==9526== by 0x6DD82A8: KMainWindow::qt_metacall(QMetaObject::Call, int, void**) (kmainwindow.moc:102) ==9526== by 0x6E0E334: KXmlGuiWindow::qt_metacall(QMetaObject::Call, int, void**) (kxmlguiwindow.moc:102) ==9526== by 0x5772E1F: KParts::MainWindow::qt_metacall(QMetaObject::Call, int, void**) (mainwindow.moc:75) ==9526== by 0x43A13F: kt::GUI::qt_metacall(QMetaObject::Call, int, void**) (gui.moc:102) ==9526== by 0x7CBB5F7: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3287) ==9526== by 0x7CA9EF2: QCoreApplication::exec() (qcoreapplication.cpp:1013) ==9526== by 0x429BDE: main (main.cpp:177) ==9526== Address 0x731c3a5a00000070 is not stack'd, malloc'd or (recently) free'd ==9526== ==9526== ==9526== HEAP SUMMARY: ==9526== in use at exit: 11,912,906 bytes in 142,945 blocks ==9526== total heap usage: 661,234 allocs, 518,289 frees, 112,181,514 bytes allocated ==9526== ==9526== LEAK SUMMARY: ==9526== definitely lost: 7,849 bytes in 23 blocks ==9526== indirectly lost: 30,982 bytes in 910 blocks ==9526== possibly lost: 1,326,682 bytes in 22,189 blocks ==9526== still reachable: 10,547,393 bytes in 119,823 blocks ==9526== suppressed: 0 bytes in 0 blocks ==9526== Rerun with --leak-check=full to see details of leaked memory ==9526== ==9526== For counts of detected and suppressed errors, rerun with: -v ==9526== Use --track-origins=yes to see where uninitialised values come from ==9526== ERROR SUMMARY: 44 errors from 4 contexts (suppressed: 8 from 8) and here is the output the shows up in the terminal: j@laptop:~$ valgrind --log-file=vg.log /usr/bin/ktorrent --nofork KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work Warning: QWidget::insertAction: Attempt to insert null action Warning: QWidget::insertAction: Attempt to insert null action Warning: QWidget::insertAction: Attempt to insert null action KCrash: Application 'ktorrent' crashing... KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit sock_file=/home/j/.kde/socket-laptop/kdeinit4__0 [1]+ Stopped valgrind --log-file=vg.log /usr/bin/ktorrent --nofork j@laptop:~$ How did you install ktorrent ? I installed it via synaptic package manager. After I tried it and it crashed on me a couple times, I went to the official site and grabbed the source and built it from source and installed it. I was still getting the crash. I have since installed it again via the package manager. This last install seems to have reset my settings along with installing the program and now the crash is not happening :/ . It's probably caused by loading plugins of an older version which links to a different version of libktorrent |