[Ironpython-users] IronPython, Daily Digest 3/31/2012

no_reply at codeplex.com no_reply at codeplex.com
Sun Apr 1 15:12:09 CEST 2012


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] Infinite loop crashes IronPython StackOverflowException
2. [New comment] Infinite loop crashes IronPython StackOverflowException
3. [New comment] Infinite loop crashes IronPython StackOverflowException

----------------------------------------------

ISSUES

1. [New issue] Infinite loop crashes IronPython StackOverflowException
http://ironpython.codeplex.com/workitem/32515
User dsblank has proposed the issue:

"At first I thought that this was a Mono runtime or compile issue, but trying on Windows with .NET runtime and direct binaries, I get a crash in all situations. (Although, I believe that in earlier versions of IronPython, it did work on .NET but not Mono, so there may be an additional problem with Mono).

Sample code:

"""
def loop():
    loop()
loop()
"""

Sample run on Windows 7:

C:\Users\dblank\Desktop>cd IronPython-2.7.2.1
C:\Users\dblank\Desktop\IronPython-2.7.2.1>ipy.exe
IronPython 2.7.2.1 (2.7.0.40) on .NET 4.0.30319.261 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> def loop():
...     loop()
...
>>> loop()

Process is terminated due to StackOverflowException.

Sample run on Mono/Linux:

$ mono bin/ipy.exe
IronPython 3.0 (3.0.0.0) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
>>> def loop():
... 	loop()
... 
>>> loop()
Stacktrace:


Native stacktrace:

	mono() [0x80e126c]
	mono() [0x812046c]
	mono() [0x805fe7d]
	[0x20240c]
	mono() [0x812040b]
	mono() [0x805fe7d]
	[0x20240c]
	[0x962367]
	[0x9622e8]
	[0x961d6b]
	[0x573cec]
	[0x221450]
	[0xd0c1e0]
	[0x17bee8]
	[0x1e29ab]
	[0x17befd]

	[0x1e29ab]
	[0x17befd] (these two repeat about 120 times)

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

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

Aborted"-----------------

2. [New comment] Infinite loop crashes IronPython StackOverflowException
http://ironpython.codeplex.com/workitem/32515
User slide_o_mix has commented on the issue:

"To enable recursion limit tracking, you need to add -X:MaxRecursion <somenum> to the command line options to ipy.exe, otherwise recursion limit tracking is turned off."-----------------

3. [New comment] Infinite loop crashes IronPython StackOverflowException
http://ironpython.codeplex.com/workitem/32515
User dsblank has commented on the issue:

"Yes, you are correct: adding the -X:MaxRecursion flag works on .NET and Mono; thanks!

But, shouldn't this have a default value that makes it match CPython's behavior?"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120401/d623d3bb/attachment.html>


More information about the Ironpython-users mailing list