Bug 28235

Summary: System.Type change to reference source broke IronPython
Product: [Mono] Class Libraries Reporter: Piotr Zierhoffer <piotr.zierhoffer>
Component: mscorlibAssignee: Marek Safar <masafa>
Severity: normal CC: masafa, mono-bugs+mono, piotr.zierhoffer
Priority: ---    
Version: unspecified   
Target Milestone: Untriaged   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Example that fails.
complete project with precompiled binaries

Description Piotr Zierhoffer 2015-03-20 08:13:12 UTC
Created attachment 10424 [details]
Example that fails.

Git commit 5ecee9a0c835bb4a5f6f2723bc4d6af9a42da70d (and 8057adf2e8498b0ca0aa63463c16e34910a2651d fixing the build), found by git bisect, that introduced System.Type from reference sources broke something, I believe, in DLR.

My error occurred in IronPython library.

I am unable to create a minimal example of the bug, because Microsoft.Scripting is terra incognita for me, but I have managed to create a minimal example with IronPython.

The attached code, referencing the newest IronPython from https://github.com/IronLanguages/main, works both on .NET and on Mono a53e9778b33f1de82ea4639ef18f6ae9852d5534.

Required libraries from IronLanguages:

On later versions of Mono the error is:

'NullImporter' object has no attribute 'find_module'

(there is such a class in IronPython, with 'find_module' method)

I will also attach a full tar.gz with sources and compiled required libraries.
Comment 1 Piotr Zierhoffer 2015-03-20 08:18:23 UTC
Created attachment 10426 [details]
complete project with precompiled binaries
Comment 2 Marek Safar 2015-03-20 08:49:46 UTC
This looks like duplicate of  #28184. Please could you retest with #28184 fixed?
Comment 3 Piotr Zierhoffer 2015-03-20 09:13:27 UTC
I have tested on 2c95d347b6f1d3c0de92f35b60b266f446f33690 (the current HEAD), same wrong results.
Comment 4 Marek Safar 2015-03-20 12:39:34 UTC
Fixed in master