GNOME Bugzilla – Bug 386746
beagled dies because evolibdir is wrong
Last modified: 2007-01-03 17:18:23 UTC
Linked to Ubuntu's Launchpad https://launchpad.net/distros/ubuntu/+source/beagle/+bug/72971 see it for backtraces and more comments. "On Feisty, beagled crashed on startup, and apport report that. I don't know what's going wrong."
Unfortunately the aports dont contain a useful stacktrace. It would be helpful to have a stacktrace. Start beagled as $beagled --fg --debug from a terminal. Since it crashes on startup, it should not take long to crash. Then copy paste the stacktrace from the terminal to here and also attach the logfiles from ~/.beagle/current-*.
No, I has not take long to crash :p : nicolas@spiralo-vertigo:~$ beagled --fg --debug Debug: Starting Beagle Daemon (version 0.2.14) Debug: Running on Mono 1.2.2.1 Debug: Command Line: /usr/lib/beagle/BeagleDaemon.exe --fg --debug Warn: Extended attributes are not supported on this filesystem. Performance will suffer as a result. Debug: Established a connection to the X server Debug: Loading Beagle.Util.Conf+IndexingConfig from indexing.xml Debug: Loading Beagle.Util.Conf+DaemonConfig from daemon.xml Debug: Loading Beagle.Util.Conf+SearchingConfig from searching.xml Debug: Starting main loop Debug: Beginning main loop Debug: Starting messaging server Debug: Starting QueryDriver Debug: Found index helper at /usr/lib/beagle/beagled-index-helper Debug: Found 2 backends in /usr/lib/beagle/Backends/EvolutionBackends.dll Debug: Found 1 backends in /usr/lib/beagle/Backends/ThunderbirdBackends.dll Debug: KMail folders not found. Will keep trying Debug: Starting Inotify FSQ file event backend Debug: KonqCacheDir: /var/tmp/kdecache-nicolas/http Debug: Found 14 backends in /usr/lib/beagle/BeagleDaemonLib.dll Debug: Reading mapping from filters Debug: Loading system static indexes. Debug: Initializing static queryable: /var/cache/beagle/indexes/applications Debug: Initializing static queryable: /var/cache/beagle/indexes/documentation Debug: Found 2 system-wide indexes. Debug: Loading user-configured static indexes. Debug: Found 0 user-configured static indexes.. Debug: Waiting 60 seconds before starting queryables Debug: Starting Scheduler thread Debug: Starting Inotify threads Debug: Daemon initialization finished after 1,90s Debug: Memory usage: VmSize=53,4 MB, VmRSS=15,7 MB, GC.GetTotalMemory=2686976 Debug: Starting queryables Debug: Starting backend: 'EvolutionMail' Debug: Starting backend: 'EvolutionDataServer' Debug: Starting backend: 'Thunderbird' Debug: Starting backend: 'KMail' Debug: Starting Evolution mail backend Debug: Starting mail crawl Debug: Starting Thunderbird backend Debug: Starting backend: 'Files' Debug: Adding root: /home/nicolas Debug: Starting KMail backend Debug: KMail directories (local mail) /home/nicolas/.kde/share/apps/kmail/dimap not found, will repoll. Debug: No data available for indexing in Debug: Loaded 78 records from /home/nicolas/.beagle/Indexes/FileSystemIndex/FileAttributesStore.db in 0,014s Debug: Running tree crawl task Debug: Adding root: /media Debug: Done starting FileSystemQueryable Debug: Starting backend: 'GaimLog' Debug: Starting backend: 'IndexingService' Debug: Starting Gaim log backend Debug: Setting up inotify watches on gaim log directories Debug: Starting backend: 'Tomboy' Debug: Setting up an initial crawl of the IndexingService directory Debug: Starting backend: 'Labyrinth' Debug: Starting backend: 'Blam' Debug: Starting backend: 'Liferea' Debug: Will index mbox /home/nicolas/.evolution/mail/local/Virus Debug: Will index mbox /home/nicolas/.evolution/mail/local/Drafts Debug: Will index mbox /home/nicolas/.evolution/mail/local/Outbox Debug: Will index mbox /home/nicolas/.evolution/mail/local/Classé Debug: Will index mbox /home/nicolas/.evolution/mail/local/Ubuntu Bugs Debug: Will index mbox /home/nicolas/.evolution/mail/local/Sent Debug: Will index mbox /home/nicolas/.evolution/mail/local/Inbox Debug: Gaim log backend worker thread done in ,10s Debug: Starting backend: 'Akregator' Debug: Starting backend: 'KonquerorHistory' Debug: Starting backend: 'KonqBookmark' Debug: Starting Konq history backend ... Debug: Starting backend: 'KNotes' Debug: Starting backend: 'KAddressBook' Debug: Starting backend: 'Kopete' Debug: Starting backend: 'applications' Debug: Starting backend: 'documentation' Debug: Starting Kopete log backend Debug: Loaded 1 records from /home/nicolas/.beagle/Indexes/KonqBookmarkIndex/FileAttributesStore.db in 0,000s Debug: Opening bookmark file: /home/nicolas/.kde/share/apps/konqueror/bookmarks.xml Debug: Scanning addressbooks and calendars Debug: Loaded 0 records from /home/nicolas/.beagle/Indexes/KAddressBookIndex/FileAttributesStore.db in 0,000s Debug: Checking if /home/nicolas/.kde/share/apps/kabc/std.vcf is a valid Kabc file. Debug: Will index summary /home/nicolas/.evolution/mail/imap/nderive@etumail.u-bordeaux1.fr/folders/INBOX/summary Debug: Will index summary /home/nicolas/.evolution/mail/imap/nderive@etumail.u-bordeaux1.fr/folders/INBOX.Corbeille/summary Debug: Will index summary /home/nicolas/.evolution/mail/imap/nderive@etumail.u-bordeaux1.fr/folders/2004/summary Debug: Will index summary /home/nicolas/.evolution/mail/imap/nderive@etumail.u-bordeaux1.fr/folders/Trash/summary Debug: Will index summary /home/nicolas/.evolution/mail/imap/nderive@etumail.u-bordeaux1.fr/folders/INBOX.Envoye/summary Debug: Will index summary /home/nicolas/.evolution/mail/imap/nderive@etumail.u-bordeaux1.fr/folders/2004/subfolders/Trash/summary Debug: Mail crawl finished Debug: Evolution mail driver worker thread done in 1,01s Debug: Loaded 112 records from /home/nicolas/.beagle/Indexes/KopeteIndex/FileAttributesStore.db in 0,017s Debug: Kopete log backend worker thread done in ,66s Debug: Getting addressbook changes for file:///home/nicolas/.evolution/addressbook/local/system Warn: Unable to get changes for file:///home/nicolas/.evolution/addressbook/local/system: System.DllNotFoundException: /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so at (wrapper managed-to-native) Evolution.Book:e_book_glue_ebook_get_changes (intptr,string,intptr&,intptr&,intptr&,intptr&) at Evolution.Book.GetChanges (System.String changeid, Evolution.Contact[]& newcontacts, Evolution.Contact[]& updated, System.String[]& removed) [0x00000] at Beagle.Daemon.EvolutionDataServerQueryable.BookContainer.IndexChanges () [0x00000] Debug: Getting calendar changes for file:///home/nicolas/.evolution/calendar/local/system Warn: Unable to get changes for file:///home/nicolas/.evolution/calendar/local/system: System.DllNotFoundException: /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so at (wrapper managed-to-native) Evolution.Cal:e_cal_glue_ecal_get_changes (intptr,string,intptr&,intptr&,intptr&,intptr&) at Evolution.Cal.GetChanges (System.String change_id, Evolution.CalComponent[]& newitems, Evolution.CalComponent[]& updated, System.String[]& removed) [0x00000] at Beagle.Daemon.EvolutionDataServerQueryable.CalContainer.IndexChanges () [0x00000] Debug: Getting calendar changes for file:///home/nicolas/.evolution/calendar/local/1161992723.17904.0@spiralo-vertigo Warn: Unable to get changes for file:///home/nicolas/.evolution/calendar/local/1161992723.17904.0@spiralo-vertigo: System.DllNotFoundException: /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so at (wrapper managed-to-native) Evolution.Cal:e_cal_glue_ecal_get_changes (intptr,string,intptr&,intptr&,intptr&,intptr&) at Evolution.Cal.GetChanges (System.String change_id, Evolution.CalComponent[]& newitems, Evolution.CalComponent[]& updated, System.String[]& removed) [0x00000] at Beagle.Daemon.EvolutionDataServerQueryable.CalContainer.IndexChanges () [0x00000] Debug: Getting calendar changes for contacts:/// Warn: Unable to get changes for contacts:///: System.DllNotFoundException: /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so at (wrapper managed-to-native) Evolution.Cal:e_cal_glue_ecal_get_changes (intptr,string,intptr&,intptr&,intptr&,intptr&) at Evolution.Cal.GetChanges (System.String change_id, Evolution.CalComponent[]& newitems, Evolution.CalComponent[]& updated, System.String[]& removed) [0x00000] at Beagle.Daemon.EvolutionDataServerQueryable.CalContainer.IndexChanges () [0x00000] Debug: Scanned addressbooks and calendars in 1,97s Debug: Sequence complete! Error: Unhandled exception thrown. Exiting immediately. System.DllNotFoundException: /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so at (wrapper managed-to-native) Evolution.CalUtil:e_cal_glue_from_objects_to_glue_components (intptr) at Evolution.CalUtil.CalCompFromICal (IntPtr ical_objects, Evolution.Cal ecal) [0x00000] at Beagle.Daemon.EvolutionDataServerQueryable.CalContainer.OnObjectsAdded (System.Object o, Evolution.ObjectsAddedArgs args) [0x00000] at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_ObjectsAddedArgs (object,Evolution.ObjectsAddedArgs) at Evolution.CalView.ObjectsAddedSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch) [0x00000] at (wrapper native-to-managed) Evolution.CalView:ObjectsAddedSignalCallback (intptr,intptr,intptr) at <0x00000> <unknown method> at (wrapper managed-to-native) GLib.MainLoop:g_main_loop_run (intptr) at GLib.MainLoop.Run () [0x00000] at Beagle.Daemon.BeagleDaemon.DoMain (System.String[] args) [0x00000] at Beagle.Daemon.BeagleDaemon.Main (System.String[] args) [0x00000] Debug: Server '/home/nicolas/.beagle/socket' shut down Signal de Temps-Réel 1
Created attachment 78524 [details] Beagle index helper strange, it is old, but under current link
Created attachment 78525 [details] Beagle index helper exceptions the same thing, it is old, but current.
Created attachment 78526 [details] Beagle log it is current, and this time new !
Created attachment 78527 [details] Beagle exceptions
Ok. Thanks. This problem was reported in mailing list too Warn: Unable to get changes for file:///home/nicolas/.evolution/addressbook/local/system: System.DllNotFoundException: /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so This could be a packaging problem or incorrect dependency problem. Beagle Evolution backend is unable to find the correct evolution sharp library files. If you want run beagle till the problem is recognized and fixed, you can pass "--backend -EvolutionDataServer" to beagled. That would disable the EDS backend.
Run beagled in the foreground with the MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll environment variables set. That will print out info on trying to load various libraries. Please attach info related to libevolutionglue.so here.
Maybe this helps: Mono-INFO: DllImport attempting to load: '/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so'. Mono-INFO: DllImport loading location: 'lib/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so.so'. Mono-INFO: DllImport error loading library: 'lib/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so.so: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading library: './lib/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so.so'. Mono-INFO: DllImport error loading library './lib/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so.so: cannot open shared object file: No such file or directory'.
Unfortunately not, as there isn't a real error in there when trying to load '/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so' Can you attach the full output of a run in the foreground? Do something like this: MONO_LOG_LEVEL=debug MONO_LOG_MASK=dll beagled --fg --debug --allow-backend evolutiondataserver 2>&1 | tee beagle-output.txt and attach the beagle-output.txt file, please.
Created attachment 78595 [details] full DLL debugging run as requested in comment #10 As per the request in comment #10 full run with DLL debugging.
Ok, the problem in there is this message: Mono-INFO: DllImport loading: '/usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so'. Mono-INFO: DllImport error loading library 'libeshell.so.0: cannot open shared object file: No such file or directory'. Can you confirm that you don't have libeshell.so.0 on your system? On my SUSE machines, it's included as part of evolution.
Looks like I have it: $ dpkg -S /usr/lib/evolution/2.10/libeshell.so.0.0.0 /usr/lib/evolution/2.10/libeshell.so.0 /usr/lib/debug/usr/lib/evolution/2.10/libeshell.so.0.0.0 evolution: /usr/lib/evolution/2.10/libeshell.so.0.0.0 evolution: /usr/lib/evolution/2.10/libeshell.so.0 evolution-dbg: /usr/lib/debug/usr/lib/evolution/2.10/libeshell.so.0.0.0 $ ls -l /usr/lib/evolution/2.10/libeshell.so.0.0.0 /usr/lib/evolution/2.10/libeshell.so.0 /usr/lib/debug/usr/lib/evolution/2.10/libeshell.so.0.0.0 -rw-r--r-- 1 root root 164926 2006-12-08 11:05 /usr/lib/debug/usr/lib/evolution/2.10/libeshell.so.0.0.0 lrwxrwxrwx 1 root root 18 2006-12-11 17:59 /usr/lib/evolution/2.10/libeshell.so.0 -> libeshell.so.0.0.0 -rw-r--r-- 1 root root 56264 2006-12-08 11:05 /usr/lib/evolution/2.10/libeshell.so.0.0.0 [ would be nice if this stupid text widget didn't automatically wrap everything ]
Ok, so you're running an Evo 2.9 pre-release version? Can you run "pkg-config --variable=evolibdir evolution-sharp" and post the output? This is probably a bug in evolution-sharp; I think all the code that is necessary to link against libeshell has been removed anyway, but in any case I think that evolution-sharp isn't future compatible with evolution and beagle isn't future compatible with evolution-sharp.
Yes, evo 2.9.3. Ah ha! $ pkg-config --variable=evolibdir evolution-sharp /usr/lib/evolution/2.8 I would presume that is supposed to be /usr/lib/evolution/2.10, yes?
Correct. So the workaround here is to edit your beagled shell script and change 2.8 to 2.10. If the libeshell stuff doesn't need to be there at all, we can hopefully just make this problem go away. I'll look into it.
Also, another workaround for now is to rebuild evolution-sharp and then beagle in feisty so that it picks up the correct versions.
Can you run 'ldd /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so' and attach the output?
Created attachment 78604 [details] output of ldd /usr/lib/cli/evolution-sharp-2.0/libevolutionglue.so as per comment 18 As per comment 18, ldd output.
What version of evolution-sharp do you have installed?
(In reply to comment #20) > What version of evolution-sharp do you have installed? > I can't see any evolution-sharp installed: $ COLUMNS=120 dpkg --list \*evolution\* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-========================-========================-========================== ii beagle-backend-evolution 0.2.14-0ubuntu1 evolution data backend for ii evolution 2.9.3-0ubuntu3 groupware suite with mail ii evolution-common 2.9.3-0ubuntu3 architecture independent f ii evolution-data-server 1.9.3-0ubuntu1 evolution database backend ii evolution-data-server-co 1.9.3-0ubuntu1 architecture independent f ii evolution-data-server-db 1.9.3-0ubuntu1 evolution database backend pn evolution-data-server-de <none> (no description available) un evolution-data-server1.2 <none> (no description available) ii evolution-dbg 2.9.3-0ubuntu3 debugging symbols for Evol ii evolution-exchange 2.8.2-0ubuntu1 Exchange plugin for the Ev un evolution-jescs <none> (no description available) ii evolution-plugins 2.9.3-0ubuntu3 standard plugins for Evolu un evolution-plugins-experi <none> (no description available) un evolution-scalix <none> (no description available) ii evolution-webcal 2.8.0-0ubuntu2 webcal: URL handler for GN ii libevolution-cil 0.11.1+cvs20060516-0ubun CLI bindings for Evolution ii openoffice.org-evolution 2.0.4-0ubuntu2 Evolution Addressbook supp un openoffice.org2-evolutio <none> (no description available) Maybe I am not using a pattern that would find it. I did try *sharp* and didn't see anything there either.
Ah, it's actually libevolution-cil. I notice you have 0.11.1 installed, which is incompatible with Evolution 2.8 (and 2.9). Is there a 0.12.0 available, and can you try it, if so? The Ubuntu package for libevolution-cil probably needs to be more strict about what versions of evolution it accepts, because API and ABI changes in e-d-s.
I just checked downstream, and a CVS snapshot of 0.11.1 is the only version currently available in Feisty. I've mailed a couple people about this (the person who packaged the CVS snapshot, and the maintainer of beagle in Ubuntu) and hopefully it will get straightened out. I also added some comments to the downstream bug about the exact various issues here: https://launchpad.net/distros/ubuntu/+source/beagle/+bug/72971/comments/8 As I mention there, my plan is to try to fix Beagle so that it doesn't die when it catches these exceptions. I may also make Beagle's configure more strict about the versions it accepts (if evolution-sharp 0.11.x, also require evolution-data-server 1.4.x or 1.6.x and evolution 2.4.x or 2.6.x; if evolution-sharp 0.12.x, also require e-d-s 1.8.x).
I've checked in code which does a better job of checking for an incompatible libevolutionglue library. This fixes the Beagle side of things, so I'm closing this bug. Work is still needed on the downstream ubuntu bug.
*** Bug 391409 has been marked as a duplicate of this bug. ***
evolution-sharp 0.12.1, which supports e-d-s 1.9.0 through 1.9.4 as well as 1.8.x is available now from here: http://download.gnome.org/sources/evolution-sharp/0.12/