Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212988 - <dev-lang/mono-1.9.1 segfaults in System.Security.Cryptography.RNGCryptoServiceProvider..cctor ()
Summary: <dev-lang/mono-1.9.1 segfaults in System.Security.Cryptography.RNGCryptoServi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-10 21:57 UTC by BedOS_Gui
Modified: 2008-12-26 00:53 UTC (History)
3 users (show)

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


Attachments
build log (app-misc:tomboy-0.10.0:20080310-213620.log,63.63 KB, text/plain)
2008-03-10 21:58 UTC, BedOS_Gui
Details
emerge --info (emerge--info,12.81 KB, text/plain)
2008-03-10 21:59 UTC, BedOS_Gui
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2008-03-10 21:57:12 UTC
When compiling app-misc/tomboy this error occurs :

Making all in FileSystemSyncService
make[4]: Entering directory `/var/tmp/portage/app-misc/tomboy-0.10.0/work/tomboy-0.10.0/Tomboy/Addins/FileSystemSyncService'
gmcs -debug -target:exe -out:FileSystemSyncService.dll -debug -define:DEBUG -target:library -r:../../../Tomboy/Tomboy.exe -r:/usr/lib64/mono/gtk-sharp-2.0/pango-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/atk-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/gdk-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/gtk-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/glib-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/gnome-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/art-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/gnome-vfs-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/gconf-sharp.dll -r:/usr/lib64/mono/gtk-sharp-2.0/gconf-sharp-peditors.dll   -r:../../../Mono.Addins/Mono.Addins/Mono.Addins.dll -r:../../../Mono.Addins/Mono.Addins.Setup/Mono.Addins.Setup.dll -r:../../../Mono.Addins/Mono.Addins.Gui/Mono.Addins.Gui.dll -r:Mono.Posix ./FileSystemSyncServiceAddin.cs -resource:./FileSystemSyncService.addin.xml
./FileSystemSyncServiceAddin.cs(185,33): warning CS0642: Possible mistaken empty statement
./FileSystemSyncServiceAddin.cs(188,41): warning CS0642: Possible mistaken empty statement
Stacktrace:

  at System.Security.Cryptography.RNGCryptoServiceProvider..cctor () <0xffffffff>
  at System.Security.Cryptography.RNGCryptoServiceProvider..cctor () <0x0000d>
  at (wrapper runtime-invoke) System.Collections.Hashtable.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at System.Guid.FastNewGuidArray () <0xffffffff>
  at System.Guid.FastNewGuidArray () <0x00085>
  at System.Reflection.Emit.ModuleBuilder..ctor (System.Reflection.Emit.AssemblyBuilder,string,string,bool,bool) <0x000c1>
  at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (string,string,bool,bool) <0x00103>
  at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (string,string,bool) <0x00032>
  at Mono.CSharp.CodeGen.Init (string,string,bool) <0x00493>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x0086f>
  at Mono.CSharp.Driver.Main (string[]) <0x00079>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	/usr/bin/mono [0x52158d]
	/usr/bin/mono [0x43bd2d]
	/lib/libpthread.so.0 [0x351900e880]
	/lib/libc.so.6(memcpy+0x60) [0x351847d830]
	/usr/bin/mono(mono_breakpoint_clean_code+0x1b) [0x42552b]
	/usr/bin/mono [0x43d90d]
	/usr/bin/mono [0x43e1be]
	[0x40a5115b]

Debug info from gdb:

(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(no debugging symbols found)
0x000000351900d65b in read () from /lib/libpthread.so.0


=================================================================
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.
=================================================================

make[4]: *** [FileSystemSyncService.dll] Aborted
make[4]: Leaving directory `/var/tmp/portage/app-misc/tomboy-0.10.0/work/tomboy-0.10.0/Tomboy/Addins/FileSystemSyncService'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-misc/tomboy-0.10.0/work/tomboy-0.10.0/Tomboy/Addins'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/tomboy-0.10.0/work/tomboy-0.10.0/Tomboy'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/tomboy-0.10.0/work/tomboy-0.10.0'
make: *** [all] Error 2
 * 
 * ERROR: app-misc/tomboy-0.10.0 failed.


Reproducible: Always
Comment 1 BedOS_Gui 2008-03-10 21:58:12 UTC
Created attachment 145773 [details]
build log
Comment 2 BedOS_Gui 2008-03-10 21:59:34 UTC
Created attachment 145775 [details]
emerge --info
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-03-11 10:24:14 UTC
Not gnome's. Please check metadata.xml before assigning bugs.

Thanks
Comment 4 Priit Laes (IRC: plaes) 2008-03-24 15:07:40 UTC
I'm also getting the same problem with both Banshee and Tomboy:
From Banshee:

Stacktrace:

  at System.Security.Cryptography.RNGCryptoServiceProvider..cctor () <0xffffffff>
  at System.Security.Cryptography.RNGCryptoServiceProvider..cctor () <0x0000d>
  at (wrapper runtime-invoke) System.Collections.Hashtable.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at System.Guid.FastNewGuidArray () <0xffffffff>
  at System.Guid.FastNewGuidArray () <0x00085>
  at System.Reflection.Emit.ModuleBuilder..ctor (System.Reflection.Emit.AssemblyBuilder,string,string,bool,bool) <0x000c1>
  at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (string,string,bool,bool) <0x00103>
  at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (string,string,bool) <0x00032>
  at Mono.CSharp.CodeGen.Init (string,string,bool) <0x00493>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x0086f>
  at Mono.CSharp.Driver.Main (string[]) <0x00079>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

	/usr/bin/mono [0x5250bd]
	/usr/bin/mono [0x43da7d]
	/lib/libpthread.so.0 [0x2abc97ee4470]
	/lib/libc.so.6(memcpy+0x60) [0x2abc983e9bc0]
	/usr/bin/mono(mono_breakpoint_clean_code+0x1b) [0x42723b]
	/usr/bin/mono [0x43f6ed]
	/usr/bin/mono [0x43ff9e]
	[0x416c615b]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2abc988c2b40 (LWP 18798)]
[New Thread 0x40d21950 (LWP 18853)]
[New Thread 0x40716950 (LWP 18840)]
0x00002abc9842f942 in select () from /lib/libc.so.6
  3 Thread 0x40716950 (LWP 18840)  0x00002abc97ee3af1 in nanosleep ()
   from /lib/libpthread.so.0
  2 Thread 0x40d21950 (LWP 18853)  0x00002abc97ee0979 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
  1 Thread 0x2abc988c2b40 (LWP 18798)  0x00002abc9842f942 in select ()
   from /lib/libc.so.6

Thread 3 (Thread 0x40716950 (LWP 18840)):
#0  0x00002abc97ee3af1 in nanosleep () from /lib/libpthread.so.0
#1  0x00000000004c972f in collection_thread (unused=<value optimized out>)
    at collection.c:34
#2  0x00002abc97edc087 in start_thread (arg=<value optimized out>)
    at pthread_create.c:297
#3  0x00002abc98435bcd in clone () from /lib/libc.so.6

Thread 2 (Thread 0x40d21950 (LWP 18853)):
#0  0x00002abc97ee0979 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#1  0x00000000004c5725 in timedwait_signal_poll_cond (cond=0x2aaaab5d1268, 
    mutex=0x2aaaab5d1240, timeout=0x1, alertable=-1) at handles.c:1443
#2  0x00000000004c7c97 in _wapi_handle_timedwait_signal_handle (
    handle=<value optimized out>, timeout=0x0, alertable=0) at handles.c:1523
#3  0x00000000004d10f3 in WaitForSingleObjectEx (handle=0x404, 
    timeout=4294967295, alertable=0) at wait.c:200
#4  0x00000000004999d1 in finalizer_thread (unused=<value optimized out>)
    at gc.c:894
#5  0x0000000000458133 in start_wrapper (data=<value optimized out>)
    at threads.c:573
#6  0x00000000004c9447 in thread_start_routine (args=0x2aaaab6387c8)
    at threads.c:264
#7  0x00000000004e3612 in GC_start_routine (arg=<value optimized out>)
    at pthread_support.c:1369
#8  0x00002abc97edc087 in start_thread (arg=<value optimized out>)
    at pthread_create.c:297
#9  0x00002abc98435bcd in clone () from /lib/libc.so.6

Thread 1 (Thread 0x2abc988c2b40 (LWP 18798)):
#0  0x00002abc9842f942 in select () from /lib/libc.so.6
#1  0x00002abc97a6259c in IA__g_spawn_sync (
    working_directory=<value optimized out>, argv=<value optimized out>, 
    envp=<value optimized out>, flags=<value optimized out>, 
    child_setup=<value optimized out>, user_data=0x0, 
    standard_output=0x2aaaaaadfbc0, standard_error=0x2aaaaaadfbb8, 
    exit_status=0x2aaaaaadfbcc, error=0x0) at gspawn.c:305
#2  0x00002abc97a62978 in IA__g_spawn_command_line_sync (
    command_line=<value optimized out>, standard_output=0x2aaaaaadfbc0, 
    standard_error=0x2aaaaaadfbb8, exit_status=0x2aaaaaadfbcc, error=0x0)
    at gspawn.c:682
#3  0x000000000052514f in mono_handle_native_sigsegv (
    signal=<value optimized out>, ctx=<value optimized out>)
    at mini-exceptions.c:1061
#4  0x000000000043da7d in mono_arch_handle_altstack_exception (
    sigctx=0x2aaaaaadfc40, fault_addr=<value optimized out>, stack_ovf=0)
    at exceptions-amd64.c:845
#5  <signal handler called>
#6  0x00002abc983e9bc0 in memcpy () from /lib/libc.so.6
#7  0x000000000042723b in mono_breakpoint_clean_code (
    code=0x4077efff <Address 0x4077efff out of bounds>, 
    buf=0x7fff134cf610 "`�w@", size=<value optimized out>) at mini-amd64.c:5254
#8  0x000000000043f6ed in mono_arch_patch_callsite (
    orig_code=0x4077f00d "L\213�I\201��", addr=0x4077f060 "H\203�hM\215\035")
    at tramp-amd64.c:70
#9  0x000000000043ff9e in mono_magic_trampoline (regs=0x7fff134cf848, 
    code=0x4077f00d "L\213�I\201��", m=<value optimized out>, 
    tramp=<value optimized out>) at mini-trampolines.c:159
#10 0x00000000416c615b in ?? ()
#11 0x0000000000000000 in ?? ()
#0  0x00002abc9842f942 in select () 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.
=================================================================

make: *** [banshee.exe] Aborted (core dumped)
Comment 5 Priit Laes (IRC: plaes) 2008-05-23 16:40:05 UTC
At least the tomboy crash has been fixed with mono-1.9.1 (not yet in portage though...). Haven't had time to test banshee yet.
Comment 6 BedOS_Gui 2008-06-01 08:27:42 UTC
(In reply to comment #5)
> At least the tomboy crash has been fixed with mono-1.9.1 (not yet in portage
> though...). Haven't had time to test banshee yet.
> 
mono-1.9.1 compilation has failed with sigsev segfault on my box, but after compiling gnutls-2.3.11 the mono compilation works fine :-)
Comment 7 BedOS_Gui 2008-11-30 17:01:00 UTC
The bug seems to be fixed in fresh 2.0.1 mono package.
Comment 8 Peter Alfredsen (RETIRED) gentoo-dev 2008-12-26 00:53:02 UTC
Fixed, then.