Bug 236333 - amarok crash while setting similar artist applet [@ Collections::SqlQueryMaker::reset]
Summary: amarok crash while setting similar artist applet [@ Collections::SqlQueryMake...
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Context View/Similar Artists (show other bugs)
Version: 2.3.0.90
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 17:02 UTC by omega
Modified: 2010-05-07 10:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.3.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description omega 2010-05-04 17:02:27 UTC
Application: amarok (2.3.0.90)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
crash step:

-open amarok
-go to "similar artist settings"
-increase max number of artist shown
-click on OK button
-crash

 -- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fdb59cce7a0 (LWP 1831))]

Thread 21 (Thread 0x7fdb3d0bd710 (LWP 1869)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fdb4344c081 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 20 (Thread 0x7fdb3c8bc710 (LWP 1874)):
#0  0x00007fdb56c0ef53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=11) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fdb500ee4a9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fdb500ee8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007fdb57579566 in QEventDispatcherGlib::processEvents (this=0x258be60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007fdb5754e992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fdb5754ed6c in QEventLoop::exec (this=0x7fdb3c8bbd50, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fdb57458d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007fdb436a8440 in Phonon::Xine::XineThread::run (this=0x2618a70) at ../../xine/xinethread.cpp:143
#8  0x00007fdb5745b775 in QThreadPrivate::start (arg=0x2618a70) at thread/qthread_unix.cpp:248
#9  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 19 (Thread 0x7fdb32ea3710 (LWP 1883)):
#0  0x00007fdb56c0ef53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fdb379df41f in ?? () from /usr/lib/libpulse.so.0
#2  0x00007fdb379ced86 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007fdb379d0809 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007fdb379d08c0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007fdb379df21b in ?? () from /usr/lib/libpulse.so.0
#6  0x00007fdb3779e0e8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#7  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#8  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 18 (Thread 0x7fdb36c9e710 (LWP 1884)):
#0  0x00007fdb56c0ef53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fdb37dfa915 in ?? () from /usr/lib/xine/plugins/1.27/xineplug_ao_out_alsa.so
#2  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 17 (Thread 0x7fdb3649d710 (LWP 1885)):
#0  __pthread_mutex_lock_full (mutex=0x7fdb005fccd0) at pthread_mutex_lock.c:303
#1  0x00007fdb3779d52e in pa_mutex_lock () from /usr/lib/libpulsecommon-0.9.21.so
#2  0x00007fdb36ea8496 in ?? () from /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
#3  0x00007fdb43bd717c in ?? () from /usr/lib/libasound.so.2
#4  0x00007fdb43b98a3a in ?? () from /usr/lib/libasound.so.2
#5  0x00007fdb43bd74da in ?? () from /usr/lib/libasound.so.2
#6  0x00007fdb37dfc180 in ?? () from /usr/lib/xine/plugins/1.27/xineplug_ao_out_alsa.so
#7  0x00007fdb4345ad56 in ?? () from /usr/lib/libxine.so.1
#8  0x00007fdb4345cab5 in ?? () from /usr/lib/libxine.so.1
#9  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7fdb35891710 (LWP 1886)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb4345ce23 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7fdb35090710 (LWP 1887)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb4345ce23 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7fdb33793710 (LWP 2949)):
#0  0x00007fdb55069a2d in __pthread_mutex_unlock_usercnt (mutex=0x343a7f8) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x343a7f8) at pthread_mutex_unlock.c:290
#2  0x00007fdb500edff1 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0x00007fdb500ee318 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007fdb500ee8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007fdb57579566 in QEventDispatcherGlib::processEvents (this=0x343a230, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#6  0x00007fdb5754e992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007fdb5754ed6c in QEventLoop::exec (this=0x7fdb33792d70, flags=) at kernel/qeventloop.cpp:201
#8  0x00007fdb57458d59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#9  0x00007fdb5752f178 in QInotifyFileSystemWatcherEngine::run (this=0x3439590) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007fdb5745b775 in QThreadPrivate::start (arg=0x3439590) at thread/qthread_unix.cpp:248
#11 0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fdb27796710 (LWP 2950)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb51fc7ca6 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007fdb51fc7ce9 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fdb2559a710 (LWP 2951)):
#0  0x00007fdb56c13fb3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fdb434752c5 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007fdb43459c99 in ?? () from /usr/lib/libxine.so.1
#3  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fdb2475d710 (LWP 2954)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb5745c72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fdb53ab0026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3a39590, th=0x3a3a430) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fdb53ab26ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x3a3a430) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fdb53ab0bff in ThreadWeaver::ThreadRunHelper::run (this=0x7fdb2475cdc0, parent=0x3a39590, th=0x3a3a430) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007fdb53ab1168 in ThreadWeaver::Thread::run (this=0x3a3a430) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007fdb5745b775 in QThreadPrivate::start (arg=0x3a3a430) at thread/qthread_unix.cpp:248
#8  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7fdb23f5c710 (LWP 2955)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb5745c72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fdb53ab0026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3a39590, th=0x7fdb381e09e0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fdb53ab26ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x7fdb381e09e0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fdb53ab26c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x7fdb381e09e0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fdb53ab0bff in ThreadWeaver::ThreadRunHelper::run (this=0x7fdb23f5bdc0, parent=0x3a39590, th=0x7fdb381e09e0) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007fdb53ab1168 in ThreadWeaver::Thread::run (this=0x7fdb381e09e0) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007fdb5745b775 in QThreadPrivate::start (arg=0x7fdb381e09e0) at thread/qthread_unix.cpp:248
#9  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fdb1fbc2710 (LWP 2956)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb5745c72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fdb53ab0026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3a39590, th=0x3538150) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fdb53ab26ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x3538150) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fdb53ab26c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x3538150) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fdb53ab0bff in ThreadWeaver::ThreadRunHelper::run (this=0x7fdb1fbc1dc0, parent=0x3a39590, th=0x3538150) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007fdb53ab1168 in ThreadWeaver::Thread::run (this=0x3538150) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007fdb5745b775 in QThreadPrivate::start (arg=0x3538150) at thread/qthread_unix.cpp:248
#9  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fdb1d0ce710 (LWP 2957)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb5745c72b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x3a39f60, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fdb53ab0026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x3a39590, th=0x35976f0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fdb53ab26ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x35976f0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fdb53ab26c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x3a38c90, th=0x35976f0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fdb53ab0bff in ThreadWeaver::ThreadRunHelper::run (this=0x7fdb1d0cddc0, parent=0x3a39590, th=0x35976f0) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007fdb53ab1168 in ThreadWeaver::Thread::run (this=0x35976f0) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007fdb5745b775 in QThreadPrivate::start (arg=0x35976f0) at thread/qthread_unix.cpp:248
#9  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fdb12836710 (LWP 2970)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb5331b2a6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fdb535f9220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007fdb5331b2e9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fdb536072ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fdb087be710 (LWP 6169)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb4344f93b in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb434559dd in ?? () from /usr/lib/libxine.so.1
#3  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fdb07b34710 (LWP 6170)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fdb4345b017 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb43468045 in ?? () from /usr/lib/libxine.so.1
#3  0x00007fdb0693110a in ?? () from /usr/lib/xine/plugins/1.27/xineplug_decode_mad.so
#4  0x00007fdb4345709a in ?? () from /usr/lib/libxine.so.1
#5  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fdb07333710 (LWP 6171)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb4345ff6b in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fdb05f0e710 (LWP 6173)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdb4344f853 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fdb210e04f7 in ?? () from /usr/lib/xine/plugins/1.27/xineplug_dmx_audio.so
#3  0x00007fdb210e0ddd in ?? () from /usr/lib/xine/plugins/1.27/xineplug_dmx_audio.so
#4  0x00007fdb43465357 in ?? () from /usr/lib/libxine.so.1
#5  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fdb0570d710 (LWP 6174)):
#0  0x00007fdb379cf8d0 in pa_mainloop_prepare () from /usr/lib/libpulse.so.0
#1  0x00007fdb379d07fa in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#2  0x00007fdb379d08c0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#3  0x00007fdb379df21b in ?? () from /usr/lib/libpulse.so.0
#4  0x00007fdb3779e0e8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#5  0x00007fdb550659ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fdb56c1b69d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fdb59cce7a0 (LWP 1831)):
[KCrash Handler]
#5  0x00007fdb53ab1394 in ThreadWeaver::Job::isFinished (this=0x468b120) at ../../../threadweaver/Weaver/Job.cpp:221
#6  0x00007fdb33a3fcd2 in Collections::SqlQueryMaker::reset (this=0x4267f20) at ../../../../../src/core-impl/collections/sqlcollection/SqlQueryMaker.cpp:138
#7  0x00007fdb27bc519c in ArtistWidget::setArtist (this=0x4f57750, nom=<value optimized out>, url=<value optimized out>) at ../../../../../src/context/applets/similarartists/ArtistWidget.cpp:241
#8  0x00007fdb27bc9db6 in SimilarArtistsApplet::artistsUpdate (this=0x35828f0) at ../../../../../src/context/applets/similarartists/SimilarArtistsApplet.cpp:457
#9  0x00007fdb27bca5d8 in SimilarArtistsApplet::dataUpdated (this=0x35828f0, name=<value optimized out>, data=<value optimized out>)
    at ../../../../../src/context/applets/similarartists/SimilarArtistsApplet.cpp:282
#10 0x00007fdb27bcc02e in SimilarArtistsApplet::qt_metacall (this=0x35828f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdd367ef0) at ./SimilarArtistsApplet.moc:87
#11 0x00007fdb57562e3f in QMetaObject::activate (sender=0x35c2560, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x70a2b0) at kernel/qobject.cpp:3293
#12 0x00007fdb54050d37 in Plasma::DataContainer::dataUpdated (this=0x468b120, _t1=<value optimized out>, _t2=<value optimized out>) at ./datacontainer.moc:101
#13 0x00007fdb54050e91 in Plasma::DataContainer::checkForUpdate (this=0x35c2560) at ../../plasma/datacontainer.cpp:167
#14 0x00007fdb540553b7 in Plasma::DataEngine::timerEvent (this=<value optimized out>, event=<value optimized out>) at ../../plasma/dataengine.cpp:393
#15 0x00007fdb5755fa63 in QObject::event (this=0x35ae250, e=0x7fffdd368810) at kernel/qobject.cpp:1212
#16 0x00007fdb57ec422c in QApplicationPrivate::notify_helper (this=0x238d910, receiver=0x35ae250, e=0x7fffdd368810) at kernel/qapplication.cpp:4300
#17 0x00007fdb57eca6fb in QApplication::notify (this=0x7fffdd368b10, receiver=0x35ae250, e=0x7fffdd368810) at kernel/qapplication.cpp:4183
#18 0x00007fdb58faa9da in App::notify (this=0x468b120, receiver=0x0, event=0x4367901) at ../../src/App.cpp:916
#19 0x00007fdb5755006c in QCoreApplication::notifyInternal (this=0x7fffdd368b10, receiver=0x35ae250, event=0x7fffdd368810) at kernel/qcoreapplication.cpp:704
#20 0x00007fdb5757cd42 in QCoreApplication::sendEvent (this=0x236cf60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#21 QTimerInfoList::activateTimers (this=0x236cf60) at kernel/qeventdispatcher_unix.cpp:603
#22 0x00007fdb57579824 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#23 0x00007fdb500ea8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#24 0x00007fdb500ee748 in ?? () from /lib/libglib-2.0.so.0
#25 0x00007fdb500ee8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x00007fdb57579513 in QEventDispatcherGlib::processEvents (this=0x21f9bc0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#27 0x00007fdb57f7446e in QGuiEventDispatcherGlib::processEvents (this=0x468b120, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007fdb5754e992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#29 0x00007fdb5754ed6c in QEventLoop::exec (this=0x7fffdd368ab0, flags=) at kernel/qeventloop.cpp:201
#30 0x00007fdb57552aab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#31 0x0000000000408752 in main (argc=3, argv=0x7fffdd36aa88) at ../../src/main.cpp:237

Possible duplicates by query: bug 235969.

Reported using DrKonqi
Comment 1 Sven Krohlas 2010-05-04 17:21:25 UTC
Very similar backtrace to bug 235443.
Comment 2 Maximilian Kossick 2010-05-06 22:31:26 UTC
commit 61e1838cea44816e73511cd0c1fdfb9c5c3e365d
Author: Maximilian Kossick <maximilian.kossick@googlemail.com>
Date:   Wed May 5 07:16:05 2010 +0200

    added test for crash in SqlQueryMaker::reset
    
    CCBUG: 236333

diff --git a/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.cpp b/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.cpp
index 15d6c4d..3bc663c 100644
--- a/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.cpp
+++ b/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.cpp
@@ -1151,4 +1151,39 @@ TestSqlQueryMaker::testLabelQueryMode()
 
 }
 
+void
+TestSqlQueryMaker::testResetRunningQuery()
+{
+    for( int i = 0; i < 10; i++ )
+    {
+    int iteration = 0;
+    bool queryNotDoneYet = true;
+    Collections::SqlQueryMaker *qm = new Collections::SqlQueryMaker( m_collection );
+
+    //wait one second per query in total, that should be enough for it to complete
+    do
+    {
+        QSignalSpy spy( qm, SIGNAL(queryDone()) );
+        qm->setQueryType( Collections::QueryMaker::Track );
+        qm->addFilter( Meta::valTitle, QString::number( iteration), false, false );
+        qm->run();
+        //wait 2 msec more per iteration, might have to be tweaked
+        if( iteration > 0 )
+        {
+            QTest::qWait( 2 * iteration );
+        }
+        qm->reset();
+        queryNotDoneYet = ( spy.count() == 0 );
+        if( iteration > 50 )
+        {
+            break;
+        }
+        QTest::qWait( 1000 - 2 * iteration );
+        iteration++;
+    } while ( queryNotDoneYet );
+    //delete qm;
+    qDebug() << "Iterations: " << iteration;
+    }
+}
+
 #include "TestSqlQueryMaker.moc"
diff --git a/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.h b/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.h
index f3c3d2c..aafd1c0 100644
--- a/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.h
+++ b/tests/core-impl/collections/sqlcollection/TestSqlQueryMaker.h
@@ -91,6 +91,8 @@ private slots:
     void testLabelQueryMode_data();
     void testLabelQueryMode();
 
+    void testResetRunningQuery();
+
 private:
     Collections::SqlCollection *m_collection;
     SqlMountPointManagerMock *m_mpm;
Comment 3 Maximilian Kossick 2010-05-06 22:31:27 UTC
commit eab0793211369e70d6ba004f8b3d5e6092fe27ca
Author: Maximilian Kossick <maximilian.kossick@googlemail.com>
Date:   Thu May 6 18:31:36 2010 +0200

    do not keep querymakers around if you do not have to. fixes symptom (crash) but not the root cause
    
    CCBUG: 236333

diff --git a/src/context/applets/similarartists/ArtistWidget.cpp b/src/context/applets/similarartists/ArtistWidget.cpp
index cdb4d0e..4694fc7 100644
--- a/src/context/applets/similarartists/ArtistWidget.cpp
+++ b/src/context/applets/similarartists/ArtistWidget.cpp
@@ -46,7 +46,6 @@
  */
 ArtistWidget::ArtistWidget( QWidget *parent )
     : QWidget( parent )
-    , m_qm( 0 )
 {
 
     // set a fixed size for all widget, for harmonize the similar artists applet display
@@ -237,22 +236,18 @@ ArtistWidget::setArtist( const QString &nom, const KUrl &url )
     //Figure out of this applet is present in the local collection, and show the "show in collection" button if so
     m_navigateButton->hide();
 
-    if( m_qm )
-        m_qm->reset();
-    else
-    {
-        Collections::Collection *coll = CollectionManager::instance()->primaryCollection();
-        m_qm = coll->queryMaker();
-    }
+    Collections::Collection *coll = CollectionManager::instance()->primaryCollection();
+    Collections::QueryMaker *qm = coll->queryMaker();
     
-    m_qm->setQueryType( Collections::QueryMaker::Artist );
-    m_qm->addFilter( Collections::QueryMaker::ArtistFilter, m_name );
-    m_qm->limitMaxResultSize( 1 );
+    qm->setQueryType( Collections::QueryMaker::Artist );
+    qm->addFilter( Collections::QueryMaker::ArtistFilter, m_name );
+    qm->limitMaxResultSize( 1 );
+    qm->setAutoDelete( true );
 
-    connect( m_qm, SIGNAL( newResultReady( QString, Meta::ArtistList ) ),
+    connect( qm, SIGNAL( newResultReady( QString, Meta::ArtistList ) ),
             SLOT( resultReady( QString, Meta::ArtistList ) ), Qt::QueuedConnection );
 
-    m_qm->run();
+    qm->run();
     
 }
 
diff --git a/src/context/applets/similarartists/ArtistWidget.h b/src/context/applets/similarartists/ArtistWidget.h
index 23157e6..f5f7a59 100644
--- a/src/context/applets/similarartists/ArtistWidget.h
+++ b/src/context/applets/similarartists/ArtistWidget.h
@@ -168,13 +168,6 @@ private:
      */
     KJob *m_imageJob;
 
-    /**
-     * QueryMaker used for checking if a given artist exists in the local collection.
-     */
-    Collections::QueryMaker *m_qm;
-
-
-
 private slots:
     /**
      * Put the image of the artist in the QPixMap