Bug 177891

Summary: crashs on start up with "strcpy out of range" error message
Product: [Applications] amarok Reporter: Stefan Tjarks <stefan>
Component: generalAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: lfranchi
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Stefan Tjarks 2008-12-16 11:07:26 UTC
Version:           2.0-1 (using KDE 4.1.3)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Updated amarok 1.4.10 to 2.0-1 from Debian PPC experimental repository. Command:

  aptitude -t experimental install amarok

When starting Amarok the logo shows up and an error message pops up saying:
  KLibLoader could not load the plugin:
  libamarok_collection-sqlcollection
  Error message:
  QLibrary::load_sys: Cannot load /usr/lib  /kde4/libamarok_collection-sqlcollection.so (/usr/lib/kde4/libamarok_collection-sqlcollection.so: R_PPC_REL24 relocation at 0x094276a0 for symbol `strcpy' out of range)

Starting amarok with debug flag gives following output to the terminal:

amarok(4753) Phonon::KdePlatformPlugin::createBackend: using backend:  "Xine"
amarok: END__: static void App::handleCliArgs() - Took 0.0013s
amarok: END__: virtual int App::newInstance() - Took 0.0022s
amarok: BEGIN: void DaapCollectionFactory::connectToManualServers()
amarok: END__: void DaapCollectionFactory::connectToManualServers() - Took 0.0004s
amarok: END__: void CollectionManager::init() - Took 5.8s
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Shoutcast Service"
"" library                       : "amarok_service_shoutcast"
"" desktopEntryPath              : "amarok_service_shoutcast.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "ShoutcastService"
"" X-KDE-Amarok-authors          : ("Nikolaj Hald Nielsen")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: [PluginManager] Trying to load:  "amarok_service_jamendo"
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Jamendo Service"
"" library                       : "amarok_service_jamendo"
"" desktopEntryPath              : "amarok_service_jamendo.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "JamendoService"
"" X-KDE-Amarok-authors          : ("Nikolaj Hald Nielsen")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: [PluginManager] Trying to load:  "amarok_service_ampache"
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Ampache Service"
"" library                       : "amarok_service_ampache"
"" desktopEntryPath              : "amarok_service_ampache.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "AmpacheService"
"" X-KDE-Amarok-authors          : ("Nikolaj Hald Nielsen")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: [PluginManager] Trying to load:  "amarok_service_opmldirectory"
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Opml Directory Service"
"" library                       : "amarok_service_opmldirectory"
"" desktopEntryPath              : "amarok_service_opmldirectory.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "JamendoService"
"" X-KDE-Amarok-authors          : ("Nikolaj Hald Nielsen")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: [PluginManager] Trying to load:  "amarok_service_mp3tunes"
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Mp3tunes Service"
"" library                       : "amarok_service_mp3tunes"
"" desktopEntryPath              : "amarok_service_mp3tunes.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "Mp3tunesService"
"" X-KDE-Amarok-authors          : ("Nikolaj Hald Nielsen")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: [PluginManager] Trying to load:  "amarok_service_magnatunestore"
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Magnatune Store"
"" library                       : "amarok_service_magnatunestore"
"" desktopEntryPath              : "amarok_service_magnatunestore.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "MagnatuneStore"
"" X-KDE-Amarok-authors          : ("Nikolaj Hald Nielsen")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: [PluginManager] Trying to load:  "amarok_service_lastfm"
amarok: [PluginManager]
"" PluginManager Service Info:
"" ---------------------------
"" name                          : "Last.fm Service"
"" library                       : "amarok_service_lastfm"
"" desktopEntryPath              : "amarok_service_lastfm.desktop"
"" X-KDE-Amarok-plugintype       : "service"
"" X-KDE-Amarok-name             : "LastFmService"
"" X-KDE-Amarok-authors          : ("Shane King")
"" X-KDE-Amarok-rank             : "100"
"" X-KDE-Amarok-version          : "1"
"" X-KDE-Amarok-framework-version: "38"

amarok:  Got hold of a valid plugin
amarok:  Got hold of a valid factory
amarok: END__: void ServicePluginManager::collect() - Took 6.2s
amarok: BEGIN: Playlist::Actions::Actions(QObject*)
amarok:   [Playlist::Actions] Dynamic mode:    false
amarok:   [Playlist::Actions] Repeat enabled:  false
amarok:   [Playlist::Actions] Random enabled:  false
amarok:   [Playlist::Actions] Track mode:      false
amarok:   [Playlist::Actions] Album mode:      false
amarok: END__: Playlist::Actions::Actions(QObject*) - Took 0.0073s
amarok: END__: Playlist::Model::Model() - Took 7.6s
amarok: BEGIN: virtual void Amarok::PlayPauseAction::engineStateChanged(Phonon::State, Phonon::State)
amarok:    NEWSTATE:  0 OLDSTATE:  1
amarok: END__: virtual void Amarok::PlayPauseAction::engineStateChanged(Phonon::State, Phonon::State) - Took 0.0026s
amarok:  setCurrentItem:  0
amarok:  setCurrentItem:  0
amarok:  setCurrentItem:  0
amarok:  setCurrentItem:  0
amarok: END__: MainWindow::MainWindow() - Took 8.4s
amarok: BEGIN: Amarok::TrayIcon::TrayIcon(QWidget*)
amarok: END__: Amarok::TrayIcon::TrayIcon(QWidget*) - Took 0.0093s
amarok: BEGIN: void MainWindow::init()
QLayout: Attempting to add QLayout "" to MainWindow "MainWindow", which already has a layout
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
Object::connect: No such slot VolumeWidget::setVolume(int)
amarok: BEGIN: Playlist::GroupingProxy::GroupingProxy()
amarok: END__: Playlist::GroupingProxy::GroupingProxy() - Took 0.017s
amarok: BEGIN: Playlist::PrettyItemDelegate::PrettyItemDelegate(QObject*)
amarok: END__: Playlist::PrettyItemDelegate::PrettyItemDelegate(QObject*) - Took 0.00049s
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
QWidget::insertAction: Attempt to insert null action
Object::connect: No such slot MainWindow::slotMenuActivated(int)
Object::connect:  (receiver name: 'MainWindow')
QWidget::insertAction: Attempt to insert null action
Object::connect: No such slot MainWindow::slotMenuActivated(int)
Object::connect:  (receiver name: 'MainWindow')
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
QFSFileEngine::open: No file name specified
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok(4753) Plasma::Theme::imagePath: Theme says: bad image path  "widgets/background"
amarok: BEGIN: void Context::ColumnContainment::loadInitialConfig()
amarok:      QSize(-1, -1)
amarok:      current columns:  1
amarok:      current rows:  1
amarok:      max columns:  2
amarok:      max rows:  5
amarok: END__: void Context::ColumnContainment::loadInitialConfig() - Took 0.0083s
amarok(4753) Plasma::Applet::save: saving to "1"
amarok: BEGIN: void MainWindow::createContextView(Plasma::Containment*)
amarok: BEGIN: ContextSubject::ContextSubject()
amarok: END__: ContextSubject::ContextSubject() - Took 0.029s
amarok: BEGIN: void Context::ContextView::setContainment(Plasma::Containment*)
amarok(4753) Context::ContextView::setContainment: "      " Line:  603
amarok: END__: void Context::ContextView::setContainment(Plasma::Containment*) - Took 0.0015s
amarok(4753) Plasma::ThemePrivate::config: using theme for app "amarok"
amarok: BEGIN: void Context::ContextView::addContainment(const QVariantList&)
amarok: BEGIN: void Context::ColumnContainment::loadInitialConfig()
amarok:          QSize(-1, -1)
amarok:          current columns:  1
amarok:          current rows:  1
amarok:          max columns:  2
amarok:          max rows:  5
amarok: END__: void Context::ColumnContainment::loadInitialConfig() - Took 0.021s
amarok(4753) Plasma::Applet::save: saving to "2"
amarok:        x:  125
amarok:        y:  0
amarok:        new size:  QSizeF(120, 90)
amarok:        new pos:  QPointF(125, 0)
amarok: END__: void Context::ContextView::addContainment(const QVariantList&) - Took 0.43s
amarok: BEGIN: void Context::ContextView::addContainment(const QVariantList&)
amarok: BEGIN: void Context::ColumnContainment::loadInitialConfig()
amarok:          QSize(-1, -1)
amarok:          current columns:  1
amarok:          current rows:  1
amarok:          max columns:  2
amarok:          max rows:  5
amarok: END__: void Context::ColumnContainment::loadInitialConfig() - Took 0.024s
amarok(4753) Plasma::Applet::save: saving to "3"
amarok:        x:  0
amarok:        y:  95
amarok:        new size:  QSizeF(120, 90)
amarok:        new pos:  QPointF(0, 95)
amarok: END__: void Context::ContextView::addContainment(const QVariantList&) - Took 0.13s
amarok: BEGIN: void Context::ContextView::addContainment(const QVariantList&)
amarok: BEGIN: void Context::ColumnContainment::loadInitialConfig()
amarok:          QSize(-1, -1)
amarok:          current columns:  1
amarok:          current rows:  1
amarok:          max columns:  2
amarok:          max rows:  5
amarok: END__: void Context::ColumnContainment::loadInitialConfig() - Took 0.027s
amarok(4753) Plasma::Applet::save: saving to "4"
amarok:        x:  125
amarok:        y:  95
amarok:        new size:  QSizeF(120, 90)
amarok:        new pos:  QPointF(125, 95)
amarok: END__: void Context::ContextView::addContainment(const QVariantList&) - Took 0.13s
amarok: BEGIN: void Context::ContextView::setContainment(Plasma::Containment*)
amarok: END__: void Context::ContextView::setContainment(Plasma::Containment*) - Took 0.00058s
amarok: BEGIN: void Context::ContextView::showHome()
amarok: BEGIN: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&)
amarok:          adding current track
amarok: BEGIN: virtual void CurrentTrack::init()
link XMLID_5_ hasn't been detected!
Couldn't resolve property: radialGradient3709
link XMLID_9_ hasn't been detected!
link XMLID_9_ hasn't been detected!
amarok: BEGIN: CurrentEngine::CurrentEngine(QObject*, const QList<QVariant>&)
amarok: BEGIN: void CurrentEngine::update()
amarok: END__: void CurrentEngine::update() - Took 0.00079s
amarok: END__: CurrentEngine::CurrentEngine(QObject*, const QList<QVariant>&) - Took 0.042s
amarok: BEGIN: void CurrentTrack::dataUpdated(const QString&, const QHash<QString, QVariant>&)
amarok(4753) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated
amarok: END__: void CurrentTrack::dataUpdated(const QString&, const QHash<QString, QVariant>&) - Took 0.00075s
amarok: END__: virtual void CurrentTrack::init() - Took 0.59s
amarok: BEGIN: virtual void CurrentTrack::constraintsEvent(Plasma::Constraints)
link XMLID_5_ hasn't been detected!
Couldn't resolve property: radialGradient3709
link XMLID_9_ hasn't been detected!
link XMLID_9_ hasn't been detected!
amarok: END__: virtual void CurrentTrack::constraintsEvent(Plasma::Constraints) - Took 1.2s
amarok: BEGIN: Plasma::Applet* Context::ColumnContainment::addApplet(Plasma::Applet*, const QPointF&)
amarok: BEGIN: bool Context::ColumnContainment::insertInGrid(Plasma::Applet*)
amarok(4753) Context::ColumnContainment::insertInGrid: "            " Line:  602
amarok:              using false width of 204 instead of real: 1 500 500
amarok:              applet height:  150
amarok:              applet inserted at:  0 0
amarok:              applet rowSpan : 1
amarok: END__: bool Context::ColumnContainment::insertInGrid(Plasma::Applet*) - Took 0.0089s
amarok: END__: Plasma::Applet* Context::ColumnContainment::addApplet(Plasma::Applet*, const QPointF&) - Took 0.01s
amarok:          plugins.size():  0
amarok: END__: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&) - Took 1.9s
amarok: BEGIN: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&)
amarok:          plugins.size():  0
amarok: END__: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&) - Took 0.0095s
amarok: BEGIN: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&)
amarok:          plugins.size():  0
amarok: END__: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&) - Took 0.00046s
amarok: BEGIN: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&)
amarok:          plugins.size():  0
amarok: END__: virtual void Context::ColumnContainment::loadConfig(const KConfigGroup&) - Took 0.00043s
amarok: BEGIN: virtual void CurrentEngine::message(const Context::ContextState&)
amarok: END__: virtual void CurrentEngine::message(const Context::ContextState&) - Took 0.0009s
amarok: END__: void Context::ContextView::showHome() - Took 1.9s
amarok: END__: void MainWindow::createContextView(Plasma::Containment*) - Took 4.5s
amarok: BEGIN: Creating browsers. Please report long start times!
amarok: BEGIN: CollectionBrowser
amarok:       [CollectionTreeItemModel] Collection root has  0  children
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
amarok: BEGIN: void MainWindow::slotShrinkBrowsers(int)
amarok: END__: void MainWindow::slotShrinkBrowsers(int) - Took 0.033s
amarok: END__: CollectionBrowser - Took 1s
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
link XMLID_7_ hasn't been detected!
link XMLID_7_ hasn't been detected!
Couldn't resolve property: radialGradient3986
amarok:      keys  ()
KCrash: Application 'amarok' crashing...
Comment 1 Leo Franchi 2008-12-17 02:47:26 UTC
seems like your upstream packagers built libamarok_collection_sqlcollection without -fPIC, which means they are not built with position independent support.