Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353533 - app-misc/beagle-0.3.9-r4: beagled crashes every second search
Summary: app-misc/beagle-0.3.9-r4: beagled crashes every second search
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: dotnet project
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 15:43 UTC by Kai Wüstermann
Modified: 2011-02-15 11:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to prevent crashes (beagle-0.3.9-UnixConnectionHandler-exceptions.patch,1.63 KB, patch)
2011-02-15 04:01 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Wüstermann 2011-02-02 15:43:27 UTC
For me beagle worked fine for years. After the update to app-misc/beagle-0.3.9-r4 beagled crashes every second beagle-search. 

The first search shows the right output. The second search with the same search keyword does not work. After a restart beagled I only can search one time without a crash. This infects all backends and every searching keyword.


on crash ~/.beagle/Log/current-Beagle shows this:
20110202 16:20:27.9411 22214 Beagle DEBUG: Parsed query 'haus' as text_query

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Beagle.Daemon.UnixConnectionHandler.WatchCallback (IAsyncResult ar) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket+SocketAsyncResult.CB (System.Object unused) [0x00000] in <filename unknown>:0 

Reproducible: Always

Steps to Reproduce:
1. Be a normal user and start beagled
2. Start beagle-search
3. tail -f ~/.beagle/Log/current-Beagle
4. search two time in beagle-search




emerge --info beagle
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8200_@_2.33GHz-with-gentoo-1.12.14
Timestamp of tree: Wed, 02 Feb 2011 14:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/latex2html /usr/share/texmf-site/tex/latex/html /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo/ ftp://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cupsddk cxx dbus device-mapper dri dts dvd dvdr dvi eds emboss emerald encode evo exif extras fam ffmpeg firefox flac fortran gdbm gdu gif gimp glitz gnome gnutls gpm gstreamer gtk hal hddtemp hpijs hunspell iconv ipv6 java jpeg latex lcms libnotify lm_sensors lyx mad midi mikmod mmx mng modules mono mp3 mp4 mpeg mtp mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin nvidia odbc ogg opengl openmp pam pango pcre pdf perl pmu png policykit ppds pppd python qt3support readline scanner sdl session spell sqlite sse sse2 ssl startup-notification svg symlink sysfs tcpd theora tiff truetype udev unicode usb vorbis wmf x264 xcb xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

app-misc/beagle-0.3.9-r4 was built with the following:
USE="eds galago google gtk inotify (multilib) ole pdf xscreensaver -avahi -chm -debug -doc -firefox -thunderbird"
Comment 1 Pacho Ramos gentoo-dev 2011-02-02 17:29:04 UTC
Reproduced and reported to upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=641270

Anyway, beagle development looks dead for ages, then, I would try to move to other alternatives (like tracker) since I don't think this will be solved (in that case, I would mask this for removal)
Comment 2 Kai Wüstermann 2011-02-02 18:50:44 UTC
The difference between app-misc/beagle-0.3.9-r4 and -r4 is the mono-2.8-patch. so I switched back to mono-2.6.7. Now beagle work fine again (until another ebuild needs mono-2.8;-)

So feel free to remove this bug.
Comment 3 Pacho Ramos gentoo-dev 2011-02-02 18:57:47 UTC
mono-2.6 has security issues, then, would be better to move to mono-2.8 and try to use an alternative for beagle
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-02-15 04:01:26 UTC
Created attachment 262551 [details, diff]
patch to prevent crashes

As the author of the patch that allowed beagle to build under mono-2.8, I apologize for not taking care of this issue earlier.

Due to changes in mono's threading and exception policy (having to do, I am guessing, with the removal of some of the .NET 1.1 compatibility features in mono-2.8), beagled does indeed frequently crash under mono-2.8 due to uncaught exceptions in UnixConnectionHandler.WatchCallback().

This patch fixes the beagled crashes on my machine. Please verify that it also works for you.
Comment 5 Pacho Ramos gentoo-dev 2011-02-15 11:07:17 UTC
+*beagle-0.3.9-r5 (15 Feb 2011)
+
+  15 Feb 2011; Pacho Ramos <pacho@gentoo.org> +beagle-0.3.9-r5.ebuild,
+  +files/beagle-0.3.9-UnixConnectionHandler-exceptions.patch:
+  Fix crash on second search (bug #353533 by Kai Wüstermann and fix by
+  Alexandre Rostovtsev).
+

But I would prefer to not readd beagle support for yelp and brasero as clearly beagle is dead and will disappear in the near future (upstream is completely dead, and people should start to migrate to better maintained alternatives like tracker)

Thanks a lot for the patch