<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>168345</bug_id>
          
          <creation_ts>2007-02-25 16:41 0000</creation_ts>
          <short_desc>dev-lang/mono-1.2.3.1 fails on a few tests</short_desc>
          <delta_ts>2007-06-26 22:48:53 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://bugzilla.ximian.com/show_bug.cgi?id=81503</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>carlo@gentoo.org</reporter>
          <assigned_to>dotnet@gentoo.org</assigned_to>
          <cc>pacho@condmat1.ciencias.uniovi.es</cc>
    
    <cc>radek@podgorny.cz</cc>

      

      
          <long_desc isprivate="0">
            <who>carlo@gentoo.org</who>
            <bug_when>2007-02-25 16:41:29 0000</bug_when>
            <thetext>Failures:
1) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeBefore2000 : Expected 25.02.1957 16:36:49 has more than one second (3600,330984) difference with actual data 25.02.1957 15:36:49
  at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected, DateTime actual, System.String message) [0x0002d] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
  at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeBefore2000 () [0x0004c] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:45
  at &lt;0x00000&gt; &lt;unknown method&gt;
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00056] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143

2) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2000 : Expected 25.02.2007 16:36:49 has more than one second (3600,363536) difference with actual data 25.02.2007 15:36:49
  at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected, DateTime actual, System.String message) [0x0002d] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
  at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2000 () [0x00042] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:58
  at &lt;0x00000&gt; &lt;unknown method&gt;
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00056] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143

3) MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2050 : Expected 25.02.2057 16:36:49 has more than one second (3600,366686) difference with actual data 25.02.2057 15:36:49
  at MonoTests.Mono.Security.ASN1ConvertTest.AssertDate (DateTime expected, DateTime actual, System.String message) [0x0002d] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:30
  at MonoTests.Mono.Security.ASN1ConvertTest.ConvertDateTimeAfter2050 () [0x0004c] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/Mono.Security/Test/Mono.Security/ASN1ConvertTest.cs:71
  at &lt;0x00000&gt; &lt;unknown method&gt;
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00056] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143

Tests not run:
1) MonoTests.Mono.Security.Cryptography.KeyPairPersistenceTest.CspFlagsMachine : Access denied to key containers files.
2) MonoTests.Mono.Security.Cryptography.KeyPairPersistenceTest.CspFlagsDefaultMachine : Access denied to key containers files.
3) MonoTests.Mono.Security.X509.X501NameTest.FromString_UnrecognizedEncoding : # support isn&apos;t implemented
4) MonoTests.Mono.Security.X509.X501NameTest.FromString_MultiValued : multi-valued support isn&apos;t implemented

make[8]: *** [run-test-lib] Error 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2007-04-09 19:41:54 0000</bug_when>
            <thetext>Have you tried to send a bug to upstream?
http://www.mono-project.com/Bugs</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2007-05-01 08:58:50 0000</bug_when>
            <thetext>I have just sent it to upstream</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2007-05-07 18:35:28 0000</bug_when>
            <thetext>Upstream says that they cannot reproduce this bug
http://bugzilla.ximian.com/show_bug.cgi?id=81503

Upstream reply:

I can&apos;t replicate this problem on my computers, for both 1.1 and 2.0
profiles. Also none of the building bots (on several architectures)
has this problem.

The convertion code use DateTime to do parts of it&apos;s calculation. It&apos;s
possible that the real issue is hidden there (and only exposed on
these tests).

Do you see any date related failures when running corlib&apos;s unit tests
? If so can you paste/attach them to this bug report ? please also
include extra data like which profile (1.1 or 2.0) you used to execute
the tests

If not can you supply more information about your environment, e.g.
date format, time zone ...

Thanks

_____

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@condmat1.ciencias.uniovi.es</who>
            <bug_when>2007-05-07 19:37:01 0000</bug_when>
            <thetext>There are many permissions problems because tests want to access to /root/:


75) MonoTests.System.Security.Cryptography.DSACryptoServiceProviderTest.ConstructorKeySizeCspParameters : System.Security.Cryptography.CryptographicException : Could not create user key store &apos;/root/.config/.mono/keypairs&apos;.
  ----&gt; System.UnauthorizedAccessException : Access to the path &quot;/root/.config&quot; is denied.
  at Mono.Security.Cryptography.KeyPairPersistence.get_UserPath () [0x00090] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:224 
  at Mono.Security.Cryptography.KeyPairPersistence.get_Filename () [0x0007b] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:141 
  at Mono.Security.Cryptography.KeyPairPersistence.Load () [0x00000] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:167 
  at System.Security.Cryptography.DSACryptoServiceProvider..ctor (Int32 dwKeySize, System.Security.Cryptography.CspParameters parameters) [0x000ae] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Security.Cryptography/DSACryptoServiceProvider.cs:108 
  at MonoTests.System.Security.Cryptography.DSACryptoServiceProviderTest.ConstructorKeySizeCspParameters () [0x0000e] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Test/System.Security.Cryptography/DSACryptoServiceProviderTest.cs:137 
  at &lt;0x00000&gt; &lt;unknown method&gt;
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00056] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:143 
--CryptographicException
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006e] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:118 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009f] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:88 
  at System.IO.DirectoryInfo.Create () [0x00000] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:121 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:99 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009f] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:88 
  at System.IO.DirectoryInfo.Create () [0x00000] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/DirectoryInfo.cs:121 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:99 
  at System.IO.Directory.CreateDirectory (System.String path) [0x0009f] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/System.IO/Directory.cs:88 
  at Mono.Security.Cryptography.KeyPairPersistence.get_UserPath () [0x00063] in /var/tmp/portage/dev-lang/mono-1.2.3.1/work/mono-1.2.3.1/mcs/class/corlib/Mono.Security.Cryptography/KeyPairPersistence.cs:218 



Seems like bug 146967 , access to /root/.config is needed by mono tests</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jurek@gentoo.org</who>
            <bug_when>2007-06-26 22:48:53 0000</bug_when>
            <thetext>Those problems have been fixed in portage since 1.2.4, thanks</thetext>
          </long_desc>
      
    </bug>

</bugzilla>