Re: [BLACKBOX] Serious bug in BlackBox

From: [at]} <Chris>
Date: Sun, 23 May 2010 08:51:17 +0930

----boundary-LibPST-iamunique-294751135_-_-
Content-type: text/plain

> -----Original Message-----
> From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
> Oleg N. Cher
> Sent: Sunday, 23 May 2010 7:37 AM
> To: BLACKBOX{([at]})nowhere.xy
> Subject: [BLACKBOX] Serious bug in BlackBox
>
> Dear Community,
>
> I have found and has noticed serious problem in several (!)
> buildings of
> BlackBox,
> including the last available version 1.6-rc6, from the official OMinc
> website.
>
> You can compile and run this module:
>
> MODULE Sample;
> IMPORT StdLog;
>
> PROCEDURE Do* ;
> BEGIN
> StdLog.String('------------------------> ')
> END Do;
>
> END Sample.
>
> O [Commander] Sample.Do ~
>
> It runs without problems. But try to run this module:
>
>
http://stefcr.mgslab.com/files/DesktopShowRecycleBin.odc
>
> That contains THE SAME program text, but it traps on running:
>
> http://stefcr.mgslab.com/files/Trap.png
>
> (Looks as hidden problem in StdInterpreter.Scan too difficult to find)
>

The postmortem dump showing the location of the error and the values of the
variables at the time gives good clues. It appears that
'WinsettingsDesktopShowRecycleBin' as a module name is longer than allowed
for (ARRAY 32 OF CHAR) in StdInterpreter.

In the short term a workaround is to rename the module to
WinDesktopShowRecycleBin or something similar. Personally I believe even
that is too much of a mouthful but the details could depend on factors I am
not aware of. A good rule of thumb is to make identifiers as short as
possible but not shorter - (sounds familiar) ;-)

While I agree it is a serious bug fortunately it is one that is unlikely to
occur too often in practice. e.g. the longest module identifier I could find
in the whole of BlackBox is 'XhtmlTextTableMarkers'. This is still ten or so
characters short of the limit.

--
Chris Burrows
CFB Software
Astrobe: ARM Oberon-07 Development System 
http://www.astrobe.com
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-294751135_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2l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U29mdHdhcmVccGFyDQpBc3Ryb2JlOiBBUk0gT2Jlcm9uLTA3IERl
dmVsb3BtZW50IFN5c3RlbSBccGFyDQpodHRwOi8vd3d3LmFzdHJvYmUuY29tXHBhcg0KXHBhcg0K
XHBhcg0KLS0tLVxwYXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkg
IlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSFxwYXINCn0=
----boundary-LibPST-iamunique-294751135_-_---
Received on Sun May 23 2010 - 01:21:17 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:31 UTC