SIGSEGV in beagle-search

Bug #133377 reported by Andrzej Mendel-Nykorowycz
14
Affects Status Importance Assigned to Milestone
mono (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: beagle

beagle-search crashes on startup. Here's what I get on console:
kelner@luther:~/Geek/src$ beagle-search

(search:6013): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `(null)'
Stacktrace:

  at (wrapper managed-to-native) Gtk.Container.gtksharp_container_override_forall (GLib.GType,Gtk.Container/ForallDelegate) <0xffffffff>
  at (wrapper managed-to-native) Gtk.Container.gtksharp_container_override_forall (GLib.GType,Gtk.Container/ForallDelegate) <0x0009c>
  at Gtk.Container.OverrideForall (GLib.GType) <0x000ac>
  at (wrapper runtime-invoke) Gtk.Widget.runtime_invoke_void_GType (object,intptr,intptr,intptr) <0x00090>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0x00098>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x00130>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x00040>
  at GLib.Object.ConnectDefaultHandlers (GLib.GType,System.Type) <0x00278>
  at GLib.Object.RegisterGType (System.Type) <0x0014c>
  at GLib.Object.LookupGType (System.Type) <0x0016c>
  at GLib.Object.RegisterGType (System.Type) <0x00074>
  at GLib.Object.LookupGType (System.Type) <0x0016c>
  at GLib.Object.LookupGType () <0x00034>
  at GLib.Object.CreateNativeObject (string[],GLib.Value[]) <0x00124>
  at Gtk.Object.CreateNativeObject (string[],GLib.Value[]) <0x00030>
  at Gtk.Widget.CreateNativeObject (string[],GLib.Value[]) <0x00030>
  at Gtk.Container..ctor () <0x0008c>
  at Search.Category..ctor (Search.Tiles.TileGroupInfo,int) <0x00060>
  at Search.TileCategory..ctor (Search.Tiles.TileGroupInfo,Gtk.SizeGroup) <0x0004c>
  at Search.GroupView..ctor () <0x001b4>
  at Search.MainWindow..ctor () <0x0104c>
  at Search.MainWindow.Main (string[]) <0x0013c>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0x00080>

Native stacktrace:

        beagle-search [0x10166c58]
        beagle-search [0x10140494]
        [0x100350]
        /usr/lib/mono/gtk-sharp-2.0/libgtksharpglue-2.so(gtksharp_container_override_forall+0x54) [0xe78ad70]
        [0x313cf180]
        [0x313cefe8]
        [0x3122c45c]
        beagle-search [0x101402bc]
        beagle-search(mono_runtime_invoke+0x1c) [0x10056478]
        beagle-search(mono_runtime_invoke_array+0x3dc) [0x1005d23c]
        beagle-search [0x100641dc]
        [0x31147ae8]
        [0x3114596c]
        [0x31145824]
        [0x311b802c]
        [0x311afca0]
        [0x311afae8]
        [0x311afbc8]
        [0x311afae8]
        [0x311af958]
        [0x311af708]
        [0x311af5cc]
        [0x311af584]
        [0x313ce810]
        [0x313cdddc]
        [0x313cdc40]
        [0x313cd1b8]
        [0x31149940]
        [0x309aba78]
        [0x309aa0dc]
        beagle-search [0x101402bc]
        beagle-search(mono_runtime_invoke+0x1c) [0x10056478]
        beagle-search(mono_runtime_exec_main+0x14c) [0x1005ba4c]
        beagle-search(mono_runtime_run_main+0x2a4) [0x1005bd40]
        beagle-search(mono_jit_exec+0xe0) [0x100134fc]
        beagle-search [0x10013638]
        beagle-search(mono_main+0x1714) [0x10014fe0]
        beagle-search [0x100120e4]
        /lib/libc.so.6 [0xfe6e360]
        /lib/libc.so.6 [0xfe6e5a4]

Debug info from gdb:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 805392048 (LWP 6013)]
[New Thread 816645296 (LWP 6015)]
[New Thread 815400112 (LWP 6014)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0x0ff29548 in ?? () from /lib/libc.so.6
  3 Thread 815400112 (LWP 6014) 0x0fd500d4 in ?? () from /lib/libpthread.so.0
  2 Thread 816645296 (LWP 6015) 0x0fd4b65c in pthread_cond_wait@@GLIBC_2.3.2
    () from /lib/libpthread.so.0
  1 Thread 805392048 (LWP 6013) 0x0ff29548 in ?? () from /lib/libc.so.6

Thread 3 (Thread 815400112 (LWP 6014)):
#0 0x0fd500d4 in ?? () from /lib/libpthread.so.0
#1 0x0fd500c0 in ?? () from /lib/libpthread.so.0
#2 0x100cb5cc in ?? ()
#3 0x0fd45b14 in start_thread () from /lib/libpthread.so.0
#4 0x0ff31754 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 2 (Thread 816645296 (LWP 6015)):
#0 0x0fd4b65c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x100d1d08 in ?? ()
#2 0x100d2140 in ?? ()
#3 0x100d1ee0 in ?? ()
#4 0x100e975c in ?? ()
#5 0x10071e40 in ?? ()
#6 0x10090f78 in ?? ()
#7 0x100e71a0 in ?? ()
#8 0x1010d78c in ?? ()
#9 0x0fd45b14 in start_thread () from /lib/libpthread.so.0
#10 0x0ff31754 in clone () from /lib/libc.so.6
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 1 (Thread 805392048 (LWP 6013)):
#0 0x0ff29548 in ?? () from /lib/libc.so.6
#1 0x0ff29528 in ?? () from /lib/libc.so.6
#2 0x0f07ad40 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#3 0x0f07b130 in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
#4 0x10166d3c in ?? ()
#5 0x10140494 in ?? ()
#6 <signal handler called>
#7 0x0e78ad80 in gtksharp_container_override_forall ()
   from /usr/lib/mono/gtk-sharp-2.0/libgtksharpglue-2.so
#8 0x313cf180 in ?? ()
#9 0x313cefe8 in ?? ()
#10 0x3122c45c in ?? ()
#11 0x101402bc in ?? ()
#12 0x10056478 in mono_runtime_invoke ()
#13 0x1005d23c in mono_runtime_invoke_array ()
#14 0x100641dc in ?? ()
#15 0x31147ae8 in ?? ()
#16 0x3114596c in ?? ()
#17 0x31145824 in ?? ()
#18 0x311b802c in ?? ()
#19 0x311afca0 in ?? ()
#20 0x311afae8 in ?? ()
#21 0x311afbc8 in ?? ()
#22 0x311afae8 in ?? ()
#23 0x311af958 in ?? ()
#24 0x311af708 in ?? ()
#25 0x311af5cc in ?? ()
#26 0x311af584 in ?? ()
#27 0x313ce810 in ?? ()
#28 0x313cdddc in ?? ()
#29 0x313cdc40 in ?? ()
#30 0x313cd1b8 in ?? ()
#31 0x31149940 in ?? ()
#32 0x309aba78 in ?? ()
#33 0x309aa0dc in ?? ()
#34 0x101402bc in ?? ()
#35 0x10056478 in mono_runtime_invoke ()
#36 0x1005ba4c in mono_runtime_exec_main ()
#37 0x1005bd40 in mono_runtime_run_main ()
#38 0x100134fc in mono_jit_exec ()
#39 0x10013638 in ?? ()
#40 0x10014fe0 in mono_main ()
#41 0x100120e4 in ?? ()
#42 0x0fe6e360 in generic_start_main () from /lib/libc.so.6
#43 0x0fe6e5a4 in __libc_start_main () from /lib/libc.so.6
#44 0x00000000 in ?? ()
#0 0x0ff29548 in ?? () from /lib/libc.so.6

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted (core dumped)

Revision history for this message
Kevin Kubasik (kkubasik) wrote :

Does this happen every time you start beagle-search? What does the beagle daemon output when you start the client? And does a reinstall fix this?

Changed in beagle:
assignee: nobody → kkubasik
status: New → Incomplete
Revision history for this message
digger vermont (digver) wrote :

Well here's the answers I have for your questions.

I reinstalled beagle, mono-runtime. and mono=runtimes dedends. I also reinstalled the *-cil libs. Also the mono libs listed in beagles depends.

I started beagle with "beagled --fg --debug --backend Liferea" I used just liferea to reduce the output.

Always: Starting Beagle Daemon (version 0.2.17)
Always: Running on Mono 1.2.4
Always: Using sqlite version 3
Always: Command Line: /usr/lib/beagle/BeagleDaemon.exe --fg --debug --backend Liferea
Debug: Established a connection to the X server
Debug: Reniced process to 7
Debug: Starting main loop
Debug: Beginning main loop
Debug: Starting messaging server
Debug: Starting QueryDriver
Debug: Found 0 backends in /usr/lib/beagle/Backends/EvolutionBackends.dll
Debug: Found 0 backends in /usr/lib/beagle/Backends/ThunderbirdBackends.dll
Debug: Found index helper at /usr/lib/beagle/beagled-index-helper
Debug: Found 1 backends in /usr/lib/beagle/BeagleDaemonLib.dll
Debug: Reading mapping from filters
Debug: Loading system static indexes.
Debug: Found 0 system-wide indexes.
Debug: Found 0 user-configured static indexes..
Debug: Waiting 60 seconds before starting queryables
Debug: Starting Scheduler thread
Debug: Starting Inotify threads
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: Daemon initialization finished after 4.95s
Debug: Memory usage: VmSize=60.6 MB, VmRSS=17.2 MB, GC.GetTotalMemory=860160
Debug: Starting queryables
Debug: Starting backend: 'Liferea'

I waited until the queryables were started and ran "beagle-search digger"
I start by get some debug output:

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

After that I get the same output as stated above.

Revision history for this message
dBera (dbera-web) wrote :

This has something to do with the recent mono. These are similar problems in monodevelop and banshee.
http://lists.ximian.com/pipermail/monodevelop-list/2007-August/006512.html
http://www.mail-archive.com/debian-bugs-rc%40lists.debian.org/msg109852.html

Revision history for this message
Andrzej Mendel-Nykorowycz (kelner) wrote :

Kevin: It happens every time I run beagle-search, beagled output (with --fg --debug) doesn't change when I run beagle-search and reinstall did not help at all - all the symptoms persist. I have tried your beagle 0.2.18 packages and nothing changes. Note that I had to recompile them as I have a PPC box, but this does not seem to be the problem as Gutsy's stock beagle 0.2.17 dies in a similar way.

I am wondering if this could be related to PPC since this software sometimes exhibits bugs hidden on i386 and amd64 (endianness for example) but I have not seen any Mono PPC bug for about a year.

dBera: I will try the mentioned apps (at least banshee) and post results.

Revision history for this message
Andrzej Mendel-Nykorowycz (kelner) wrote :

I have tested both banshee and monodevelop and they crash in the same manner. Debian bug #428190 seems to be relevant. I am now building mono 1.2.5-2 from Debian Sid (in a clean cowbuilder environment) and will check if after installing it this bug still occurs.

Revision history for this message
Andrzej Mendel-Nykorowycz (kelner) wrote :

Checked it, it still crashes with mono 1.2.5. I have also compiled gtk-sharp2 2.10.2, to na avail.

Revision history for this message
dBera (dbera-web) wrote :

So its more a gtk-sharp/mono/PPC bug. I think they should be notified. Can someone change the product so that the mono guys can see this and work on this ?

Changed in beagle:
status: Incomplete → New
Kevin Kubasik (kkubasik)
Changed in beagle:
assignee: kkubasik → nobody
Revision history for this message
Natan Yellin (aantny) wrote :

Isn't Tomboy also a gtk-sharp+mono+ppc app? Monodevelop crashes for me, but Tomboy works fine. Also, monodevelop worked for me on Feisty.

Revision history for this message
Andrzej Mendel-Nykorowycz (kelner) wrote :

Hey!
I've decided to uninstall Ubuntu's mono packages and compile them myself (from tarballs or SVN). Apparently it's gtk-sharp that is broken. While 2.10.2 seems to give same crash, version from SVN work fine in this regard i.e. beagle-search doesn't crash. Do you want me to try to find which revision contains the fix?

Revision history for this message
Natan Yellin (aantny) wrote :

That would be great if we could locate the exact patch and get Ubuntu to update their packages.

Revision history for this message
Jo Shields (directhex) wrote :

This is a (resolved) PowerPC problem. Please upgrade to at least Hardy.

Changed in mono:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.