erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.69k stars 55 forks source link

Stack overflow occurs in REPL when running parser on Windows #133

Closed GreasySlug closed 2 years ago

GreasySlug commented 2 years ago

Describe the bug

related #115

The Class.er file will execute, but the REPL will cause an overflow in windows10.

I could not reproduce this in Ubuntu(wsl2).

So this is probably a windows specific issue.

   Compiling erg v0.4.0-beta.0
    Finished dev [unoptimized + debuginfo] target(s) in 1.58s
     Running `target\debug\erg.exe`
Starting the REPL server...
Connecting to the REPL server...
Erg interpreter 0.4.0-beta.0 (tags/?:449c6ae, 2022/09/08 14:22:41.13) on x86_64/windows
>>> Person = Class { .name = Str }

thread 'main' has overflowed its stack
Traceback (most recent call last):
  File "<string>", line 18, in <module>
ConnectionResetError: [WinError 10054] 既存の接続はリモート ホストに強制的に切断されました。
error: process didn't exit successfully: `target\debug\erg.exe` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)     

OS Windows 10