List Info

Thread: Infinite Loops Crash VM




Infinite Loops Crash VM
country flaguser name
United States
2008-03-11 18:57:56
Issue status update for 
http://smalltalk.gn
u.org/node/187
Post a follow up: 
htt
p://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:

samosiris:~$ 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.




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

Baseless Recursion Crash VM
country flaguser name
United States
2008-03-12 17:33:48
Issue status update for 
http://sma
lltalk.gnu.org/project/issue/187
Post a follow up: 
htt
p://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

Someone has properly informed me that this is not an
infinite loop, but
instead is a baseless recursion.  (I blame my Scheme
background for
miscommunicating the issue.)




_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )