Hi, I know, this has been my on-and-off topic, here it is again. I keep record of traps I occasionally got, when working on new modules. [1] When compiling does not finish LED=00100001 LED(21H) ==> Oberon.GC mark does not pass [2] When unloading fails LED=00100111 LED(27H) ==> Oberon.GC scan does not pass [3] When executing commands, e.g. ShowModules Position 8280 TRAP1 in Modules REPEAT s[k] := ch; (* <== array index *) [4] When loading a file Position 6656 TRAP4 in Files WHILE (buf.apos # pos) (* <== buf is NIL *) I do quite a bit of unloading, before I get things done, Is well possible then I smash the heap somehow? I am surprised that on some rare occasions I even got [1] on freshly booted system, and the first thing was to recompile a module. I have experimented with ORB object allocation, class, exno, lev: as BYTEs vs INTEGERs. With INTEGERs, [1] appears less frequent, than BYTEs, but that's only an observation, is most likely not the reason. -- Tomas Kral <thomas.kral@email.cz>
Which PO2013 Disk image did you start with? (source and date) Can you describe any sequence of steps, 1. from initial boot time and 2. on a system which uses all the latest code from the www.projectoberon.com site and 3. which doesn't include any of your modifications to the latest code that reliably reproduces any of these problems? Regards, Chris Burrows CFB Software http://www.astrobe.com
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Tomas Kral Sent: Sunday, 14 June 2020 12:42 AM To: Oberon@lists.inf.ethz.ch Subject: [Oberon] PO2013 - Infrequent TRAPs
Hi,
I know, this has been my on-and-off topic, here it is again. I keep record of traps I occasionally got, when working on new modules.
[1] When compiling does not finish LED=00100001 LED(21H) ==> Oberon.GC mark does not pass
[2] When unloading fails LED=00100111 LED(27H) ==> Oberon.GC scan does not pass
[3] When executing commands, e.g. ShowModules Position 8280 TRAP1 in Modules REPEAT s[k] := ch; (* <== array index *)
[4] When loading a file Position 6656 TRAP4 in Files WHILE (buf.apos # pos) (* <== buf is NIL *)
I do quite a bit of unloading, before I get things done, Is well possible then I smash the heap somehow?
I am surprised that on some rare occasions I even got [1] on freshly booted system, and the first thing was to recompile a module.
I have experimented with ORB object allocation, class, exno, lev: as BYTEs vs INTEGERs.
With INTEGERs, [1] appears less frequent, than BYTEs, but that's only an observation, is most likely not the reason.
-- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
1. from initial boot time and 2. on a system which uses all the latest code from the www.projectoberon.com site and 3. which doesn't include any of your modifications to the latest code
that reliably reproduces any of these problems?
Hi Chris, I see, distinguish between latest source with or without my own mods. Is difficult to reproduce as it happens at random, on some occasions. I run minimal PO2013 FPGA system with 1MB. Is unlikely to happen on emulated systems, with megs of RAM. Also I admit, is usually me doing something wrong, but particularly trap with heap and other emntioned eralier became a wee bit persistent. 2016 ORB version, very very rarely does trap on heap. < MODULE ORB; (*NW 25.6.2014 / 4.4.2017 in Oberon-07*) ---
MODULE ORB; (*NW 25.6.2014 / 17.9.2016 in Oberon-07*) 25c25 < class*, exno*: BYTE;
class*, lev*, exno*: INTEGER;
27d26 < lev*: INTEGER; My mods in modules same as in official release, except bottom-up search in modules stack, pls see comment. MODULE Modules; (*Link and load on RISC; NW 20.10.2013 / 9.4.2016*) IF res = 0 THEN (*search for a hole in the list*) INC(size, DescSize); (*mod*) m := root; mod := NIL; (*WHILE (mod # NIL) & ~((mod.name[0] = 0X) & (mod.size >= size)) DO mod := mod.next END ;*) WHILE m # NIL DO IF (m.name[0] = 0X) & (m.size >= size) THEN mod := m END ; m := m.next END ; MODULE Kernel; (*NW/PR 11.4.86 / 27.12.95 / 4.2.2014*) ... (* ---------- New: heap allocation ----------*) PROCEDURE GetBlock(VAR p: LONGINT; len: LONGINT); (*len is multiple of 256*) I have some understanding how heap works, we maintain three `list1 := 0; list2 := 0; list3 := 0; list0 := heapOrg;' distinct lists. 32/64/128/[multi]256 bytes blocks, each with hidden type tag (two addresses Mk/Tag, two INTs = 8 bytes). Allocated by a trap through ORB, aligned on words. (or is it aligned?) -- Tomas Kral <thomas.kral@email.cz>
participants (2)
-
Chris Burrows -
Tomas Kral