[IronPython] 2.0 beta3: with statement: SystemError: Operation could destabilize the runtime.

Curt Hagenlocher curt at hagenlocher.org
Thu Jul 3 06:09:36 CEST 2008


I think we're expecting to release Beta 4 in about a month, but there's some
chance we'll have an intermediate source drop before then.

On Wed, Jul 2, 2008 at 6:14 PM, Liwei Peng <liwei.peng at gmail.com> wrote:

> Thanks.
>
> Can you tell me what's the Beta4 schedule?
>
> liwei
>
>   On Wed, Jul 2, 2008 at 4:04 PM, Curt Hagenlocher <curt at hagenlocher.org>
> wrote:
>
>> I can reproduce this problem in 2.0 beta 3, but not in the current
>> sources.  This means that the problem should be resolved in beta 4 -- or in
>> the next source drop to CodePlex, assuming there is one before the next
>> beta.
>>
>> The bad news is that I can't suggest any workaround for beta 3.
>>
>>   On Wed, Jul 2, 2008 at 12:08 PM, Liwei Peng <liwei.peng at gmail.com>
>> wrote:
>>
>>> I got StackOverflowException. no Snippets.dll is created in my working
>>> directory.
>>>
>>> d:\tools\IronPython-2.0B3>ipy.exe -X:ExceptionDetail -X:SaveAssemblies
>>> a.py
>>>
>>> Process is terminated due to StackOverflowException.
>>>
>>> d:\tools\IronPython-2.0B3>ipy.exe  -X:SaveAssemblies a.py
>>> Process is terminated due to StackOverflowException.
>>>
>>>
>>> On Wed, Jul 2, 2008 at 11:36 AM, Dino Viehland <
>>> dinov at exchange.microsoft.com> wrote:
>>>
>>>>  One more command line option – can you run with –X:SaveAssemblies?
>>>>  You'll get a Snippets.dll written out to disk that you could send to us and
>>>> we can see why the code isn't verifiable (or you can run peverify on it and
>>>> report the verification errors).  It looks like it could be a DLR code gen
>>>> bug.
>>>>
>>>>
>>>>
>>>> *From:* users-bounces at lists.ironpython.com [mailto:
>>>> users-bounces at lists.ironpython.com] *On Behalf Of *Liwei Peng
>>>> *Sent:* Wednesday, July 02, 2008 11:33 AM
>>>> *To:* Discussion of IronPython
>>>> *Subject:* Re: [IronPython] 2.0 beta3: with statement: SystemError:
>>>> Operation could destabilize the runtime.
>>>>
>>>>
>>>>
>>>> Thanks for the help. The following is what I got:
>>>>
>>>>
>>>>
>>>> d:\tools\IronPython-2.0B3>ipy.exe -X:ExceptionDetail a.py
>>>> Operation could destabilize the runtime.
>>>>    at _stub_$36##33(Closure , CallSite , CodeContext , Object , Object )
>>>>    at _stub_MatchCaller(Object , CallSite , Object[] )
>>>>    at Microsoft.Scripting.Actions.CallSite`1.UpdateAndExecute(Object[]
>>>> args)
>>>>    at
>>>> Microsoft.Scripting.Actions.UpdateDelegates.Update3[T,T0,T1,T2,TRet](CallSite
>>>> site
>>>> , T0 arg0, T1 arg1, T2 arg2)
>>>>    at S$2.Initialize(CodeContext )
>>>>    at IronPython.Hosting.PythonCommandLine.RunFileWorker(String
>>>> fileName)
>>>>    at IronPython.Hosting.PythonCommandLine.RunFile(String fileName)
>>>> SystemError: Operation could destabilize the runtime.
>>>>
>>>>
>>>> Liwei
>>>>
>>>> On Wed, Jul 2, 2008 at 11:20 AM, Curt Hagenlocher <curt at hagenlocher.org>
>>>> wrote:
>>>>
>>>> I'm sorry -- Dino's right, I should have said "-X:ExceptionDetail".
>>>> Could you run again with that?
>>>>
>>>> On Wed, Jul 2, 2008 at 10:36 AM, Liwei Peng <liwei.peng at gmail.com>
>>>> wrote:
>>>>
>>>> Thanks for the help. The following are more details:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> 1) d:\tools\IronPython-2.0B3>ipy.exe -X:ShowClrExceptions a.py
>>>>
>>>>
>>>> Traceback (most recent call last):
>>>>   File "a.py", line 17, in a.py
>>>> SystemError: Operation could destabilize the runtime.
>>>>
>>>> CLR Exception:
>>>>     VerificationException
>>>> :
>>>>
>>>>
>>>> Operation could destabilize the runtime.
>>>>
>>>> 2) I didn't do anything at force IronPython to run as a 32-bit app or
>>>> 64-bit app.
>>>>
>>>> My OS is x64 W2K8 server. ipy.exe is a 32-bit binary.
>>>>
>>>> 3) MPI.net is built from CLR 2.0.
>>>>
>>>>
>>>>
>>>> thanks,
>>>>
>>>>
>>>>
>>>> Liwei
>>>>
>>>>
>>>>
>>>> On Wed, Jul 2, 2008 at 9:57 AM, Curt Hagenlocher <curt at hagenlocher.org>
>>>> wrote:
>>>>
>>>> That exception isn't coming from IronPython -- not directly, anyway.
>>>> Can you re-run with the -X:ShowClrExceptions flag?
>>>>
>>>>
>>>>
>>>> Have you done anything to force IronPython to run as a 32-bit app or is
>>>> it running as a 64-bit app (ie natively)?  Is MPI.NET <http://mpi.net/>built against CLR 2.0?
>>>>
>>>> On Wed, Jul 2, 2008 at 9:49 AM, Liwei Peng <liwei.peng at gmail.com>
>>>> wrote:
>>>>
>>>>   Hi,
>>>>
>>>>
>>>>
>>>> I used IronPython 2.0 Beta3 using the with statement. I got the
>>>> following error:
>>>>
>>>>
>>>>
>>>> >ipy.exe a.py
>>>>
>>>> Traceback (most recent call last):
>>>>   File "a.py", line 17, in a.py
>>>> SystemError: Operation could destabilize the runtime.
>>>>
>>>>
>>>>
>>>> What I did:
>>>>
>>>> 1) create a __future__.py file with 1 line:
>>>>
>>>> with_statement=True
>>>>
>>>>
>>>>
>>>> 2) run the following script. the error occured in the line "with
>>>> MPI.Environment(argarrayref) as mpienv:"
>>>>
>>>> from __future__ import with_statement
>>>> import sys
>>>> import clr
>>>> import System
>>>>
>>>> sys.path.append("C:\Program Files (x86)\MPI.NET <http://mpi.net/>\Lib")
>>>> clr.AddReferenceToFile("MPI.dll")
>>>> import MPI
>>>>
>>>> argarray = System.Array[str](sys.argv)
>>>> argarrayref = clr.Reference[ System.Array[str] ]( argarray )
>>>>
>>>> with MPI.Environment(argarrayref) as mpienv:
>>>>         n=100
>>>>
>>>> Question: how can I fix it? thanks,
>>>>
>>>>
>>>>
>>>> Liwei
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.ironpython.com
>>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ironpython.com
>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080702/fb933820/attachment.html>


More information about the Ironpython-users mailing list