REBOL3 tracker
  0.9.12 beta
Ticket #0001569 User: anonymous

Project:



rss
TypeBug Statustested Date15-Apr-2010 22:05
Versionalpha 97 CategorySecurity Submitted bySunanda
PlatformAll Severitycrash Priorityhigh

Summary UNSET 'SELF works, should throw error, provokes system crash
Description cc#1197 says SELF is protected, eg:
self: 9999 ;; will fail.

But today, I can do this:

unset 'self

If I then do a few recycles, eg.../
loop 10 [recycle] ;; 10 is usually enough
....I get this:

r3-97-3-1.exe has stopped working
Problem signature:
Problem Event Name:    APPCRASH
Application Name:    r3-a97-3-1.exe
Application Version:    0.0.0.0
Application Timestamp:    4b6e4247
Fault Module Name:    r3-a97-3-1.exe
Fault Module Version:    0.0.0.0
Fault Module Timestamp:    4b6e4247
Exception Code:    c0000005
Exception Offset:    00006e16
OS Version:    6.0.6002.2.2.0.768.3
Locale ID:    2057
Additional Information 1:    9220
Additional Information 2:    93aad76e29b5161344a7021ba2930d6d
Additional Information 3:    cdbb
Additional Information 4:    e0f62c006e6b5c1c7f9731ff03577e05


Example code
unset 'self
loop 100 [recycle]

Assigned ton/a Fixed inalpha 98 Last Update6-May-2010 08:57


Comments
(0002198)
PeterWood
17-Apr-2010 07:31

Slightly different behaviour under Mac OS X that may help identify the problem:

>> unset 'self
>> loop 100 [recycle]
== 0

>> loop 100 [recycle]
** Script error: loop has no value

>> loop 100 [recycle]
REBOL System Error:
REBOL System Error #1224: assertion failed

Program terminated abnormally.
This should never happen.
Please contact www.REBOL.com with details.
(0002200)
BrianH
18-Apr-2010 19:16

UNSET 'self shouldn't work at all - it should throw the same error that attempting to set 'self does. Causing a crash is just a bonus.
(0002239)
Carl
26-Apr-2010 20:35

>> unset 'self
** Script error: cannot set/unset self - it is protected

Date User Field Action Change
6-May-2010 08:57 BrianH Status Modified built => tested
1-May-2010 08:45 carl Fixedin Modified => alpha 98
26-Apr-2010 20:35 carl Status Modified reviewed => built
26-Apr-2010 20:35 carl Comment : 0002239 Added -
18-Apr-2010 19:16 BrianH Comment : 0002200 Added -
18-Apr-2010 19:14 BrianH Summary Modified UNSET 'SELF provokes system crash => UNSET 'SELF works, should throw error, provokes system crash
18-Apr-2010 19:14 BrianH Description Modified -
18-Apr-2010 19:14 BrianH Code Modified -
18-Apr-2010 19:14 BrianH Status Modified submitted => reviewed
18-Apr-2010 19:14 BrianH Priority Modified normal => high
18-Apr-2010 19:14 BrianH Platform Modified Windows => All
17-Apr-2010 07:31 PeterWood Comment : 0002198 Added -
15-Apr-2010 22:05 sunanda Ticket Added -