help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [feature] Infinite Loops Crash VM


From: Sam Phillips
Subject: [Help-smalltalk] [feature] Infinite Loops Crash VM
Date: Tue, 11 Mar 2008 16:57:56 -0700

Issue status update for http://smalltalk.gnu.org/node/187 Post a follow up: http://smalltalk.gnu.org/project/comments/add/187

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     feature requests
Priority:     normal
Assigned to:  Unassigned
Reported by:  sdp
Updated by:   sdp
Status:       active

An infinite loop will crash the VM.

Simple Example:

address@hidden:~$ gst
GNU Smalltalk ready

st> Object subclass: Foo [ Foo class >> new [ ^ self new ] ]
st> Foo new
"Global garbage collection... done"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... done, heap grown"
"Global garbage collection... Segmentation fault (core dumped)



It would be convenient if gst could perform a maximum recursion check
(similar to python) on invoking a CompiledMethod, and signal an
Exception if the
(configurable) maximum recursion depth is reached or exceeded.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]