Bug 296560 - Ktorrent crashes during startup.
Summary: Ktorrent crashes during startup.
Status: RESOLVED UPSTREAM
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
: 296674 297239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-22 15:59 UTC by Leonid Zhaldybin
Modified: 2012-04-09 19:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.25 KB, text/plain)
2012-04-09 19:52 UTC, Cvetoslav Ludmiloff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Zhaldybin 2012-03-22 15:59:50 UTC
Application: ktorrent (4.2)
KDE Platform Version: 4.8.1 (4.8.1)
Qt Version: 4.8.0
Operating System: Linux 3.3.0-1.fc17.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
After I added a few torrents to Ktorrent, starting it up became quite a problem. It crashes every time I try to start it and I have to hit "restart application" button in the  KDE Crash Handler a few times to finally get it running.

The crash can be reproduced some of the time.

-- Backtrace:
Application: KTorrent (ktorrent), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
166	62:	movl	(%rsp), %edi
[Current thread is 1 (Thread 0x7f1100393880 (LWP 12550))]

Thread 6 (Thread 0x7f10f3465700 (LWP 12552)):
[KCrash Handler]
#6  0x0000003ac2b29fb6 in __nscd_get_mapping (type=type@entry=GETFDHST, key=0x3ac2b76f2a "hosts", mappedp=mappedp@entry=0x3ac2db6468) at nscd_helper.c:417
#7  0x0000003ac2b2a20d in __nscd_get_map_ref (type=type@entry=GETFDHST, name=name@entry=0x3ac2b76f2a "hosts", mapptr=mapptr@entry=0x3ac2db6460, gc_cyclep=gc_cyclep@entry=0x7f10f3463e90) at nscd_helper.c:452
#8  0x0000003ac2b276b5 in nscd_gethst_r (key=key@entry=0x7f10ec002ea8 "bt4.rutracker.org", keylen=18, type=type@entry=GETHOSTBYNAME, resultbuf=resultbuf@entry=0x7f10f3464440, buffer=buffer@entry=0x7f10f3464060 "", buflen=buflen@entry=512, result=result@entry=0x7f10f3464430, h_errnop=h_errnop@entry=0x7f10f34643f0) at nscd_gethst_r.c:147
#9  0x0000003ac2b27f86 in __nscd_gethostbyname2_r (name=name@entry=0x7f10ec002ea8 "bt4.rutracker.org", af=af@entry=2, resultbuf=resultbuf@entry=0x7f10f3464440, buffer=0x7f10f3464060 "", buflen=buflen@entry=512, result=result@entry=0x7f10f3464430, h_errnop=h_errnop@entry=0x7f10f34643f0) at nscd_gethst_r.c:62
#10 0x0000003ac2b0a90a in __gethostbyname2_r (name=name@entry=0x7f10ec002ea8 "bt4.rutracker.org", af=af@entry=2, resbuf=resbuf@entry=0x7f10f3464440, buffer=buffer@entry=0x7f10f3464060 "", buflen=buflen@entry=512, result=result@entry=0x7f10f3464430, h_errnop=h_errnop@entry=0x7f10f34643f0) at ../nss/getXXbyYY_r.c:194
#11 0x0000003ac2ad9f62 in gaih_inet (name=name@entry=0x7f10ec002ea8 "bt4.rutracker.org", service=<optimized out>, req=req@entry=0x7f10f34645d0, pai=pai@entry=0x7f10f3464540, naddrs=naddrs@entry=0x7f10f3464520) at ../sysdeps/posix/getaddrinfo.c:581
#12 0x0000003ac2adcbc1 in __GI_getaddrinfo (name=0x7f10ec002ea8 "bt4.rutracker.org", service=<optimized out>, hints=0x7f10f34645d0, pai=0x7f10f34647b8) at ../sysdeps/posix/getaddrinfo.c:2356
#13 0x0000003ace6b1e02 in QHostInfoAgent::fromName (hostName=...) at kernel/qhostinfo_unix.cpp:212
#14 0x0000003ace6a6b83 in QHostInfoRunnable::run (this=0x2bfbb80) at kernel/qhostinfo.cpp:501
#15 0x0000003acbe6f0bd in QThreadPoolThread::run (this=0x2deeef0) at concurrent/qthreadpool.cpp:107
#16 0x0000003acbe7b4cb in QThreadPrivate::start (arg=0x2deeef0) at thread/qthread_unix.cpp:298
#17 0x0000003ac2e07d14 in start_thread (arg=0x7f10f3465700) at pthread_create.c:309
#18 0x0000003ac2af18fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7f10f229c700 (LWP 12553)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x0000003acbe7b927 in wait (time=30000, this=0x2c04530) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2e45e78, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003acbe6f1af in QThreadPoolThread::run (this=0x2e4a520) at concurrent/qthreadpool.cpp:141
#4  0x0000003acbe7b4cb in QThreadPrivate::start (arg=0x2e4a520) at thread/qthread_unix.cpp:298
#5  0x0000003ac2e07d14 in start_thread (arg=0x7f10f229c700) at pthread_create.c:309
#6  0x0000003ac2af18fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7f10f1a9b700 (LWP 12554)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x0000003acbe7b927 in wait (time=30000, this=0x2c04530) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2e45e78, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003acbe6f1af in QThreadPoolThread::run (this=0x2cda280) at concurrent/qthreadpool.cpp:141
#4  0x0000003acbe7b4cb in QThreadPrivate::start (arg=0x2cda280) at thread/qthread_unix.cpp:298
#5  0x0000003ac2e07d14 in start_thread (arg=0x7f10f1a9b700) at pthread_create.c:309
#6  0x0000003ac2af18fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7f10f129a700 (LWP 12555)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x0000003acbe7b927 in wait (time=30000, this=0x2c04530) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2e45e78, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003acbe6f1af in QThreadPoolThread::run (this=0x2b9af30) at concurrent/qthreadpool.cpp:141
#4  0x0000003acbe7b4cb in QThreadPrivate::start (arg=0x2b9af30) at thread/qthread_unix.cpp:298
#5  0x0000003ac2e07d14 in start_thread (arg=0x7f10f129a700) at pthread_create.c:309
#6  0x0000003ac2af18fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f10f0a99700 (LWP 12556)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:218
#1  0x0000003acbe7b927 in wait (time=30000, this=0x2c04530) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2e45e78, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003acbe6f1af in QThreadPoolThread::run (this=0x2ba40b0) at concurrent/qthreadpool.cpp:141
#4  0x0000003acbe7b4cb in QThreadPrivate::start (arg=0x2ba40b0) at thread/qthread_unix.cpp:298
#5  0x0000003ac2e07d14 in start_thread (arg=0x7f10f0a99700) at pthread_create.c:309
#6  0x0000003ac2af18fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f1100393880 (LWP 12550)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:166
#1  0x0000003acbe7b9cb in wait (time=18446744073709551615, this=0x2c9c230) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2e45e78, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x0000003acbe6e89f in QThreadPoolPrivate::waitForDone (this=this@entry=0x2e45df0, msecs=msecs@entry=-1) at concurrent/qthreadpool.cpp:298
#4  0x0000003acbe702f2 in QThreadPool::waitForDone (this=<optimized out>) at concurrent/qthreadpool.cpp:628
#5  0x0000003ace6a60f1 in QHostInfoLookupManager::clear (this=this@entry=0x2bfa8d0) at kernel/qhostinfo.cpp:567
#6  0x0000003ace6a6df5 in QHostInfoLookupManager::~QHostInfoLookupManager (this=0x2bfa8d0, __in_chrg=<optimized out>) at kernel/qhostinfo.cpp:552
#7  0x0000003ace6a7039 in QHostInfoLookupManager::~QHostInfoLookupManager (this=0x2bfa8d0, __in_chrg=<optimized out>) at kernel/qhostinfo.cpp:553
#8  0x0000003ace6a7075 in QGlobalStaticDeleter<QHostInfoLookupManager>::~QGlobalStaticDeleter (this=0x3ace934628, __in_chrg=<optimized out>) at ../../src/corelib/global/qglobal.h:1921
#9  0x0000003ac2a38b61 in __run_exit_handlers (status=1, listp=0x3ac2db06b8, run_list_atexit=run_list_atexit@entry=true) at exit.c:78
#10 0x0000003ac2a38be5 in __GI_exit (status=<optimized out>) at exit.c:100
#11 0x0000003ad0033ac8 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:770
#12 0x0000003ad0e445e8 in KApplication::xioErrhandler (this=0x7fffd20e49b0, dpy=0x245cdf0) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kapplication.cpp:419
#13 0x0000003ac72453ce in _XIOError () from /lib64/libX11.so.6
#14 0x0000003ac72433aa in _XReply () from /lib64/libX11.so.6
#15 0x0000003ac722dde4 in XInternAtom () from /lib64/libX11.so.6
#16 0x0000003ad0eba244 in KXMessages::broadcastMessage (this=0x7fffd20e3240, msg_type_P=0x3ad0fa6db8 "_NET_STARTUP_INFO", message_P=..., screen_P=-1, obsolete_P=<optimized out>) at /usr/src/debug/kdelibs-4.8.1/kdeui/util/kxmessages.cpp:99
#17 0x0000003ad0e5f9cf in KStartupInfo::sendFinish (id_P=...) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kstartupinfo.cpp:535
#18 0x0000003ad0e5faaa in KStartupInfo::appStarted (startup_id=...) at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kstartupinfo.cpp:607
#19 0x0000003ad0e5fb46 in KStartupInfo::appStarted () at /usr/src/debug/kdelibs-4.8.1/kdeui/kernel/kstartupinfo.cpp:590
#20 0x0000003acbf89c0f in QMetaObject::activate (sender=0x282aef0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#21 0x0000003acbf88f1c in QObject::event (this=0x282aef0, e=<optimized out>) at kernel/qobject.cpp:1157
#22 0x0000003acffca2dc in QApplicationPrivate::notify_helper (this=this@entry=0x2453bc0, receiver=receiver@entry=0x282aef0, e=e@entry=0x7fffd20e3a40) at kernel/qapplication.cpp:4550
#23 0x0000003acffce85a in QApplication::notify (this=0x7fffd20e49b0, receiver=0x282aef0, e=0x7fffd20e3a40) at kernel/qapplication.cpp:4411
#24 0x000000000043889a in kt::App::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/ktorrent-4.2.0/ktorrent/app.cpp:99
#25 0x0000003acbf7482e in QCoreApplication::notifyInternal (this=0x7fffd20e49b0, receiver=0x282aef0, event=0x7fffd20e3a40) at kernel/qcoreapplication.cpp:876
#26 0x0000003acbfa5122 in sendEvent (event=0x7fffd20e3a40, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#27 QTimerInfoList::activateTimers (this=0x2470a70) at kernel/qeventdispatcher_unix.cpp:611
#28 0x0000003acbfa22f4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#29 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#30 0x0000003ac26476ac in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#31 0x0000003ac2647ac8 in ?? () from /lib64/libglib-2.0.so.0
#32 0x0000003ac2647b84 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#33 0x0000003acbfa2956 in QEventDispatcherGlib::processEvents (this=0x23fe640, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#34 0x0000003ad0069c0e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#35 0x0000003acbf7382f in QEventLoop::processEvents (this=this@entry=0x7fffd20e3ca0, flags=...) at kernel/qeventloop.cpp:149
#36 0x0000003acbf73ab8 in QEventLoop::exec (this=0x7fffd20e3ca0, flags=...) at kernel/qeventloop.cpp:204
#37 0x0000003acbf782fc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#38 0x0000000000427d1b in main (argc=5, argv=0x7fffd20e4ae8) at /usr/src/debug/ktorrent-4.2.0/ktorrent/main.cpp:177

Reported using DrKonqi
Comment 1 Joris Guisson 2012-03-22 17:22:24 UTC
Crash is in glibc, so not a ktorrent issue. Nothing I can do about.

This bug suggests that upgrading glibc might fix it:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/929219
Comment 2 Joris Guisson 2012-03-24 11:25:33 UTC
*** Bug 296674 has been marked as a duplicate of this bug. ***
Comment 3 Joris Guisson 2012-04-02 19:57:42 UTC
*** Bug 297239 has been marked as a duplicate of this bug. ***
Comment 4 Cvetoslav Ludmiloff 2012-04-09 19:52:22 UTC
Created attachment 70270 [details]
New crash information added by DrKonqi

ktorrent (4.1.3) on KDE Platform 4.8.2 (4.8.2) using Qt 4.8.1

Just start KTorrent with some torrent files previously added and it crashed every time

-- Backtrace (Reduced):
#6  0x00007f00951df9fe in __nscd_get_mapping (type=<optimized out>, key=0x7f009522d990 "hosts", mappedp=0x7f00954704a8) at nscd_helper.c:417
[...]
#8  0x00007f00951dd072 in nscd_gethst_r (key=0x7f0030002ac8 "tracker.zamunda.net", keylen=20, type=GETHOSTBYNAME, resultbuf=0x7f0036140500, buffer=0x7f0036140170 "P\003\024\066", buflen=512, result=0x7f0036140550, h_errnop=0x7f0036140570) at nscd_gethst_r.c:147
#9  0x00007f00951dd957 in __nscd_gethostbyname2_r (name=0x7f0030002ac8 "tracker.zamunda.net", af=<optimized out>, resultbuf=0x7f0036140500, buffer=0x7f0036140170 "P\003\024\066", buflen=512, result=0x7f0036140550, h_errnop=0x7f0036140570) at nscd_gethst_r.c:62
#10 0x00007f00951bf96a in __gethostbyname2_r (name=0x7f0030002ac8 "tracker.zamunda.net", af=2, resbuf=0x7f0036140500, buffer=0x7f0036140170 "P\003\024\066", buflen=512, result=0x7f0036140550, h_errnop=0x7f0036140570) at ../nss/getXXbyYY_r.c:194
#11 0x00007f009517e60a in gaih_inet (name=0x7f0030002ac8 "tracker.zamunda.net", service=<optimized out>, req=0x7f00361406b0, pai=<optimized out>, naddrs=0x7f0036140760) at ../sysdeps/posix/getaddrinfo.c:581