Bug 679160

Summary: Tomboy crashes on startup
Product: [openSUSE] openSUSE 11.4 Reporter: David Walker <David>
Component: MonoAssignee: E-mail List <bnc-team-mono>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: fcrozat, forgotten_o4thnEN6Yd, vuntz
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Walker 2011-03-13 05:20:17 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16

Tomboy crashes on startup.  I'm running openSUSE 11.4, just upgraded from 11.3 using a NET upgrade CD.  Here's what happens:

dhwalker@home:~> tomboy
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.MonoEnumInfo ---> System.ExecutionEngineException: SIGILL
  at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor () [0x00000] in <filename unknown>:0 
  at System.MonoEnumInfo..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Enum.GetValues (System.Type enumType) [0x00000] in <filename unknown>:0 
  at Mono.Unix.Native.Stdlib..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000] in <filename unknown>:0 
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index, Int32 count, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000] in <filename unknown>:0 
  at Mono.Unix.Catalog.MarshalStrings (System.String s1, System.IntPtr& p1, System.String s2, System.IntPtr& p2, System.String s3, System.IntPtr& p3) [0x00000] in <filename unknown>:0 
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000] in <filename unknown>:0 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Mono.Unix.Native.Stdlib ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.MonoEnumInfo ---> System.ExecutionEngineException: SIGILL
  at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor) [0x00000] in <filename unknown>:0 
  at System.Collections.Hashtable..ctor () [0x00000] in <filename unknown>:0 
  at System.MonoEnumInfo..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Enum.GetValues (System.Type enumType) [0x00000] in <filename unknown>:0 
  at Mono.Unix.Native.Stdlib..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.Unix.UnixMarshal.AllocHeap (Int64 size) [0x00000] in <filename unknown>:0 
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, Int32 index, Int32 count, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0 
  at Mono.Unix.UnixMarshal.StringToHeap (System.String s) [0x00000] in <filename unknown>:0 
  at Mono.Unix.Catalog.MarshalStrings (System.String s1, System.IntPtr& p1, System.String s2, System.IntPtr& p2, System.String s3, System.IntPtr& p3) [0x00000] in <filename unknown>:0 
  at Mono.Unix.Catalog.Init (System.String package, System.String localedir) [0x00000] in <filename unknown>:0 
  at Tomboy.Tomboy.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Reproducible: Always

Steps to Reproduce:
1. Run tomboy
2.
3.
Actual Results:  
Crash.

Expected Results:  
The tomboy icon would be added to the gnome panel
Comment 1 Vincent Untz 2011-03-14 08:46:38 UTC
Looks like a mono issue. It might be that your upgrade from 11.3 is not 100% complete.
Comment 2 David Walker 2011-03-15 05:10:31 UTC
Thanks.  Here's what I've got installed for mono, as well as tomboy.  It looks like everything comes from the right repository.  FYI, I think you're right that it's a mono issue; Banshee doesn't work, either.

I've reinstalled mono-core and tomboy to no avail.

David
___________________________________________________________________________

dhwalker@home:~> sudo zypper search -i -s mono
Loading repository data...
Reading installed packages...

S | Name                         | Type    | Version       | Arch   | Repository          
--+------------------------------+---------+---------------+--------+---------------------
i | evolution-mono-plugins       | package | 2.32.1-9.12.1 | i586   | openSUSE-11.4-11.4-0
i | libmono-2_0-1                | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-addins                  | package | 0.5-4.7.1     | noarch | openSUSE-11.4-11.4-0
i | mono-core                    | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-data                    | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-data-oracle             | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-data-sqlite             | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-devel                   | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-extras                  | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-mvc                     | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-nunit                   | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-wcf                     | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-web                     | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-winforms                | package | 2.8.2-0.2.3   | i586   | openSUSE-11.4-11.4-0
i | mono-zeroconf                | package | 0.9.0-8.2     | noarch | openSUSE-11.4-11.4-0
i | mono-zeroconf-provider-avahi | package | 0.9.0-8.2     | noarch | openSUSE-11.4-11.4-0


S | Name   | Type    | Version   | Arch | Repository          
--+--------+---------+-----------+------+---------------------
i | tomboy | package | 1.4.2-4.5 | i586 | openSUSE-11.4-11.4-0
Comment 3 Frederic Crozat 2011-07-24 10:06:54 UTC
I'm seeing the exact same issue on a fresh 11.4 install (from live GNOME cd), when starting any mono application (f-spot, tomboy ..).

This is on a Athlon XP 1800 system : (supported cpu flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up)

I'm wondering if mono (or something is the stack) isn't build with SSE2 or something like that..
Comment 4 Frederic Crozat 2011-07-24 10:16:00 UTC
Running in gdb :

Program received signal SIGILL, Illegal instruction.
0xb75c5963 in methods () from /usr/lib/mono/2.0/mscorlib.dll.so

this really smells like miscompiled mono for non SSE2 system..
Comment 5 Frederic Crozat 2011-07-24 10:18:17 UTC
(gdb) x/i $pc
=> 0xb75c5963 <methods+907619>:	movsd  -0x18(%ebp),%xmm0

movsd is a SSE2 instruction !
Comment 6 Forgotten User o4thnEN6Yd 2011-08-03 11:10:28 UTC
I get the same problem I think on both a freshly installed 11.4 or an upgraded 11.3>>11.4 where tomboy notes and the applet were working fine before move to 11.4.

On every startup a message appears saying 'The panel encountered a problem while loading "OAFIID : Tomboy Applet" Do you want to delete the applet from your configuration.'

Deleting has no effect anyway.

Staring Tomboy independently from menu fails to load. De-installing requires deinstall of gnome-panel-branding-openSUSE...

Having done the above and then reinstalled tomboy and then subsequently the gnome-panel-branding-openSUSE.. reproduced the same as before.

I guess I may also have a non SSE2 system fwiw as it is a P3 laptop.
Comment 7 David Walker 2011-08-04 00:10:41 UTC
Glad to see this is getting some attention...

I have an Athlon XP 2400+.  Here's the information from hwinfo:

  processor	: 0
  vendor_id	: AuthenticAMD
  cpu family	: 6
  model		: 8
  model name	: AMD Athlon(tm) XP 2400+
  stepping	: 1
  cpu MHz		: 1994.719
  cache size	: 256 KB
  fdiv_bug	: no
  hlt_bug		: no
  f00f_bug	: no
  coma_bug	: no
  fpu		: yes
  fpu_exception	: yes
  cpuid level	: 1
  wp		: yes
  flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
  bogomips	: 3989.43
  clflush size	: 32
  cache_alignment	: 32
  address sizes	: 34 bits physical, 32 bits virtual
  power management: ts
Comment 8 Tomáš Chvátal 2017-08-12 10:11:19 UTC
11.4 is out of support. As such this is not reproducible on current releases. Please open a new issue if you can still reproduce it. Also mono was quite reduced in current releases.