Hello! I'm trying to run ETH PlugIn Oberon for Windows v2.5, downloaded from ftp://ftp.inf.ethz.ch/pub/ETHOberon/Win95NT/PlugIn/ : WinOberon.zip + WinOberonFix.zip Unfortunately, it randomly crashes on startup (more often than not). The included debugger shows that there is an "access violation" happening in (Win32.)Threads.CheckStacks. The same crash happens for v2.4 and for v2.5 without the *Fix.zip installed. It is likely that the problem stems from the "sp=0" value, possibly at the SYSTEM.GET(sp, p) call. If I'm correct, then the problem might be caused by Windows 7 permission issues in Kernel32.GetThreadContext call. That's just a wild guess, though, for I don't know how to check it. And it's strange that once out of 10 tries the exception does not happen and the system runs normally. When it does crash, I see the main window appearing, maximizing itself, fully painting, and then Windows asks me if I'd like to report the bug to the developers. I'm running Windows 7 Professional. The Debugger's "Action - Show Trap" output: Debugger started Oberon ready access violation Threads.CheckStacks PC = 5406 bottom = 40960000 cont = 0404D98H ЮЏдъ.ontext (I5Lъ.ontext) p = 0 sp = 0 t = 01607A40H I5Lъ.э°@ (I5Lъ.hread) Kernel.GC PC = 4377 excp = 0409438H I5Lъ.xcpFrm i = 0 m = 00H (I5Lъ.oduleDesc) p = 4219104 ptr = 0404E38H I5Lъ.xceptionRecord (I5Lъ.lockPtr) ptradr = 4200560 Oberon.GC PC = 6411 me = 01607CA0H I5Lъ.и% (I5Lъ.askDesc) Oberon.OLoop PC = 13214 M = 0457558H I5Lъ.nputMsg V = 016A1660H I5Lъ.nputMsg (I5Lъ.iewerDesc) lastTask = 01607CA0H I5Lъ.и% (I5Lъ.askDesc) time = 1084556749 Threads.Wrapper PC = 3780 excp = 04044D8H I5Lъ.xcpFrm id = 3892 par = 0 pt = 00H (I5Lъ.hread) t = 01607A40H I5Lъ.э°@ (I5Lъ.hread) wrapper = Threads.Wrapper PC = 3486 Unknown EIP = 077A21174H EBP = 0270FF94H Unknown EIP = 0778DB3F5H EBP = 0270FFD4H Unknown EIP = 0778DB3C8H EBP = 0270FFECH Is there a fix available? Is there anyone working feverishly on the solution? Alternatively, what can I run if I don't want to reboot or install virtual machines? Can Aos run as a Windows 7 app? ---=====--- Alexander
Hello Yes, WinAos should work on Windows 7. I implemented a fix for the Windows Vista und Windows 7 problems last year but did never make a new release. You can download an experimental version of PlugIn Oberon from my NAS at: http://83.228.150.139/WinOberon.zip Emil
Hello! EZ> I implemented a fix for the Windows Vista und Windows 7 problems last year EZ> but did never make a new release. I looked at the diff for Win32.Threads.Mod and saw the fix in CheckStacks: ... res := Kernel32.GetThreadContext(t.handle, cont); IF res = Kernel32.False THEN (* hack for Windows 7 Beta *) cont.Esp := t.stackBottom END; Kernel.Candidate(cont.Edi); Kernel.Candidate(cont.Esi); Kernel.Candidate(cont.Ebx); Kernel.Candidate(cont.Edx); Kernel.Candidate(cont.Ecx); Kernel.Candidate(cont.Eax); sp := cont.Esp ... Turns out I was right about the sp = 0 and GetThreadContext failure. My question is: if GetThreadContext fails, is there a point in calling Kernel.Candidate for the register values? I think there is no point, and it can result in invalid memory access if the contents of 'cont' aren't properly initialized (and they are not initialized in the CheckStacks procedure). Is there a way to ensure that GetThreadContext call won't result in error? Is the problem in the lack of the THREAD_GET_CONTEXT permission for the thread handle? http://msdn.microsoft.com/en-us/library/ms679362(VS.85).aspx ---=====--- Alexander
Hallo Thank you for your fast feedback. Yes you are right about the unnecessary register checks. I am currently on a business trip for three weeks. But I will make a new release as soon as a I am back. - Emil
Hi Emil,
make a new release as soon as a I am back.
thanks a lot in advance ... -- Bernhard
-----Original Message----- From: Emil Zeller [mailto:emil.zeller@gmail.com] Sent: Friday, November 26, 2010 8:31 AM To: ????????? ????? Cc: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] PlugIn Oberon for Windows
Hallo
Thank you for your fast feedback. Yes you are right about the unnecessary register checks. I am currently on a business trip for three weeks. But I will make a new release as soon as a I am back. - Emil
Hello, Emil! EZ> Thank you for your fast feedback. Yes you are right about the unnecessary EZ> register checks. EZ> I am currently on a business trip for three weeks. But I will make a new EZ> release as soon as a I am back. Did you manage to make a new release? ---=====--- Alexander
Hi Alex,
I'm trying to run ETH PlugIn Oberon for Windows v2.5, downloaded from ftp://ftp.inf.ethz.ch/pub/ETHOberon/Win95NT/PlugIn/ :
You got a program that was intended for Windows 95, perhaps 98. Don't expect it to run flawlessly on anything newer than XP. Create a dual boot nachine: Win 7P and XP. Boot as required. -- Met vriendelijke groeten, Jan Verhoeven http://www.verhoeven272.nl
Hello! JV> You got a program that was intended for Windows 95, perhaps 98. Don't JV> expect it to run flawlessly on anything newer than XP. JV> Create a dual boot nachine: Win 7P and XP. Boot as required. I don't reboot my PC for months, but thanks for the advice. EZ> I implemented a fix for the Windows Vista und Windows 7 problems last year EZ> but did never make a new release. I think it would be really great if you did. EZ> You can download an experimental version of PlugIn Oberon from my NAS at: Thank you, it works! ---=====--- Alexander
participants (4)
-
Alexander Iljin -
Emil Zeller -
Jan Verhoeven -
Treutwein Bernhard