English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   support.WinUAE (http://eab.abime.net/forumdisplay.php?f=5)
-   -   crash if JIT is enabled (http://eab.abime.net/showthread.php?t=105197)

bebbo 31 December 2020 15:43

crash if JIT is enabled
 
2 Attachment(s)
I'm testing libpthread atm... and I get a WinUAE crash if JIT is enabled:


Code:

WinUAE message


JIT: serious error
JIT: 64-bit pointer (0xffffffffffffff8b) at
c:\projects\winuae\src\jit\exception_handler.cpp:510 (fatal)

Using WinUAE 4.4.0 (2020.07.01) 64.bit


program and config are attached

Toni Wilen 31 December 2020 17:45

I can't duplicate.

Perhaps it is the usual too small stack. JIT really does not like if return address is corrupted.

bebbo 01 January 2021 18:09

Quote:

Originally Posted by Toni Wilen (Post 1449706)
I can't duplicate.

Perhaps it is the usual too small stack. JIT really does not like if return address is corrupted.


(spam the exe and pray)



never mind - I found the real cause^^ - but IMHO WinUAE should not crash^^


HNY2021

Toni Wilen 01 January 2021 18:25

JIT can and will crash if program does too bad/stupid things.

Usually it seems to happen when branch/jump instructions (that was already translated) suddenly gets invalid target address when it runs translated code. It is not validated anymore after translation to keep it as fast as possible.

I am not going to touch JIT too much. I already had to fix some old shift instruction bugs and it is really annoying work and it still needs to be more optimal.

bebbo 04 January 2021 20:35

Quote:

Originally Posted by Toni Wilen (Post 1449932)
JIT can and will crash if program does too bad/stupid things.

Usually it seems to happen when branch/jump instructions (that was already translated) suddenly gets invalid target address when it runs translated code. It is not validated anymore after translation to keep it as fast as possible.

I am not going to touch JIT too much. I already had to fix some old shift instruction bugs and it is really annoying work and it still needs to be more optimal.


good to know :spin


I disabled JIT and was able to hunt down the culprit. libpthread is working better now and libnix provides thread safe FILE functions (if all is build for thread usage)^^


Thank you for WinUAE and HNY 2021


All times are GMT +2. The time now is 05:53.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.06132 seconds with 11 queries