Bug 166182 - amarok crashes when scanning collection directory
Summary: amarok crashes when scanning collection directory
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 23:44 UTC by Mauro Faccenda
Modified: 2008-07-11 01:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
amarok.log as described in comment #3 (24.31 KB, text/plain)
2008-07-10 13:42 UTC, Mauro Faccenda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro Faccenda 2008-07-09 23:44:52 UTC
Version:           2.0-alpha1 (using KDE 3.5.9)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)  
OS:                Linux

After installing the new Amarok 2.0-alpha1 (1.83) from sources (tarball) provided by Lydia Pintscher, the program starts fine, but when I add a collecion dir and tell Amarok to scan, it crashes with the following error messages.

Notes: I'm running KDE3, but Amarok was compiled with the KDE4.1beta2 libs (4.0.83), provided by Ubuntu. All the dependecies was installed by packages from Ubuntu's repositories or from this other repository:
http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu/

Only taglib 1.5 that was installed from sources with default parameters.

And the instructions that I followed for building Amarok, I got from: http://amarok.kde.org/wiki/2.0_Development_HowTo

Here follows the crash report that Amarok leaves:

----- BEGIN -----
amarok(25440) KDE::ProgressBar::~ProgressBar: ""
Amarok is crashing!
[setting tty state failed in terminal_inferior: Input/output error]
1.83 [___stripped][validity: 0.62][frames: 106]
Amarok has crashed! We are terribly sorry about this :(

But, all is not lost! You could potentially help us fix the crash. Information describing the crash is below, so just click send, or if you have time, write a brief description of how the crash happened first.

Many thanks.







The information below is to help the developers identify the problem, please do not modify it.



======== DEBUG INFORMATION  =======
Version:    1.83
Build date: Jul  9 2008
CC version: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
KDElibs:    4.00.83 (KDE 4.0.83 (KDE 4.1 Beta2)
Qt:         4.4.0
TagLib:     1.5.0
CPU cores:  1

==== file `which amarok` =======
/usr/lib/kde4/bin//amarok: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped


==== (gdb) bt =====================
[Thread debugging using libthread_db enabled]
[New Thread 0xb438c720 (LWP 25440)]
[New Thread 0xad678b90 (LWP 25533)]
[New Thread 0xade79b90 (LWP 25483)]
[New Thread 0xae67ab90 (LWP 25479)]
[New Thread 0xafe7ab90 (LWP 25458)]
[New Thread 0xaf679b90 (LWP 25457)]
[New Thread 0xb095cb90 (LWP 25448)]
[New Thread 0xb115db90 (LWP 25447)]
[New Thread 0xb19a0b90 (LWP 25446)]
[New Thread 0xb2204b90 (LWP 25443)]
0xb7f80410 in __kernel_vsyscall ()
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4948c07 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb4635e7f in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb46363ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb5e06f98 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#5  0xb51c91b5 in ?? () from /usr/lib/libQtGui.so.4
#6  0xb5dda92d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#7  0xb5ddaabd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#8  0xb5ddcd3d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#9  0xb5135567 in QApplication::exec () from /usr/lib/libQtGui.so.4
#10 0x0804be3f in _start ()
==== (gdb) thread apply all bt ====
Thread 10 (Thread 0xb2204b90 (LWP 25443)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4b25dd2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb2c83bbb in ?? () from /usr/lib/libxine.so.1
Thread 9 (Thread 0xb19a0b90 (LWP 25446)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4948c07 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb1a0028b in ?? () from /usr/lib/xine/plugins/1.20/xineplug_ao_out_alsa.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 8 (Thread 0xb115db90 (LWP 25447)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4b25aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb2c94254 in ?? () from /usr/lib/libxine.so.1
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Thread 7 (Thread 0xb095cb90 (LWP 25448)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4948c07 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb4635e7f in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb46363ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb5e06f98 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#5  0xb5dda92d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#6  0xb5ddaabd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#7  0xb5cecf49 in QThread::exec () from /usr/lib/libQtCore.so.4
#8  0xb2ce3d02 in ?? () from /usr/lib/kde4/lib/kde4/phonon_xine.so
#9  0xb5cf0612 in ?? () from /usr/lib/libQtCore.so.4
#10 0xb4b214fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb4952e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 6 (Thread 0xaf679b90 (LWP 25457)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4b25aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5cf1146 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb6acafad in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#4  0xb6acf69c in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#5  0xb6aca66b in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#6  0xb6acf7bf in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#7  0xb6acb1d3 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#8  0xb6acf7e1 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#9  0xb6acb1d3 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#10 0xb6acd9dd in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#11 0xb6acdb05 in ThreadWeaver::Thread::run () from /usr/lib/kde4/lib/libthreadweaver.so.4
#12 0xb5cf0612 in ?? () from /usr/lib/libQtCore.so.4
#13 0xb4b214fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0xb4952e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 5 (Thread 0xafe7ab90 (LWP 25458)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4b25aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5cf1146 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb6acafad in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#4  0xb6acf69c in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#5  0xb6aca66b in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#6  0xb6acf7bf in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#7  0xb6acb1d3 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#8  0xb6acf7e1 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#9  0xb6acb1d3 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#10 0xb6acd9dd in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#11 0xb6acdb05 in ThreadWeaver::Thread::run () from /usr/lib/kde4/lib/libthreadweaver.so.4
#12 0xb5cf0612 in ?? () from /usr/lib/libQtCore.so.4
#13 0xb4b214fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0xb4952e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 4 (Thread 0xae67ab90 (LWP 25479)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4b25aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb5cf1146 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#3  0xb6acafad in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#4  0xb6acf69c in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#5  0xb6aca66b in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#6  0xb6acf7bf in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#7  0xb6acb1d3 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#8  0xb6acd9dd in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#9  0xb6acdb05 in ThreadWeaver::Thread::run () from /usr/lib/kde4/lib/libthreadweaver.so.4
#10 0xb5cf0612 in ?? () from /usr/lib/libQtCore.so.4
#11 0xb4b214fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#12 0xb4952e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 3 (Thread 0xade79b90 (LWP 25483)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4b298eb in waitpid () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb7ea4be0 in Amarok::Crash::crashHandler () at /usr/local/src/amarok-1.83/src/CrashHandler.cpp:254
#3  <signal handler called>
#4  0xb7de06a0 in Dynamic::BiasSolver::generateInitialPlaylist (this=0x88d48a8) at /usr/local/src/amarok-1.83/src/dynamic/BiasSolver.cpp:216
#5  0xb7de0b65 in Dynamic::BiasSolver::initialize (this=0x88d48a8) at /usr/local/src/amarok-1.83/src/dynamic/BiasSolver.cpp:93
#6  0xb7de0cb6 in Dynamic::BiasSolver::run (this=0x88d48a8) at /usr/local/src/amarok-1.83/src/dynamic/BiasSolver.cpp:52
#7  0xb6ace53c in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#8  0xb6ace754 in ThreadWeaver::Job::execute () from /usr/lib/kde4/lib/libthreadweaver.so.4
#9  0xb6acd992 in ?? () from /usr/lib/kde4/lib/libthreadweaver.so.4
#10 0xb6acdb05 in ThreadWeaver::Thread::run () from /usr/lib/kde4/lib/libthreadweaver.so.4
#11 0xb5cf0612 in ?? () from /usr/lib/libQtCore.so.4
#12 0xb4b214fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb4952e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 2 (Thread 0xad678b90 (LWP 25533)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb494b881 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb5dbb0e7 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb5cf0612 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb4b214fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0xb4952e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 1 (Thread 0xb438c720 (LWP 25440)):
#0  0xb7f80410 in __kernel_vsyscall ()
#1  0xb4948c07 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0xb4635e7f in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb46363ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb5e06f98 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#5  0xb51c91b5 in ?? () from /usr/lib/libQtGui.so.4
#6  0xb5dda92d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#7  0xb5ddaabd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#8  0xb5ddcd3d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#9  0xb5135567 in QApplication::exec () from /usr/lib/libQtGui.so.4
#10 0x0804be3f in _start ()
#0  0xb7f80410 in __kernel_vsyscall ()
Comment 1 Mauro Faccenda 2008-07-09 23:47:17 UTC
adding some more informations:

the filesystem is ext3 and the directory have no more then 40 mp3 files (plus some .jpg and .pdf).
Comment 2 Seb Ruiz 2008-07-10 01:06:18 UTC
You'll need to recompile with debugging enabled.
Also, please make sure that you remove any old collections from the file system and that your kde3 and kde4 are not conflicting.

Since there is nothing we can do without a valid backtrace, I'm going to close the bug. Please reopen it once you have further information.
Comment 3 Mauro Faccenda 2008-07-10 13:41:44 UTC
Ok. Here is a full log of the following execution:

1- rm -rf ~/.kde4
2- /usr/lib/kde4/bin/amarok &> amarok.log
3- I pointed the collection to the directory where I have 36 mp3 files (in subdirectories).
4- The, I run "tools->rescan collection"

when the progress bar hits 19%, amarok crashes.

I'll attach the amarok.log file.
Comment 4 Mauro Faccenda 2008-07-10 13:42:48 UTC
Created attachment 26010 [details]
amarok.log as described in comment #3
Comment 5 Seb Ruiz 2008-07-11 00:44:28 UTC
Here's the money taker:
#4  0xb7de06a0 in Dynamic::BiasSolver::generateInitialPlaylist (this=0x88d48a8) at /usr/local/src/amarok-1.83/src/dynamic/BiasSolver.cpp:216
#5  0xb7de0b65 in Dynamic::BiasSolver::initialize (this=0x88d48a8) at /usr/local/src/amarok-1.83/src/dynamic/BiasSolver.cpp:93 
Comment 6 Seb Ruiz 2008-07-11 01:02:10 UTC
Fixed according to Kopophex.