vlang / playground

V Playground: run, edit, share V code online

Home Page:https://play.vlang.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation fault

mingodad opened this issue · comments

When trying to test the attached file on the playground it shows:

---- Testing... ----------------------------------------------------------------
 FAIL   302.762 ms /box/code_test.v
Segmentation fault

--------------------------------------------------------------------------------
Summary for all V _test.v files: 1 failed, 1 total. Runtime: 303 ms, on 1 job.

Exited with error status 1

exprtq.v.zip

It compiles locally, with either: -message-limit 7859 , or with -w (otherwise there is a build error, since there are 7858 warnings for the redundant parentheses).

On my box however, it needed 235MB to compile with tcc, and I think that is the reason for the reported error in the playground - it just exceeds the memory limit of the jail, in which the compilations are run, and the compilation process is killed.

I think that the reported error, should be better.