segfault while using the song editor

Use this category to discuss anything related to the development of Guayadeque.
Locked
monojp
Posts: 4
Joined: Fri Nov 11, 2011 1:28 am

segfault while using the song editor

Post by monojp »

I get this segfault all the time when trying to edit id3 tag infos. It just happens right after opening the song editor dialog.

I deleted the ~/.guayadeque dir right before starting the program to ensure it's not a faulty config. The songs I'm trying to edit are on an external media drive using ext4.

$ gdb guayadeque
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/bin/guayadeque...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/guayadeque
[Thread debugging using libthread_db enabled]
09:23:57 AM: Deleted stale lock file '/home/martin/.guayadeque/.guayadeque-martin'.
09:23:57 AM: Initialized locale ( en_US )
09:23:57 AM: Mount Added...
09:23:57 AM: Mount Path: /media/music/
09:23:57 AM: IconStr: '. GThemedIcon drive-harddisk-usb drive-harddisk drive'
09:23:57 AM: Mount Added...
09:23:57 AM: mount without volume?
09:23:57 AM: MediaViewer 'My Music' => '4EBCE9AD' ==>> 00000000
09:23:57 AM: Created collection folder '/home/martin/.guayadeque/Collections/4EBCE9AD'
09:23:57 AM: Library Db Version 0
09:23:57 AM: Updating database version to 21
09:23:57 AM: SetViewMode -1 => 0
09:23:57 AM: guLibPanel::IniPanelData( 13101 )
09:23:57 AM: guLibPanel::DoTextSearch( '' )
09:23:57 AM: Mount: 'music' => '/media/music/'
09:23:57 AM: OnCollectionCommand 13100 0 0 1
09:23:57 AM: Mount: 'music' => '/media/music/'
[New Thread 0x7fffe9b11700 (LWP 11439)]
09:23:58 AM: guMainFrame::OnVolumeMonitorUpdated
09:23:58 AM: Mount: 'music' => '/media/music/'
09:23:58 AM: Updating the podcasts...
09:23:58 AM: Indicators_Sound_Available() => 0
09:23:58 AM: Indicators_Sound_Available() => 0
[New Thread 0x7fffe92b0700 (LWP 11440)]
[Thread 0x7fffe92b0700 (LWP 11440) exited]
09:24:03 AM: guFileBrowserDirCtrl::SetPath( )
09:24:03 AM: Tree Flag 00000002
09:24:03 AM: LastPath: ''
09:24:03 AM: guFileBrowserFileCtrl::SetPath( )
09:24:03 AM: guFilesListBox::SetPath( )
09:24:03 AM: guFileBrowser::OnDirItemChanged( '/' )
09:24:03 AM: / == /home/martin/Music
09:24:03 AM: guFileBrowserFileCtrl::SetPath( / )
09:24:03 AM: guFilesListBox::SetPath( / )
09:24:10 AM: guFileBrowserDirCtrl::SetPath( /media )
09:24:13 AM: guFileBrowserDirCtrl::SetPath( /media )
09:24:14 AM: guFileBrowserDirCtrl::SetPath( /media )
09:24:16 AM: Tree Flag 00000001
09:24:16 AM: guFileBrowser::OnDirItemChanged( '/media/' )
09:24:16 AM: /media/ == /home/martin/Music
09:24:16 AM: guFileBrowserFileCtrl::SetPath( /media/ )
09:24:16 AM: guFilesListBox::SetPath( /media/ )
09:24:16 AM: guFileBrowser::OnDirItemChanged( '/' )
09:24:16 AM: / == /home/martin/Music
09:24:16 AM: guFileBrowserFileCtrl::SetPath( / )
09:24:16 AM: guFilesListBox::SetPath( / )
09:24:17 AM: guFileBrowser::OnDirItemChanged( '/media/music/' )
09:24:17 AM: /media/music/ == /home/martin/Music
09:24:17 AM: guFileBrowserFileCtrl::SetPath( /media/music/ )
09:24:17 AM: guFilesListBox::SetPath( /media/music/ )
09:24:21 AM: AppendItemCommands: 1 0
[New Thread 0x7fffe92b0700 (LWP 11465)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe92b0700 (LWP 11465)]
0x00000000004b8e81 in guDb::ExecuteQuery(wxString const&) ()
(gdb) bt
#0 0x00000000004b8e81 in guDb::ExecuteQuery(wxString const&) ()
#1 0x00000000004c796f in guDbLibrary::GetArtists(guListItems*, bool) ()
#2 0x00000000005fde95 in guTrackEditorGetComboDataThread::Entry() ()
#3 0x00007ffff7b6c32b in wxThreadInternal::PthreadStart(wxThread*) ()
from /usr/lib/libwx_baseu-2.8.so.0
#4 0x00007ffff3ae7df0 in start_thread () from /lib/libpthread.so.0
#5 0x00007ffff41ee39d in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()
(gdb)

$ uname -a
Linux martin-work 3.1.0-4-ARCH #1 SMP PREEMPT Mon Nov 7 22:47:18 CET 2011 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

segfault while using the song editor

Post by anonbeat »

Thanks for your bug report. I will investigate this issue asap.
monojp
Posts: 4
Joined: Fri Nov 11, 2011 1:28 am

segfault while using the song editor

Post by monojp »

thank you very much for your quick reply and effort to fix this bug. I have another segfault while deleting a folder. strange that nobody else seems notices them. the new version with collections segfaults very often for me

...
02:13:30 PM: guFileBrowser::OnDirItemChanged( '/media/music/Norman - Original Score and Songs by Andrew Bird (2011) v0/' )
02:13:30 PM: /media/music/Norman - Original Score and Songs by Andrew Bird (2011) v0/ == /home/martin/Music
02:13:30 PM: guFileBrowserFileCtrl::SetPath( /media/music/Norman - Original Score and Songs by Andrew Bird (2011) v0/ )
02:13:30 PM: guFilesListBox::SetPath( /media/music/Norman - Original Score and Songs by Andrew Bird (2011) v0/ )

Program received signal SIGSEGV, Segmentation fault.
0x00000000004b8f88 in guDb::ExecuteUpdate(wxString const&) ()
(gdb) bt
#0 0x00000000004b8f88 in guDb::ExecuteUpdate(wxString const&) ()
#1 0x00000000004c2ffc in guDbLibrary::CleanItems(wxArrayInt const&, wxArrayInt const&) ()
#2 0x00000000004d02ad in guDbLibrary::CleanFiles(wxArrayString const&) ()
#3 0x00000000006805a7 in guFileBrowserDirCtrl::FolderDelete() ()
#4 0x00007ffff7b6d3c5 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#5 0x00007ffff7b6d78f in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
from /usr/lib/libwx_baseu-2.8.so.0
#6 0x00007ffff7b6d842 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/lib/libwx_baseu-2.8.so.0
#7 0x00007ffff7b6d800 in wxEvtHandler::ProcessEvent(wxEvent&) ()
from /usr/lib/libwx_baseu-2.8.so.0
#8 0x00007ffff775d709 in wxWindowBase::TryParent(wxEvent&) ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#9 0x00007ffff773e91d in wxMenuBase::SendEvent(int, int) ()
from /usr/lib/libwx_gtk2u_core-2.8.so.0
#10 0x00007ffff76db194 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#11 0x00007ffff634d0e4 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff635f06a in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff63686f1 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#14 0x00007ffff6368892 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff36ffdee in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00007ffff35fb0dd in gtk_menu_shell_activate_item () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007ffff35fb477 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#18 0x00007ffff35e7c78 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#19 0x00007ffff634d0e4 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff635ee9f in ?? () from /usr/lib/libgobject-2.0.so.0
#21 0x00007ffff63684c3 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff6368892 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
monojp
Posts: 4
Joined: Fri Nov 11, 2011 1:28 am

segfault while using the song editor

Post by monojp »

oh, I just noticed that the bugs could also have been related or at least modified because of permission problems. I had no write permission on most of my files and folders on the external disk. at least the deleting works now, but the program still segfaults after it. and the editing-segfault with fixed permissions still looks like the following:

...
02:18:47 PM: guFilesListBox::SetPath( /media/music/ )
02:18:48 PM: AppendItemCommands: 1 0
[New Thread 0x7fffe92b0700 (LWP 18887)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe92b0700 (LWP 18887)]
0x00000000004b8e81 in guDb::ExecuteQuery(wxString const&) ()
(gdb) bt
#0 0x00000000004b8e81 in guDb::ExecuteQuery(wxString const&) ()
#1 0x00000000004c796f in guDbLibrary::GetArtists(guListItems*, bool) ()
#2 0x00000000005fde95 in guTrackEditorGetComboDataThread::Entry() ()
#3 0x00007ffff7b6c32b in wxThreadInternal::PthreadStart(wxThread*) ()
from /usr/lib/libwx_baseu-2.8.so.0
#4 0x00007ffff3ae7df0 in start_thread () from /lib/libpthread.so.0
#5 0x00007ffff41ee39d in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

segfault while using the song editor

Post by anonbeat »

Can you post the output running the program from console please ?
User avatar
anonbeat
Posts: 2048
Joined: Thu Sep 16, 2010 9:47 pm

segfault while using the song editor

Post by anonbeat »

Can you check with revision 1693 and see if the problem is fixed please ?

Thanks for your help
monojp
Posts: 4
Joined: Fri Nov 11, 2011 1:28 am

segfault while using the song editor

Post by monojp »

Sorry it took so long. but yes, I think everything is fixed now. Thank you for you quick reply and fix!
Locked