juancarlospaco / nimrun-action-minefield

Minefield
1 stars 0 forks source link

TESTING #2

Closed juancarlospaco closed 1 year ago

juancarlospaco commented 1 year ago

!nim c

type
  FunPtr = proc () {.noSideEffect, gcsafe.}
  FunNimCallPtr = proc () {.noSideEffect, gcsafe, nimcall.}
proc ff() = discard
echo ff is FunPtr
echo ff is FunNimCallPtr
echo typeof(ff)
juancarlospaco commented 1 year ago

!nim c

type
  FunPtr = proc () {.noSideEffect, gcsafe.}
  FunNimCallPtr = proc () {.noSideEffect, gcsafe, nimcall.}
proc ff() = discard
echo ff is FunPtr
echo ff is FunNimCallPtr
echo typeof(ff)
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

false
true
proc (){.noSideEffect, gcsafe.}

Stats

  • Created 2023-07-05T13:19:19Z
  • Started 2023-07-05T13:19:50
  • Finished 2023-07-05T13:19:51
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

false
true
proc (){.noSideEffect, gcsafe, locks: 0.}

Stats

  • Created 2023-07-05T13:19:19Z
  • Started 2023-07-05T13:19:51
  • Finished 2023-07-05T13:19:52
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

false
true
proc (){.noSideEffect, gcsafe, locks: 0.}

Stats

  • Created 2023-07-05T13:19:19Z
  • Started 2023-07-05T13:19:55
  • Finished 2023-07-05T13:19:55
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

false
true
proc (){.noSideEffect, gcsafe, locks: 0.}

Stats

  • Created 2023-07-05T13:19:19Z
  • Started 2023-07-05T13:19:58
  • Finished 2023-07-05T13:19:59
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

false
true
proc (){.noSideEffect, gcsafe, locks: 0.}

Stats

  • Created 2023-07-05T13:19:19Z
  • Started 2023-07-05T13:20:14
  • Finished 2023-07-05T13:20:15
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

false
true
proc (){.noSideEffect, gcsafe, locks: 0.}

Stats

  • Created 2023-07-05T13:19:19Z
  • Started 2023-07-05T13:20:28
  • Finished 2023-07-05T13:20:28
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 41 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 1 year ago

!nim cpp --gc:none --exceptions:goto

import std/pegs
discard pegs.peg("")
juancarlospaco commented 1 year ago

!nim cpp --gc:none --exceptions:goto

import std/pegs
discard pegs.peg("")
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-05T13:33:25Z
  • Started 2023-07-05T13:33:50
  • Finished 2023-07-05T13:33:52
  • Duration 1 minute
  • Commands nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

Stats

  • Created 2023-07-05T13:33:25Z
  • Started 2023-07-05T13:33:52
  • Finished 2023-07-05T13:33:53
  • Duration 1 minute
  • Commands nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

Stats

  • Created 2023-07-05T13:33:25Z
  • Started 2023-07-05T13:33:56
  • Finished 2023-07-05T13:33:57
  • Duration 1 minute
  • Commands nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

Stats

  • Created 2023-07-05T13:33:25Z
  • Started 2023-07-05T13:33:59
  • Finished 2023-07-05T13:34:01
  • Duration 1 minute
  • Commands nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-05T13:33:25Z
  • Started 2023-07-05T13:34:15
  • Finished 2023-07-05T13:34:16
  • Duration 1 minute
  • Commands nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :-1: FAIL

Output

Error: Command failed: nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
command line(1, 2) Error: invalid command line option: '--exceptions'

Stats

  • Created 2023-07-05T13:33:25Z
  • Started 2023-07-05T13:34:30
  • Finished 2023-07-05T13:34:30
  • Duration now
  • Commands nim cpp --gc:none --exceptions:goto --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 155.19 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #include #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct NimStringDesc; struct TGenericSeq; struct tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ; struct tyObject_NonTerminalObj__VMn2tGRm8B9a9cqMEec3KPEA; struct tySequence__5DSB9bTgCQCsIApS5TVlG8g; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NU8 tyEnum_PegKind__r9a6rAhGclsLWkBysfmtr6Q; struct tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ { tyEnum_PegKind__r9a6rAhGclsLWkBysfmtr6Q kind; union{ NimStringDesc* term; NIM_CHAR ch; NU8* charChoice; tyObject_NonTerminalObj__VMn2tGRm8B9a9cqMEec3KPEA* nt; NI index; tySequence__5DSB9bTgCQCsIApS5TVlG8g* sons; }; }; struct tySequence__5DSB9bTgCQCsIApS5TVlG8g : TGenericSeq { tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, peg__43AZ7ZFAo8xUltgm3ekenw)(NimStringDesc* pattern, tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ* Result); static N_INLINE(void, nimZeroMem)(void* p, NI size); static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_pegsDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_ = memset(a, v, ((size_t) (size))); } static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result; } static N_INLINE(void, nimZeroMem)(void* p, NI size) { NIM_BOOL* nimErr_; {nimErr_ = nimErrorFlag(); nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; }BeforeRet_: ; } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); stdlib_pegsDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ T1_; NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimErr_ = nimErrorFlag(); nimZeroMem((void*)(&T1_), sizeof(tyObject_Peg__4Bytir9b2lq5I84yi5O7ztQ)); peg__43AZ7ZFAo8xUltgm3ekenw(((NimStringDesc*) NIM_NIL), (&T1_)); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; (void)(T1_); BeforeRet_: ; nimTestErrorFlag(); popFrame(); } } ```

AST

```nim ```
:arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2023-07-05 17:21:57 +0800 on commit with message: ``` fixes #22132; hoisted openArray params result in erroneous code (#22224) ``` The bug is in the files: ``` compiler/injectdestructors.nim tests/arc/topenarray.nim ``` The bug can be in the commits:
(Diagnostics sometimes off-by-one).
:robot: Bug found in 2 minutes bisecting 7 commits at 4 commits per second.
juancarlospaco commented 1 year ago

!nim c

type Xxx = object
  value: string

proc complete(xxx: ref Xxx, v: sink string) =
  xxx.value = move(v)

let yyy = (ref Xxx)()
yyy.complete("test")
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-05T13:38:51Z
  • Started 2023-07-05T13:51:53
  • Finished 2023-07-05T13:51:54
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
Traceback (most recent call last)
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim complete
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim asgnRef
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim incRef
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Segmentation fault (core dumped)
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-05T13:38:51Z
  • Started 2023-07-05T13:51:54
  • Finished 2023-07-05T13:51:55
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q; typedef struct tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg; typedef struct tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ; typedef struct tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg; typedef struct tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g; typedef struct tyObject_SmallChunk__sj9b0POpZpf2pwHAngQ4iuA tyObject_SmallChunk__sj9b0POpZpf2pwHAngQ4iuA; typedef struct tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A; typedef struct tyObject_LLChunk__EAcyYaYsVdVpPDOJNXsVvA tyObject_LLChunk__EAcyYaYsVdVpPDOJNXsVvA; typedef struct tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw; typedef struct tyObject_Trunk__N5u9b3R0O3g59awa8B9bs6qyg tyObject_Trunk__N5u9b3R0O3g59awa8B9bs6qyg; typedef struct tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg; typedef struct tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw; typedef struct tyTuple__6nVTvmjorcAWafHl9cWGFuA tyTuple__6nVTvmjorcAWafHl9cWGFuA; typedef struct tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg; typedef struct tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA; typedef struct tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw { NimStringDesc* value; }; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q { NI refcount; TNimType* typ; }; struct tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg { void* bottom; }; struct tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg { NI len; NI cap; tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q** d; }; typedef tyObject_SmallChunk__sj9b0POpZpf2pwHAngQ4iuA* tyArray__VYTQW7wK07xvH5Z4opKI1w[256]; typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24]; typedef tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A* tyArray__YkUf1j9c9b6JzhUdDj7S3KQA[32]; typedef tyArray__YkUf1j9c9b6JzhUdDj7S3KQA tyArray__MQbMf9bcijUF9a14VvUbfzqg[24]; typedef tyObject_Trunk__N5u9b3R0O3g59awa8B9bs6qyg* tyArray__sCQfOQF0EdBvLpqvNeg1Mg[256]; struct tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw { tyArray__sCQfOQF0EdBvLpqvNeg1Mg data; }; typedef tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* tyArray__Wt2k1c1BbnQ6Nj3SrdvfCw[2]; struct tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg { tyArray__Wt2k1c1BbnQ6Nj3SrdvfCw link; NI key; NI upperBound; NI level; }; struct tyTuple__6nVTvmjorcAWafHl9cWGFuA { tyObject_BigChunk__n43IpccPD6dfYiSGXsXF0A* Field0; NI Field1; }; typedef tyTuple__6nVTvmjorcAWafHl9cWGFuA tyArray__yUjlcLC9c9aIvr4MhTCDBnnA[30]; struct tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw { NI len; tyArray__yUjlcLC9c9aIvr4MhTCDBnnA chunks; tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw* next; }; struct tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g { NI minLargeObj; NI maxLargeObj; tyArray__VYTQW7wK07xvH5Z4opKI1w freeSmallChunks; NU32 flBitmap; tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap; tyArray__MQbMf9bcijUF9a14VvUbfzqg matrix; tyObject_LLChunk__EAcyYaYsVdVpPDOJNXsVvA* llmem; NI currMem; NI maxMem; NI freeMem; NI occ; NI lastSize; tyObject_IntSet__BjiVv2xFwTJmbeWeHvjYQw chunkStarts; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* root; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* deleted; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* last; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg* freeAvlNodes; NIM_BOOL locked; NIM_BOOL blockChunkSizeIncrease; NI nextChunkSize; tyObject_AvlNode__OVssjMzF9b6dF0OdhUI9bjqg bottomData; tyObject_HeapLinks__vrDr51n9cXj8aHnS73vhJqw heapLinks; }; struct tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg { NI stackScans; NI cycleCollections; NI maxThreshold; NI maxStackSize; NI maxStackCells; NI cycleTableSize; NI64 maxPause; }; struct tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA { NI counter; NI max; tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ* head; tyObject_PageDesc__i0uwYov8PyHfnx0dx0lOMQ** data; }; struct tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ { tyObject_GcStack__kyxCHsHBs9aixKn7J6EMoKg stack; NI cycleThreshold; NI zctThreshold; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg zct; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg decStack; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg tempStack; NI recGcLock; tyObject_MemRegion__kTihTuGP022tKEZ5qSTY4g region; tyObject_GcStat__yGmLruPXMhFV80y1jxAtjg stat; tyObject_CellSet__9co1sTf9aTPixSgG0AQ20mAA marked; tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg additionalRoots; NI gcThreadId; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, Marker_tyRef__AzfrVB30SrzHdQt162iR8Q)(void* p, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__system_5339)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); static N_INLINE(NI, pluspercent___system_696)(NI x, NI y); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*, usrToCell__system_5301)(void* usr); static N_INLINE(NI, minuspercent___system_716)(NI x, NI y); static N_INLINE(void, decRef__system_5346)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y); static N_INLINE(void, rtlAddZCT__system_5344)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__system_5295)(tyObject_CellSeq__8bh1syZiHlRn5s9cNSwuRKg* s, tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c); N_LIB_PRIVATE N_NIMCALL(void, complete__temp_3)(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw* xxx, NimStringDesc* v); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_; extern TNimType NTIstring__77mFvmsOLKik79ci2hXkHEg_; N_LIB_PRIVATE TNimType NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_3, "test", 4); N_LIB_PRIVATE tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw* yyy__temp_13; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern tyObject_GcHeap__TNN37TDOIST9cBHBYNA9bZrQ gch__system_5248; static N_NIMCALL(void, Marker_tyRef__AzfrVB30SrzHdQt162iR8Q)(void* p, NI op) { tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw* a; a = (tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw*)p; nimGCvisit((void*)(*a).value, op); } static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)yyy__temp_13, 0); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } static N_INLINE(NI, pluspercent___system_696)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__system_5339)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); (*c).refcount = pluspercent___system_696((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___system_716)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*, usrToCell__system_5301)(void* usr) { tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); result = (tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*)0; T1_ = (NI)0; T1_ = minuspercent___system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___system_1005)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/comparisons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__system_5344)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); addZCT__system_5295((&gch__system_5248.zct), c); popFrame(); } static N_INLINE(void, decRef__system_5346)(tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); (*c).refcount = minuspercent___system_716((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___system_1005((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__system_5344(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/gc.nim"); { tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*)0; T5_ = usrToCell__system_5301(src); incRef__system_5339(T5_); } LA3_: ; { tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__vT0lLseQRZ19aq7BbaJzO4Q*)0; T10_ = usrToCell__system_5301((*dest)); decRef__system_5346(T10_); } LA8_: ; (*dest) = src; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, complete__temp_3)(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw* xxx, NimStringDesc* v) { nimfr_("complete", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); asgnRef((void**) (&(*xxx).value), v); v = NIM_NIL; popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { TFrame FR_; FR_.len = 0; nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); } { tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw* T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); T1_ = NIM_NIL; T1_ = (tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw*) newObj((&NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_), sizeof(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw)); asgnRef((void**) (&yyy__temp_13), T1_); complete__temp_3(yyy__temp_13, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_3)); popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_.size = sizeof(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw); NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_.align = NIM_ALIGNOF(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw); NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_.kind = 18; NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_.base = 0; NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_.flags = 2; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].offset = offsetof(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw, value); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].typ = (&NTIstring__77mFvmsOLKik79ci2hXkHEg_); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].name = "value"; NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_.size = sizeof(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw*); NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_.align = NIM_ALIGNOF(tyObject_Xxx__0v0Fy6tHpjCCkCqAYhbmhw*); NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_.kind = 22; NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_.base = (&NTIxxx__0v0Fy6tHpjCCkCqAYhbmhw_); NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_.flags = 2; NTIrefxxx__AzfrVB30SrzHdQt162iR8Q_.marker = Marker_tyRef__AzfrVB30SrzHdQt162iR8Q; } ```

AST

```nim ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim Traceback (most recent call last) /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim complete /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim asgnRef /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim incRef SIGSEGV: Illegal storage access. (Attempt to read from nil?) Segmentation fault (core dumped) Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-05T13:38:51Z
  • Started 2023-07-05T13:51:59
  • Finished 2023-07-05T13:52:00
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g; typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w; typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ; typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA; typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg; typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ; typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg; typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw; typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA; typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw; typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw; typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg; typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg; typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg; typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ; typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg { NimStringDesc* value; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g { NI refcount; TNimType* typ; }; struct tyObject_GcStack__7fytPA5bBsob6See21YMRA { void* bottom; }; struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w { NI len; NI cap; tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d; }; typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SPr7N6UKfuF549bNPiUvSRw[256]; typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24]; typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32]; typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24]; typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256]; struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA { tyArray__lh2A89ahMmYg9bCmpVaplLbA data; }; typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2]; struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw { tyArray__0aOLqZchNi8nWtMTi8ND8w link; NI key; NI upperBound; NI level; }; struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg { tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0; NI Field1; }; typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30]; struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg { NI len; tyArray__LzOv2eCDGiceMKQstCLmhw chunks; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next; }; struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg { NI minLargeObj; NI maxLargeObj; tyArray__SPr7N6UKfuF549bNPiUvSRw freeSmallChunks; NU32 flBitmap; tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap; tyArray__B6durA4ZCi1xjJvRtyYxMg matrix; tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem; NI currMem; NI maxMem; NI freeMem; NI occ; NI lastSize; tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes; NIM_BOOL locked; NIM_BOOL blockChunkSizeIncrease; NI nextChunkSize; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks; }; struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg { NI stackScans; NI cycleCollections; NI maxThreshold; NI maxStackSize; NI maxStackCells; NI cycleTableSize; NI64 maxPause; }; struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ { NI counter; NI max; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data; }; struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ { tyObject_GcStack__7fytPA5bBsob6See21YMRA stack; NI cycleThreshold; NI zctThreshold; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack; NI recGcLock; tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region; tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat; tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots; NI gcThreadId; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NOINLINE(void*, newObj)(TNimType* typ, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef_system_5337)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NI, pluspercent__system_696)(NI x, NI y); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2997)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell_system_5299)(void* usr); static N_INLINE(NI, minuspercent__system_716)(NI x, NI y); static N_INLINE(void, decRef_system_5344)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, ltpercent__system_1005)(NI x, NI y); static N_INLINE(void, rtlAddZCT_system_5342)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT_system_5293)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NIMCALL(void, complete_temp_3)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_; extern TNimType NTIstring__77mFvmsOLKik79ci2hXkHEg_; N_LIB_PRIVATE TNimType NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_3, "test", 4); N_LIB_PRIVATE tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* yyy_temp_13; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch_system_5246; static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op) { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* a; a = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)p; nimGCvisit((void*)(*a).value, op); } static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)yyy_temp_13, 0); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached_system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } static N_INLINE(NI, pluspercent__system_696)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef_system_5337)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim"); (*c).refcount = pluspercent__system_696((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent__system_716)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/arithmetics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell_system_5299)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = (NI)0; T1_ = minuspercent__system_716(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent__system_1005)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/comparisons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT_system_5342)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim"); addZCT_system_5293((&gch_system_5246.zct), c); popFrame(); } static N_INLINE(void, decRef_system_5344)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim"); (*c).refcount = minuspercent__system_716((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent__system_1005((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT_system_5342(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell_system_5299(src); incRef_system_5337(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell_system_5299((*dest)); decRef_system_5344(T10_); } LA8_: ; (*dest) = src; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, complete_temp_3)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v) { nimfr_("complete", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); asgnRef((void**) (&(*xxx).value), v); v = NIM_NIL; popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { TFrame FR_; FR_.len = 0; nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); } { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)0; T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*) newObj((&NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_), sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg)); asgnRef((void**) (&yyy_temp_13), T1_); complete_temp_3(yyy_temp_13, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_3)); popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg); NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_.align = NIM_ALIGNOF(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg); NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_.kind = 18; NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_.base = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].offset = offsetof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg, value); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].typ = (&NTIstring__77mFvmsOLKik79ci2hXkHEg_); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].name = "value"; NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*); NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_.align = NIM_ALIGNOF(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*); NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_.kind = 22; NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_.base = (&NTIxxx__SBOQMYou2RHuW0nw9b0NPtg_); NTIrefxxx__qNY9box6bex5cIo2eynB1Cg_.marker = Marker_tyRef__qNY9box6bex5cIo2eynB1Cg; } ```

AST

```nim ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim Traceback (most recent call last) /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim complete /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim asgnRef /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim incRef SIGSEGV: Illegal storage access. (Attempt to read from nil?) Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-05T13:38:51Z
  • Started 2023-07-05T13:52:03
  • Finished 2023-07-05T13:52:04
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 74.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g; typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w; typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ; typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA; typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg; typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ; typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg; typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw; typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA; typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw; typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw; typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg; typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg; typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg; typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ; typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg { NimStringDesc* value; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g { NI refcount; TNimType* typ; }; struct tyObject_GcStack__7fytPA5bBsob6See21YMRA { void* bottom; }; struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w { NI len; NI cap; tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d; }; typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SPr7N6UKfuF549bNPiUvSRw[256]; typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24]; typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32]; typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24]; typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256]; struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA { tyArray__lh2A89ahMmYg9bCmpVaplLbA data; }; typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2]; struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw { tyArray__0aOLqZchNi8nWtMTi8ND8w link; NI key; NI upperBound; NI level; }; struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg { tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0; NI Field1; }; typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30]; struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg { NI len; tyArray__LzOv2eCDGiceMKQstCLmhw chunks; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next; }; struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg { NI minLargeObj; NI maxLargeObj; tyArray__SPr7N6UKfuF549bNPiUvSRw freeSmallChunks; NU32 flBitmap; tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap; tyArray__B6durA4ZCi1xjJvRtyYxMg matrix; tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem; NI currMem; NI maxMem; NI freeMem; NI occ; NI lastSize; tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes; NIM_BOOL locked; NIM_BOOL blockChunkSizeIncrease; NI nextChunkSize; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks; }; struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg { NI stackScans; NI cycleCollections; NI maxThreshold; NI maxStackSize; NI maxStackCells; NI cycleTableSize; NI64 maxPause; }; struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ { NI counter; NI max; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data; }; struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ { tyObject_GcStack__7fytPA5bBsob6See21YMRA stack; NI cycleThreshold; NI zctThreshold; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack; NI recGcLock; tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region; tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat; tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots; NI gcThreadId; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr); static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y); static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y); static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NIMCALL(void, complete__wsh1OFUhfwMVPP4xReWqmA)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTI__SBOQMYou2RHuW0nw9b0NPtg_; extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_; N_LIB_PRIVATE TNimType NTI__qNY9box6bex5cIo2eynB1Cg_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_3, "test", 4); N_LIB_PRIVATE tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* yyy__mkZuB9akbrlgie1ATYt1qFw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op) { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* a; a = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)p; nimGCvisit((void*)(*a).value, op); } static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)yyy__mkZuB9akbrlgie1ATYt1qFw, 0); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim"); (*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/compari" "sons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim"); addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c); popFrame(); } static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim"); (*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src); incRef__AT1eRuflKWyTTBdLjEDZbgsystem(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest)); decRef__AT1eRuflKWyTTBdLjEDZbg_2system(T10_); } LA8_: ; (*dest) = src; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, complete__wsh1OFUhfwMVPP4xReWqmA)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v) { nimfr_("complete", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); asgnRef((void**) (&(*xxx).value), v); v = NIM_NIL; popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)0; T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*) newObj((&NTI__qNY9box6bex5cIo2eynB1Cg_), sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg)); asgnRef((void**) (&yyy__mkZuB9akbrlgie1ATYt1qFw), T1_); complete__wsh1OFUhfwMVPP4xReWqmA(yyy__mkZuB9akbrlgie1ATYt1qFw, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_3)); popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; NTI__SBOQMYou2RHuW0nw9b0NPtg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg); NTI__SBOQMYou2RHuW0nw9b0NPtg_.align = NIM_ALIGNOF(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg); NTI__SBOQMYou2RHuW0nw9b0NPtg_.kind = 18; NTI__SBOQMYou2RHuW0nw9b0NPtg_.base = 0; NTI__SBOQMYou2RHuW0nw9b0NPtg_.flags = 2; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].offset = offsetof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg, value); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].name = "value"; NTI__SBOQMYou2RHuW0nw9b0NPtg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__qNY9box6bex5cIo2eynB1Cg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*); NTI__qNY9box6bex5cIo2eynB1Cg_.align = NIM_ALIGNOF(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*); NTI__qNY9box6bex5cIo2eynB1Cg_.kind = 22; NTI__qNY9box6bex5cIo2eynB1Cg_.base = (&NTI__SBOQMYou2RHuW0nw9b0NPtg_); NTI__qNY9box6bex5cIo2eynB1Cg_.flags = 2; NTI__qNY9box6bex5cIo2eynB1Cg_.marker = Marker_tyRef__qNY9box6bex5cIo2eynB1Cg; } ```

AST

```nim ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim Traceback (most recent call last) /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim complete /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim asgnRef /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim incRef SIGSEGV: Illegal storage access. (Attempt to read from nil?) Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-05T13:38:51Z
  • Started 2023-07-05T13:52:19
  • Finished 2023-07-05T13:52:20
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 91.64 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g; typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w; typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ; typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA; typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg; typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ; typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg; typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw; typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA; typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw; typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw; typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg; typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg; typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg; typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ; typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg { NimStringDesc* value; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g { NI refcount; TNimType* typ; }; struct tyObject_GcStack__7fytPA5bBsob6See21YMRA { void* bottom; }; struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w { NI len; NI cap; tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d; }; typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512]; typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24]; typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32]; typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24]; typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256]; struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA { tyArray__lh2A89ahMmYg9bCmpVaplLbA data; }; typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2]; struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw { tyArray__0aOLqZchNi8nWtMTi8ND8w link; NI key; NI upperBound; NI level; }; struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg { tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0; NI Field1; }; typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30]; struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg { NI len; tyArray__LzOv2eCDGiceMKQstCLmhw chunks; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next; }; struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg { NI minLargeObj; NI maxLargeObj; tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks; NU32 flBitmap; tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap; tyArray__B6durA4ZCi1xjJvRtyYxMg matrix; tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem; NI currMem; NI maxMem; NI freeMem; NI occ; NI lastSize; tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes; NIM_BOOL locked; NIM_BOOL blockChunkSizeIncrease; NI nextChunkSize; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks; }; struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg { NI stackScans; NI cycleCollections; NI maxThreshold; NI maxStackSize; NI maxStackCells; NI cycleTableSize; NI64 maxPause; }; struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ { NI counter; NI max; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data; }; struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ { tyObject_GcStack__7fytPA5bBsob6See21YMRA stack; NI cycleThreshold; NI zctThreshold; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack; NI recGcLock; tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region; tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat; tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots; NI gcThreadId; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr); static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y); static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y); static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NIMCALL(void, complete__wsh1OFUhfwMVPP4xReWqmA)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTI__SBOQMYou2RHuW0nw9b0NPtg_; extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_; N_LIB_PRIVATE TNimType NTI__qNY9box6bex5cIo2eynB1Cg_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_3, "test", 4); N_LIB_PRIVATE tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* yyy__mkZuB9akbrlgie1ATYt1qFw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op) { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* a; a = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)p; nimGCvisit((void*)(*a).value, op); } static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)yyy__mkZuB9akbrlgie1ATYt1qFw, 0); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); (*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/compari" "sons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c); popFrame(); } static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); (*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src); incRef__AT1eRuflKWyTTBdLjEDZbgsystem(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest)); decRef__AT1eRuflKWyTTBdLjEDZbg_2system(T10_); } LA8_: ; (*dest) = src; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, complete__wsh1OFUhfwMVPP4xReWqmA)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v) { nimfr_("complete", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); asgnRef((void**) (&(*xxx).value), v); v = NIM_NIL; popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)0; T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*) newObj((&NTI__qNY9box6bex5cIo2eynB1Cg_), sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg)); asgnRef((void**) (&yyy__mkZuB9akbrlgie1ATYt1qFw), T1_); complete__wsh1OFUhfwMVPP4xReWqmA(yyy__mkZuB9akbrlgie1ATYt1qFw, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_3)); popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; NTI__SBOQMYou2RHuW0nw9b0NPtg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg); NTI__SBOQMYou2RHuW0nw9b0NPtg_.kind = 18; NTI__SBOQMYou2RHuW0nw9b0NPtg_.base = 0; NTI__SBOQMYou2RHuW0nw9b0NPtg_.flags = 2; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].offset = offsetof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg, value); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].name = "value"; NTI__SBOQMYou2RHuW0nw9b0NPtg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__qNY9box6bex5cIo2eynB1Cg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*); NTI__qNY9box6bex5cIo2eynB1Cg_.kind = 22; NTI__qNY9box6bex5cIo2eynB1Cg_.base = (&NTI__SBOQMYou2RHuW0nw9b0NPtg_); NTI__qNY9box6bex5cIo2eynB1Cg_.flags = 2; NTI__qNY9box6bex5cIo2eynB1Cg_.marker = Marker_tyRef__qNY9box6bex5cIo2eynB1Cg; } ```

AST

```nim ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim Traceback (most recent call last) /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim complete /home/runner/.choosenim/toolchains/nim-1.0.0/lib/system/gc.nim asgnRef /home/runner/.choosenim/toolchains/nim-1.0.0/lib/system/gc.nim incRef SIGSEGV: Illegal storage access. (Attempt to read from nil?) Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-05T13:38:51Z
  • Started 2023-07-05T13:52:33
  • Finished 2023-07-05T13:52:34
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 86.63 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g; typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w; typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ; typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA; typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg; typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ; typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg; typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw; typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA; typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw; typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw; typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg; typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg; typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg; typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ; typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg { NimStringDesc* value; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g { NI refcount; TNimType* typ; }; struct tyObject_GcStack__7fytPA5bBsob6See21YMRA { void* bottom; }; struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w { NI len; NI cap; tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d; }; typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512]; typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24]; typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32]; typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24]; typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256]; struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA { tyArray__lh2A89ahMmYg9bCmpVaplLbA data; }; typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2]; struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw { tyArray__0aOLqZchNi8nWtMTi8ND8w link; NI key; NI upperBound; NI level; }; struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg { tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0; NI Field1; }; typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30]; struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg { NI len; tyArray__LzOv2eCDGiceMKQstCLmhw chunks; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next; }; struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg { NI minLargeObj; NI maxLargeObj; tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks; NU32 flBitmap; tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap; tyArray__B6durA4ZCi1xjJvRtyYxMg matrix; tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem; NI currMem; NI maxMem; NI freeMem; NI occ; NI lastSize; tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes; NIM_BOOL locked; NIM_BOOL blockChunkSizeIncrease; NI nextChunkSize; tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData; tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks; }; struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg { NI stackScans; NI cycleCollections; NI maxThreshold; NI maxStackSize; NI maxStackCells; NI cycleTableSize; NI64 maxPause; }; struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ { NI counter; NI max; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head; tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data; }; struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ { tyObject_GcStack__7fytPA5bBsob6See21YMRA stack; NI cycleThreshold; NI zctThreshold; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack; NI recGcLock; tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region; tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat; tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked; tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots; NI gcThreadId; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size); static N_INLINE(void, asgnRef)(void** dest, void* src); static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr); static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y); static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y); static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c); N_LIB_PRIVATE N_NIMCALL(void, complete__wsh1OFUhfwMVPP4xReWqmA)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE TNimType NTI__SBOQMYou2RHuW0nw9b0NPtg_; extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_; N_LIB_PRIVATE TNimType NTI__qNY9box6bex5cIo2eynB1Cg_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_3, "test", 4); N_LIB_PRIVATE tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* yyy__mkZuB9akbrlgie1ATYt1qFw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q; static N_NIMCALL(void, Marker_tyRef__qNY9box6bex5cIo2eynB1Cg)(void* p, NI op) { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* a; a = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)p; nimGCvisit((void*)(*a).value, op); } static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)yyy__mkZuB9akbrlgie1ATYt1qFw, 0); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; nimfr_("+%", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("incRef", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); (*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8)); popFrame(); } static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; nimfr_("-%", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/arithme" "tics.nim"); result = (NI)0; result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); popFrame(); return result; } static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; nimfr_("usrToCell", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); popFrame(); return result; } static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; nimfr_("<%", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/compari" "sons.nim"); result = (NIM_BOOL)0; result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); popFrame(); return result; } static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("rtlAddZCT", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c); popFrame(); } static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) { nimfr_("decRef", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); (*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8)); { NIM_BOOL T3_; T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_; rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_3system(c); } LA4_: ; popFrame(); } static N_INLINE(void, asgnRef)(void** dest, void* src) { nimfr_("asgnRef", "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/gc.nim"); { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_; if (!!((src == NIM_NIL))) goto LA3_; T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src); incRef__AT1eRuflKWyTTBdLjEDZbgsystem(T5_); } LA3_: ; { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_; if (!!(((*dest) == NIM_NIL))) goto LA8_; T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest)); decRef__AT1eRuflKWyTTBdLjEDZbg_2system(T10_); } LA8_: ; (*dest) = src; popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, complete__wsh1OFUhfwMVPP4xReWqmA)(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* xxx, NimStringDesc* v) { nimfr_("complete", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); asgnRef((void**) (&(*xxx).value), v); v = NIM_NIL; popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg* T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*)0; T1_ = (tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*) newObj((&NTI__qNY9box6bex5cIo2eynB1Cg_), sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg)); asgnRef((void**) (&yyy__mkZuB9akbrlgie1ATYt1qFw), T1_); complete__wsh1OFUhfwMVPP4xReWqmA(yyy__mkZuB9akbrlgie1ATYt1qFw, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_3)); popFrame(); } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; NTI__SBOQMYou2RHuW0nw9b0NPtg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg); NTI__SBOQMYou2RHuW0nw9b0NPtg_.kind = 18; NTI__SBOQMYou2RHuW0nw9b0NPtg_.base = 0; NTI__SBOQMYou2RHuW0nw9b0NPtg_.flags = 2; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].offset = offsetof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg, value); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_); TM__h69aKLv9bAieBdiFzvDngbMw_0[0].name = "value"; NTI__SBOQMYou2RHuW0nw9b0NPtg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__qNY9box6bex5cIo2eynB1Cg_.size = sizeof(tyObject_Xxx__SBOQMYou2RHuW0nw9b0NPtg*); NTI__qNY9box6bex5cIo2eynB1Cg_.kind = 22; NTI__qNY9box6bex5cIo2eynB1Cg_.base = (&NTI__SBOQMYou2RHuW0nw9b0NPtg_); NTI__qNY9box6bex5cIo2eynB1Cg_.flags = 2; NTI__qNY9box6bex5cIo2eynB1Cg_.marker = Marker_tyRef__qNY9box6bex5cIo2eynB1Cg; } ```

AST

```nim ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 49 minutes bisecting 460 commits at 9 commits per second.
juancarlospaco commented 1 year ago

!nim c

var a = newSeq[int]()
a.add(y = 1)
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 2) Error: type mismatch
Expression: add(a, y = 1)
  [1] a: seq[int]
  [2] y = 1: y: int literal(1)

Expected one of (first mismatch at [position]):
[1] proc add(x: var string; y: char)
[1] proc add(x: var string; y: cstring)
[1] proc add(x: var string; y: string)
[2] proc add[T](x: var seq[T]; value: sink T)
[2] proc add[T](x: var seq[T]; y: openArray[T])

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:28:59
  • Finished 2023-07-10T11:29:00
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 0 bytes ```cpp ```

AST

```nim ```
stable :+1: OK

Output

``` ```

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:29:00
  • Finished 2023-07-10T11:29:01
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:29:04
  • Finished 2023-07-10T11:29:05
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:29:07
  • Finished 2023-07-10T11:29:08
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:29:24
  • Finished 2023-07-10T11:29:24
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:29:37
  • Finished 2023-07-10T11:29:38
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
0.20.2 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-10T11:28:33Z
  • Started 2023-07-10T11:29:49
  • Finished 2023-07-10T11:29:49
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
#7739e2342 :arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2022-09-23 19:05:05 +0800 on commit #7739e2342 with message: ``` defaults to ORC (#19972) * defaults to Orc * bootstrap using refc * use gc * init orc defines * unregister orc * fix gc * fix commands * add prepareMutation for orc * enable deepcopy for orc * prepareMutation * more fixes * some cases * bug #20081 * partial fixes * partial fixes * fixes command line * more fixes * build Nim with refc * use gc * more fixes * rstore * orc doesn't support threadpool * more shallowCopy * more fixes * fixes unsafeNew * workarounds * small * more fixes * fixes some megatest * tcodegenbugs1 refc * fxies megatest * build nimble with refc * workaround tensordsl tests * replace shallowCopy with move * fixes action * workaround * add todo * fixes important packages * unpublic unregisterArcOrc * fixes cpp * enable windows Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com> ``` The bug is in the files: ``` .github/workflows/ci_docs.yml compiler/commands.nim compiler/nim.nim compiler/options.nim koch.nim lib/system/iterators.nim nimsuggest/sexp.nim testament/categories.nim testament/important_packages.nim tests/assign/moverload_asgn2.nim tests/async/tasync_traceback.nim tests/ccgbugs/t13062.nim tests/ccgbugs/tassign_nil_strings.nim tests/ccgbugs/tcodegenbug1.nim tests/ccgbugs/tdeepcopy_addr_rval.nim tests/ccgbugs/thtiobj.nim tests/ccgbugs/tmissinginit.nim tests/ccgbugs/tmissingvolatile.nim tests/collections/tseq.nim tests/concepts/t3330.nim tests/concepts/tusertypeclasses.nim tests/destructor/tatomicptrs.nim tests/errmsgs/t10376.nim tests/exception/tcpp_imported_exc.nim tests/generics/tgeneric3.nim tests/generics/tparam_binding.nim tests/gensym/tgensymgeneric.nim tests/ic/config.nims tests/iter/tshallowcopy_closures.nim tests/macros/tstaticparamsmacro.nim tests/magics/t10307.nim tests/magics/tmagics.nim tests/manyloc/keineschweine/keineschweine.nim.cfg tests/manyloc/keineschweine/lib/estreams.nim tests/metatype/tmetatype_various.nim tests/metatype/tstaticparammacro.nim tests/metatype/tstaticvector.nim tests/misc/taddr.nim tests/misc/tnew.nim tests/misc/trunner_special.nim tests/misc/tunsignedconv.nim tests/modules/tmodule_name_clashes.nim tests/niminaction/Chapter3/various3.nim tests/objects/t4318.nim tests/objects/tobj_asgn_dont_slice.nim tests/objects/tobjconstr.nim tests/parallel/tconvexhull.nim tests/parallel/tdeepcopy.nim tests/parallel/tdeepcopy2.nim tests/parallel/tdisjoint_slice1.nim tests/parallel/tflowvar.nim tests/parallel/tinvalid_array_bounds.nim tests/parallel/tmissing_deepcopy.nim tests/parallel/tnon_disjoint_slice1.nim tests/parallel/tparfind.nim tests/parallel/tpi.nim tests/parallel/tsendtwice.nim tests/parallel/tsysspawn.nim tests/parallel/tuseafterdef.nim tests/parallel/twaitany.nim tests/parser/t12274.nim tests/pragmas/t12640.nim tests/pragmas/tnoreturn.nim tests/stdlib/mgenast.nim tests/stdlib/tgenast.nim tests/stdlib/thttpclient_ssl.nim tests/stdlib/tjson.nim tests/stdlib/tmitems.nim tests/stdlib/tstdlib_various.nim tests/stdlib/tstring.nim tests/stdlib/twchartoutf8.nim tests/system/tdeepcopy.nim tests/template/twrongmapit.nim tests/threads/tjsthreads.nim tests/threads/tonthreadcreation.nim tests/typerel/t4799_1.nim tests/typerel/t4799_2.nim tests/typerel/t4799_3.nim tests/typerel/ttypedesc_as_genericparam1.nim tests/typerel/ttypedesc_as_genericparam1_orc.nim tests/typerel/ttypedesc_as_genericparam2.nim ``` The bug can be in the commits: (Diagnostics sometimes off-by-one).
:robot: Bug found in 3 minutes bisecting 1577 commits at 520 commits per second.
juancarlospaco commented 1 year ago

!nim c

var a = newSeq[int]()
a.add(y = 1)
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:46:58
  • Finished 2023-07-11T22:46:59
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:47:00
  • Finished 2023-07-11T22:47:00
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:47:04
  • Finished 2023-07-11T22:47:05
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:47:07
  • Finished 2023-07-11T22:47:08
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:47:25
  • Finished 2023-07-11T22:47:26
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:47:37
  • Finished 2023-07-11T22:47:37
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
0.20.2 :+1: OK

Output

Stats

  • Created 2023-07-11T22:46:22Z
  • Started 2023-07-11T22:47:49
  • Finished 2023-07-11T22:47:49
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 55 minutes bisecting 7 commits at 0 commits per second.
juancarlospaco commented 1 year ago

!nim c

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:50:59
  • Finished 2023-07-11T22:51:00
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:51:00
  • Finished 2023-07-11T22:51:01
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_TRUE) goto LA3_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```

AST

```nim ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:51:04
  • Finished 2023-07-11T22:51:05
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached_system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_TRUE) goto LA3_; failedAssertImpl_systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```

AST

```nim ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:51:08
  • Finished 2023-07-11T22:51:09
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 74.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!NIM_TRUE) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```

AST

```nim ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:51:24
  • Finished 2023-07-11T22:51:24
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 91.41 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```

AST

```nim ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.0.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.0.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.0.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:51:37
  • Finished 2023-07-11T22:51:38
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 86.41 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```

AST

```nim ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-0.20.2/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-0.20.2/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-0.20.2/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```

Stats

  • Created 2023-07-11T22:50:24Z
  • Started 2023-07-11T22:51:47
  • Finished 2023-07-11T22:51:48
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 86.10 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```

AST

```nim ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 11 minutes bisecting 461 commits at 40 commits per second.
juancarlospaco commented 1 year ago

!nim c

doAssert NimMinor == 9, "Simulate Bug"
int foo = 42;
int bar = 3.14;
juancarlospaco commented 1 year ago

!nim c

doAssert NimMinor == 9, "Simulate Bug"
int foo = 42;
int bar = 3.14;
juancarlospaco commented 1 year ago

!nim c

echo readFile"temp.cpp"
echo readFile"temp.c"
int foo = 42;
int bar = 3.14;
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:22:52
  • Finished 2023-07-23T14:22:52
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:22:53
  • Finished 2023-07-23T14:22:53
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:22:56
  • Finished 2023-07-23T14:22:57
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:23:00
  • Finished 2023-07-23T14:23:01
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:23:17
  • Finished 2023-07-23T14:23:18
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:23:31
  • Finished 2023-07-23T14:23:31
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
0.20.2 :+1: OK

Output

int foo = 42;
int bar = 3.14;

Stats

  • Created 2023-07-23T14:22:18Z
  • Started 2023-07-23T14:23:42
  • Finished 2023-07-23T14:23:43
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 55 minutes bisecting 7 commits at 0 commits per second.
juancarlospaco commented 1 year ago

!nim c

echo readFile"temp.cpp"
echo readFile"temp.c"
echo readFile"temp.h"
int foo = 42;
int bar = 3.14;
#define TEST 42
-d:release
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:26:19
  • Finished 2023-07-23T14:26:22
  • Duration 3 minutes
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:26:22
  • Finished 2023-07-23T14:26:24
  • Duration 2 minutes
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:26:26
  • Finished 2023-07-23T14:26:28
  • Duration 2 minutes
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:26:31
  • Finished 2023-07-23T14:26:31
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:26:46
  • Finished 2023-07-23T14:26:47
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:26:59
  • Finished 2023-07-23T14:27:00
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
0.20.2 :+1: OK

Output

int foo = 42;
int bar = 3.14;
#define TEST 42

Stats

  • Created 2023-07-23T14:25:49Z
  • Started 2023-07-23T14:27:11
  • Finished 2023-07-23T14:27:11
  • Duration now
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 56 minutes bisecting 7 commits at 0 commits per second.
juancarlospaco commented 1 year ago

!nim c

echo readFile"temp.cpp"
echo readFile"temp.c"
doAssert NimMinor == 9, "Simulate Bug"
int foo = 42;
int bar = 3.14;
-d:release
juancarlospaco commented 1 year ago

!nim cpp

type O = object
proc f(i: O) {.virtual.} = discard
let x = O()
f(x)
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:11:20
  • Finished 2023-07-23T21:11:20
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 16) Error: invalid pragma: virtual

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:11:21
  • Finished 2023-07-23T21:11:21
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.94 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ { N_LIB_PRIVATE N_NOCONV(virtual void, f)(); }; static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4569)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_THREADVAR TFrame* framePtr__system_u4005; N_LIB_PRIVATE NIM_CONST tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ x__temp_u4 = {} ; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4005 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4005).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4005; framePtr__system_u4005 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4569(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4005 = (*framePtr__system_u4005).prev; } N_LIB_PRIVATE N_NOCONV(void, tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ::f)() { nimfr_("f", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); x__temp_u4.f(); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("O"), newEmptyNode(), nnkObjectTy.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode() ) ) ), nnkProcDef.newTree( newIdentNode("f"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("i"), newIdentNode("O"), newEmptyNode() ) ), nnkPragma.newTree( newIdentNode("virtual") ), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("x"), newEmptyNode(), nnkCall.newTree( newIdentNode("O") ) ) ), nnkCall.newTree( newIdentNode("f"), newIdentNode("x") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 16) Error: invalid pragma: virtual ```

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:11:24
  • Finished 2023-07-23T21:11:24
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.94 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ { N_LIB_PRIVATE N_NOCONV(virtual void, f)(); }; static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4569)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_THREADVAR TFrame* framePtr__system_u4005; N_LIB_PRIVATE NIM_CONST tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ x__temp_u4 = {} ; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4005 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4005).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4005; framePtr__system_u4005 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4569(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4005 = (*framePtr__system_u4005).prev; } N_LIB_PRIVATE N_NOCONV(void, tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ::f)() { nimfr_("f", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); x__temp_u4.f(); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("O"), newEmptyNode(), nnkObjectTy.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode() ) ) ), nnkProcDef.newTree( newIdentNode("f"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("i"), newIdentNode("O"), newEmptyNode() ) ), nnkPragma.newTree( newIdentNode("virtual") ), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("x"), newEmptyNode(), nnkCall.newTree( newIdentNode("O") ) ) ), nnkCall.newTree( newIdentNode("f"), newIdentNode("x") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 16) Error: invalid pragma: virtual ```

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:11:28
  • Finished 2023-07-23T21:11:28
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.94 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ { N_LIB_PRIVATE N_NOCONV(virtual void, f)(); }; static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4569)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_THREADVAR TFrame* framePtr__system_u4005; N_LIB_PRIVATE NIM_CONST tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ x__temp_u4 = {} ; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4005 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4005).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4005; framePtr__system_u4005 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4569(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4005 = (*framePtr__system_u4005).prev; } N_LIB_PRIVATE N_NOCONV(void, tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ::f)() { nimfr_("f", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); x__temp_u4.f(); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("O"), newEmptyNode(), nnkObjectTy.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode() ) ) ), nnkProcDef.newTree( newIdentNode("f"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("i"), newIdentNode("O"), newEmptyNode() ) ), nnkPragma.newTree( newIdentNode("virtual") ), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("x"), newEmptyNode(), nnkCall.newTree( newIdentNode("O") ) ) ), nnkCall.newTree( newIdentNode("f"), newIdentNode("x") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 16) Error: invalid pragma: virtual ```

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:11:44
  • Finished 2023-07-23T21:11:44
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.94 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ { N_LIB_PRIVATE N_NOCONV(virtual void, f)(); }; static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4569)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_THREADVAR TFrame* framePtr__system_u4005; N_LIB_PRIVATE NIM_CONST tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ x__temp_u4 = {} ; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4005 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4005).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4005; framePtr__system_u4005 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4569(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4005 = (*framePtr__system_u4005).prev; } N_LIB_PRIVATE N_NOCONV(void, tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ::f)() { nimfr_("f", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); x__temp_u4.f(); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("O"), newEmptyNode(), nnkObjectTy.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode() ) ) ), nnkProcDef.newTree( newIdentNode("f"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("i"), newIdentNode("O"), newEmptyNode() ) ), nnkPragma.newTree( newIdentNode("virtual") ), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("x"), newEmptyNode(), nnkCall.newTree( newIdentNode("O") ) ) ), nnkCall.newTree( newIdentNode("f"), newIdentNode("x") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 16) Error: invalid pragma: virtual ```

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:11:57
  • Finished 2023-07-23T21:11:57
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.94 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ { N_LIB_PRIVATE N_NOCONV(virtual void, f)(); }; static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4569)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_THREADVAR TFrame* framePtr__system_u4005; N_LIB_PRIVATE NIM_CONST tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ x__temp_u4 = {} ; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4005 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4005).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4005; framePtr__system_u4005 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4569(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4005 = (*framePtr__system_u4005).prev; } N_LIB_PRIVATE N_NOCONV(void, tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ::f)() { nimfr_("f", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); x__temp_u4.f(); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("O"), newEmptyNode(), nnkObjectTy.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode() ) ) ), nnkProcDef.newTree( newIdentNode("f"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("i"), newIdentNode("O"), newEmptyNode() ) ), nnkPragma.newTree( newIdentNode("virtual") ), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("x"), newEmptyNode(), nnkCall.newTree( newIdentNode("O") ) ) ), nnkCall.newTree( newIdentNode("f"), newIdentNode("x") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(2, 16) Error: invalid pragma: virtual ```

Stats

  • Created 2023-07-23T21:10:49Z
  • Started 2023-07-23T21:12:08
  • Finished 2023-07-23T21:12:09
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

Filesize 78.94 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ; struct tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ { N_LIB_PRIVATE N_NOCONV(virtual void, f)(); }; static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4569)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern NIM_THREADVAR TFrame* framePtr__system_u4005; N_LIB_PRIVATE NIM_CONST tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ x__temp_u4 = {} ; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u4005 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u4005).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u4005; framePtr__system_u4005 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4569(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u4005 = (*framePtr__system_u4005).prev; } N_LIB_PRIVATE N_NOCONV(void, tyObject_O__4j9c8txC02i6ndnfkyO9aRmQ::f)() { nimfr_("f", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); x__temp_u4.f(); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("O"), newEmptyNode(), nnkObjectTy.newTree( newEmptyNode(), newEmptyNode(), newEmptyNode() ) ) ), nnkProcDef.newTree( newIdentNode("f"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("i"), newIdentNode("O"), newEmptyNode() ) ), nnkPragma.newTree( newIdentNode("virtual") ), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("x"), newEmptyNode(), nnkCall.newTree( newIdentNode("O") ) ) ), nnkCall.newTree( newIdentNode("f"), newIdentNode("x") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 58 minutes bisecting 461 commits at 8 commits per second.
juancarlospaco commented 1 year ago

!nim c

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
/bin/sh: 1: valgrind: not found

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:50:25
  • Finished 2023-07-23T22:50:26
  • Duration 1 minute
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 62.54 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload { NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 { NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u310)(NimStringV2 msg_p0); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4603)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[109+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 109 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {109, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4385; extern NIM_THREADVAR TFrame* framePtr__system_u4002; #line 423 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 result = (&nimInErrorMode__system_u4385); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s_p0) { #line 550 { if (!(framePtr__system_u4002 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 (*s_p0).calldepth = ((NI16)0); } goto LA1_; LA3_: ; { #line 554 (*s_p0).calldepth = (NI16)((*framePtr__system_u4002).calldepth + ((NI16)1)); } LA1_: ; #line 556 (*s_p0).prev = framePtr__system_u4002; #line 557 framePtr__system_u4002 = s_p0; #line 558 { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; callDepthLimitReached__system_u4603(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 framePtr__system_u4002 = (*framePtr__system_u4002).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_FALSE) goto LA3_; failedAssertImpl__stdZassertions_u310(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
stable :-1: FAIL

Output

``` Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/osalloc.nim(33, 12) Error: -d:nimAllocPagesViaMalloc is only supported with --gc:arc or --gc:orc ```

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:50:27
  • Finished 2023-07-23T22:50:27
  • Duration now
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 62.54 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload { NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 { NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u310)(NimStringV2 msg_p0); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4603)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[109+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 109 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {109, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4385; extern NIM_THREADVAR TFrame* framePtr__system_u4002; #line 423 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 result = (&nimInErrorMode__system_u4385); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s_p0) { #line 550 { if (!(framePtr__system_u4002 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 (*s_p0).calldepth = ((NI16)0); } goto LA1_; LA3_: ; { #line 554 (*s_p0).calldepth = (NI16)((*framePtr__system_u4002).calldepth + ((NI16)1)); } LA1_: ; #line 556 (*s_p0).prev = framePtr__system_u4002; #line 557 framePtr__system_u4002 = s_p0; #line 558 { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; callDepthLimitReached__system_u4603(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 framePtr__system_u4002 = (*framePtr__system_u4002).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_FALSE) goto LA3_; failedAssertImpl__stdZassertions_u310(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/osalloc.nim(33, 12) Error: -d:nimAllocPagesViaMalloc is only supported with --gc:arc or --gc:orc ```

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:50:30
  • Finished 2023-07-23T22:50:30
  • Duration now
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 62.54 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload { NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 { NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__stdZassertions_u310)(NimStringV2 msg_p0); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4603)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[109+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 109 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {109, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_THREADVAR NIM_BOOL nimInErrorMode__system_u4385; extern NIM_THREADVAR TFrame* framePtr__system_u4002; #line 423 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 result = (&nimInErrorMode__system_u4385); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s_p0) { #line 550 { if (!(framePtr__system_u4002 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 (*s_p0).calldepth = ((NI16)0); } goto LA1_; LA3_: ; { #line 554 (*s_p0).calldepth = (NI16)((*framePtr__system_u4002).calldepth + ((NI16)1)); } LA1_: ; #line 556 (*s_p0).prev = framePtr__system_u4002; #line 557 framePtr__system_u4002 = s_p0; #line 558 { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; callDepthLimitReached__system_u4603(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 framePtr__system_u4002 = (*framePtr__system_u4002).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_FALSE) goto LA3_; failedAssertImpl__stdZassertions_u310(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: valgrind: not found ```

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:50:33
  • Finished 2023-07-23T22:50:34
  • Duration 1 minute
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 82.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 2146 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) { #line 2150 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" #line 2150 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" nimGC_setStackBottom(locals); } #line 544 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 546 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 551 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 552 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 86 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 87 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: valgrind: not found ```

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:50:50
  • Finished 2023-07-23T22:50:51
  • Duration 1 minute
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 478.78 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) { #line 2091 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" #line 2091 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" nimGC_setStackBottom(locals); } #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: valgrind: not found ```

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:51:03
  • Finished 2023-07-23T22:51:04
  • Duration 1 minute
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 439.30 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) { #line 2091 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" #line 2091 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" nimGC_setStackBottom(locals); } #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: valgrind: not found ```

Stats

  • Created 2023-07-23T22:50:04Z
  • Started 2023-07-23T22:51:16
  • Finished 2023-07-23T22:51:17
  • Duration 1 minute
  • Commands nim c -d:useMalloc -d:nimAllocPagesViaMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off && valgrind --undef-value-errors=no --leak-check=full /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 435.59 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq {NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) { #line 2091 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" #line 2091 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" nimGC_setStackBottom(locals); } #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits:
(Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 7 minutes bisecting 8 commits at 1 commits per second.
juancarlospaco commented 1 year ago

!nim c

doAssert NimMinor == 9, "Simulate Bug"
juancarlospaco commented 1 year ago

!nim c --gc:arc

doAssert NimMinor == 9, "Simulate Bug"
juancarlospaco commented 1 year ago

!nim c --gc:arc

doAssert NimMinor == 9, "Simulate Bug"
juancarlospaco commented 1 year ago

!nim c --gc:arc

doAssert NimMinor == 9, "Simulate Bug"
juancarlospaco commented 1 year ago

!nim c --gc:arc

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:21:24
  • Finished 2023-07-24T00:21:25
  • Duration 2 minutes
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :-1: FAIL

Output

Error: Command failed: nim c --gc:arc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2039== Memcheck, a memory error detector
==2039== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2039== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2039== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2039== 
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect]
==2039== 
==2039== HEAP SUMMARY:
==2039==     in use at exit: 96 bytes in 2 blocks
==2039==   total heap usage: 5 allocs, 3 frees, 4,218 bytes allocated
==2039== 
==2039== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2
==2039==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2039==    by 0x109EAA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10B13E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10B256: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10F9E0: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FCF9: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FD2A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FF1F: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FF67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FF7E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FFA4: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x4890D8F: (below main) (libc_start_call_main.h:58)
==2039== 
==2039== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2
==2039==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2039==    by 0x109EAA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10BB93: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10AE6F: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x109AE5: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x109C27: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FF1A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FF67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FF7E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x10FFA4: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2039==    by 0x4890D8F: (below main) (libc_start_call_main.h:58)
==2039== 
==2039== LEAK SUMMARY:
==2039==    definitely lost: 96 bytes in 2 blocks
==2039==    indirectly lost: 0 bytes in 0 blocks
==2039==      possibly lost: 0 bytes in 0 blocks
==2039==    still reachable: 0 bytes in 0 blocks
==2039==         suppressed: 0 bytes in 0 blocks
==2039== 
==2039== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:21:26
  • Finished 2023-07-24T00:21:27
  • Duration 1 minute
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 42.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_53)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_3661)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__system_3512; extern TFrame* framePtr__system_3187; extern TFrame* framePtr__system_3187; extern TFrame* framePtr__system_3187; extern TFrame* framePtr__system_3187; extern TFrame* framePtr__system_3187; extern TFrame* framePtr__system_3187; #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" result = (&nimInErrorMode__system_3512); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!(framePtr__system_3187 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__system_3187).calldepth + ((NI16) 1)); } LA1_: ; #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).prev = framePtr__system_3187; #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_3187 = s; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" callDepthLimitReached__system_3661(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_3187 = (*framePtr__system_3187).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); PreMainInner(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { PreMain(); NimMainInner(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__systemZassertions_53(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2092== Memcheck, a memory error detector ==2092== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2092== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2092== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2092== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2092== ==2092== HEAP SUMMARY: ==2092== in use at exit: 96 bytes in 2 blocks ==2092== total heap usage: 5 allocs, 3 frees, 4,218 bytes allocated ==2092== ==2092== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2092== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2092== by 0x10A1AF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x10B443: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x10B55B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x10FE48: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x110161: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x110192: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x110433: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x11047B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x11037B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x1103A1: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2092== ==2092== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2092== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2092== by 0x10A1AF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x10BE98: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x10B174: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x109DEA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x109F2C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x11042E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x11047B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x11037B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x1103A1: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2092== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2092== ==2092== LEAK SUMMARY: ==2092== definitely lost: 96 bytes in 2 blocks ==2092== indirectly lost: 0 bytes in 0 blocks ==2092== possibly lost: 0 bytes in 0 blocks ==2092== still reachable: 0 bytes in 0 blocks ==2092== suppressed: 0 bytes in 0 blocks ==2092== ==2092== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:21:30
  • Finished 2023-07-24T00:21:31
  • Duration 1 minute
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 46.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_49)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_3605)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode_system_3460; extern TFrame* framePtr_system_3135; extern TFrame* framePtr_system_3135; extern TFrame* framePtr_system_3135; extern TFrame* framePtr_system_3135; extern TFrame* framePtr_system_3135; extern TFrame* framePtr_system_3135; #line 420 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 421 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" result = (&nimInErrorMode_system_3460); return result;} #line 2206 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 546 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!(framePtr_system_3135 == ((TFrame*) NIM_NIL))) goto LA3_; #line 548 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr_system_3135).calldepth + ((NI16) 1)); } LA1_: ; #line 553 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).prev = framePtr_system_3135; #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_3135 = s; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" callDepthLimitReached_system_3605(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_3135 = (*framePtr_system_3135).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl_systemZassertions_49(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2138== Memcheck, a memory error detector ==2138== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2138== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2138== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2138== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2138== ==2138== HEAP SUMMARY: ==2138== in use at exit: 96 bytes in 2 blocks ==2138== total heap usage: 5 allocs, 3 frees, 4,218 bytes allocated ==2138== ==2138== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2138== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2138== by 0x109556: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x109568: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10BDFD: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10BF15: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E240: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E55A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E58B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E7E4: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E82C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E72C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E752: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== ==2138== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2138== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2138== by 0x10B201: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x1093C5: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x109507: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E7DF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E82C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E72C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x10E752: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2138== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2138== ==2138== LEAK SUMMARY: ==2138== definitely lost: 96 bytes in 2 blocks ==2138== indirectly lost: 0 bytes in 0 blocks ==2138== possibly lost: 0 bytes in 0 blocks ==2138== still reachable: 0 bytes in 0 blocks ==2138== suppressed: 0 bytes in 0 blocks ==2138== ==2138== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:21:34
  • Finished 2023-07-24T00:21:35
  • Duration 1 minute
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 38.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 414 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 415 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2146 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 544 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 546 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 551 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 552 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 86 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 87 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2184== Memcheck, a memory error detector ==2184== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2184== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2184== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2184== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] ==2184== ==2184== HEAP SUMMARY: ==2184== in use at exit: 95 bytes in 2 blocks ==2184== total heap usage: 5 allocs, 3 frees, 4,217 bytes allocated ==2184== ==2184== 23 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2184== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2184== by 0x10A21F: alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2 (malloc.nim:6) ==2184== by 0x10A2CC: allocShared0Impl__WrVG9abV9chlTLqkiXYLKwUg (malloc.nim:26) ==2184== by 0x10DAED: toNimStr (strs_v2.nim:65) ==2184== by 0x10DBF4: cstrToNimstr (strs_v2.nim:74) ==2184== by 0x10E764: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:366) ==2184== by 0x10EA7B: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:407) ==2184== by 0x10EAAC: nimTestErrorFlag (excpt.nim:432) ==2184== by 0x10ED16: NimMainModule (temp.nim:5) ==2184== by 0x10ED5E: NimMainInner (excpt.nim:100) ==2184== by 0x10EC5E: NimMain (excpt.nim:108) ==2184== by 0x10EC84: main (excpt.nim:115) ==2184== ==2184== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2184== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2184== by 0x10B0E4: nimNewObj (refs_v2.nim:65) ==2184== by 0x1093C5: sysFatal__METp0EHKQZlD51D9bYP6PAAassertions (fatal.nim:49) ==2184== by 0x1093C5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:22) ==2184== by 0x109507: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:29) ==2184== by 0x10ED11: NimMainModule (temp.nim:1) ==2184== by 0x10ED5E: NimMainInner (excpt.nim:100) ==2184== by 0x10EC5E: NimMain (excpt.nim:108) ==2184== by 0x10EC84: main (excpt.nim:115) ==2184== ==2184== LEAK SUMMARY: ==2184== definitely lost: 95 bytes in 2 blocks ==2184== indirectly lost: 0 bytes in 0 blocks ==2184== possibly lost: 0 bytes in 0 blocks ==2184== still reachable: 0 bytes in 0 blocks ==2184== suppressed: 0 bytes in 0 blocks ==2184== ==2184== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:21:50
  • Finished 2023-07-24T00:21:51
  • Duration 1 minute
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 251.48 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'arc' found ```

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:22:05
  • Finished 2023-07-24T00:22:05
  • Duration now
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 251.48 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'arc' found ```

Stats

  • Created 2023-07-24T00:20:09Z
  • Started 2023-07-24T00:22:16
  • Finished 2023-07-24T00:22:16
  • Duration now
  • Commands nim c --gc:arc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 251.48 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 28 minutes bisecting 461 commits at 16 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T01:59:59
  • Finished 2023-07-24T02:00:01
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==1996== Memcheck, a memory error detector
==1996== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1996== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==1996== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==1996== 
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect]
==1996== 
==1996== HEAP SUMMARY:
==1996==     in use at exit: 112 bytes in 2 blocks
==1996==   total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated
==1996== 
==1996== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2
==1996==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==1996==    by 0x109EEA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x10D56A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x10D682: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114797: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114AB0: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114AE1: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114CE2: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114D2A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114D41: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114D67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x4890D8F: (below main) (libc_start_call_main.h:58)
==1996== 
==1996== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2
==1996==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==1996==    by 0x109EEA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x10DCDE: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x10D098: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x109B25: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x109C67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114CDD: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114D2A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114D41: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x114D67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==1996==    by 0x4890D8F: (below main) (libc_start_call_main.h:58)
==1996== 
==1996== LEAK SUMMARY:
==1996==    definitely lost: 112 bytes in 2 blocks
==1996==    indirectly lost: 0 bytes in 0 blocks
==1996==      possibly lost: 0 bytes in 0 blocks
==1996==    still reachable: 0 bytes in 0 blocks
==1996==         suppressed: 0 bytes in 0 blocks
==1996== 
==1996== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T02:00:01
  • Finished 2023-07-24T02:00:03
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 66.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_66)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_4808)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__system_4637; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" result = (&nimInErrorMode__system_4637); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!(framePtr__system_4286 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__system_4286).calldepth + ((NI16) 1)); } LA1_: ; #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).prev = framePtr__system_4286; #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = s; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" callDepthLimitReached__system_4808(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = (*framePtr__system_4286).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); PreMainInner(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { PreMain(); NimMainInner(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__systemZassertions_66(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2047== Memcheck, a memory error detector ==2047== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2047== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2047== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2047== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2047== ==2047== HEAP SUMMARY: ==2047== in use at exit: 112 bytes in 2 blocks ==2047== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2047== ==2047== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2047== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2047== by 0x10A540: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x10D9E3: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x10DAFB: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x113C85: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x113F9E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x113FCF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x11427F: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x1142C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x1141C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x1141ED: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2047== ==2047== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2047== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2047== by 0x10A540: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x10E222: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x10D511: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x10A17B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x10A2BD: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x11427A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x1142C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x1141C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x1141ED: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2047== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2047== ==2047== LEAK SUMMARY: ==2047== definitely lost: 112 bytes in 2 blocks ==2047== indirectly lost: 0 bytes in 0 blocks ==2047== possibly lost: 0 bytes in 0 blocks ==2047== still reachable: 0 bytes in 0 blocks ==2047== suppressed: 0 bytes in 0 blocks ==2047== ==2047== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T02:00:06
  • Finished 2023-07-24T02:00:07
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 66.22 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_62)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_4760)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode_system_4593; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; #line 420 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 421 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" result = (&nimInErrorMode_system_4593); return result;} #line 2206 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 546 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!(framePtr_system_4242 == ((TFrame*) NIM_NIL))) goto LA3_; #line 548 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr_system_4242).calldepth + ((NI16) 1)); } LA1_: ; #line 553 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).prev = framePtr_system_4242; #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = s; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" callDepthLimitReached_system_4760(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = (*framePtr_system_4242).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl_systemZassertions_62(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2091== Memcheck, a memory error detector ==2091== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2091== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2091== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2091== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2091== ==2091== HEAP SUMMARY: ==2091== in use at exit: 112 bytes in 2 blocks ==2091== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2091== ==2091== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2091== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2091== by 0x1095B8: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x1095CA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x10BEF1: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x10C009: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x113AA4: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x113DBE: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x113DEF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x1140AE: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x1140F6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x113FF6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x11401C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== ==2091== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2091== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2091== by 0x10A42E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x1093E5: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x109527: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x1140A9: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x1140F6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x113FF6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x11401C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2091== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2091== ==2091== LEAK SUMMARY: ==2091== definitely lost: 112 bytes in 2 blocks ==2091== indirectly lost: 0 bytes in 0 blocks ==2091== possibly lost: 0 bytes in 0 blocks ==2091== still reachable: 0 bytes in 0 blocks ==2091== suppressed: 0 bytes in 0 blocks ==2091== ==2091== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T02:00:10
  • Finished 2023-07-24T02:00:12
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 66.22 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 414 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 415 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2146 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 544 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 546 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 551 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 552 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 86 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 87 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2139== Memcheck, a memory error detector ==2139== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2139== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2139== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2139== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] ==2139== ==2139== HEAP SUMMARY: ==2139== in use at exit: 95 bytes in 2 blocks ==2139== total heap usage: 5 allocs, 3 frees, 4,217 bytes allocated ==2139== ==2139== 23 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2139== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2139== by 0x10A3E2: alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2 (malloc.nim:6) ==2139== by 0x10A48F: allocShared0Impl__WrVG9abV9chlTLqkiXYLKwUg (malloc.nim:26) ==2139== by 0x10E4F2: toNimStr (strs_v2.nim:65) ==2139== by 0x10E5F9: cstrToNimstr (strs_v2.nim:74) ==2139== by 0x1102F8: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:366) ==2139== by 0x11060F: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:407) ==2139== by 0x110640: nimTestErrorFlag (excpt.nim:432) ==2139== by 0x1108C8: NimMainModule (temp.nim:5) ==2139== by 0x110910: NimMainInner (excpt.nim:100) ==2139== by 0x110810: NimMain (excpt.nim:108) ==2139== by 0x110836: main (excpt.nim:115) ==2139== ==2139== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2139== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2139== by 0x10BAE7: nimNewObj (refs_v2.nim:65) ==2139== by 0x1093C5: sysFatal__METp0EHKQZlD51D9bYP6PAAassertions (fatal.nim:49) ==2139== by 0x1093C5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:22) ==2139== by 0x109507: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:29) ==2139== by 0x1108C3: NimMainModule (temp.nim:1) ==2139== by 0x110910: NimMainInner (excpt.nim:100) ==2139== by 0x110810: NimMain (excpt.nim:108) ==2139== by 0x110836: main (excpt.nim:115) ==2139== ==2139== LEAK SUMMARY: ==2139== definitely lost: 95 bytes in 2 blocks ==2139== indirectly lost: 0 bytes in 0 blocks ==2139== possibly lost: 0 bytes in 0 blocks ==2139== still reachable: 0 bytes in 0 blocks ==2139== suppressed: 0 bytes in 0 blocks ==2139== ==2139== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T02:00:26
  • Finished 2023-07-24T02:00:28
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T02:00:41
  • Finished 2023-07-24T02:00:41
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T01:59:19Z
  • Started 2023-07-24T02:00:53
  • Finished 2023-07-24T02:00:53
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind --leak-check=full --undef-value-errors=no --show-error-list=yes /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 29 minutes bisecting 461 commits at 16 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

let a = create string
a[] = "a"
echo a[]
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

a

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:08:15
  • Finished 2023-07-24T12:08:17
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :+1: OK

Output

a

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:08:17
  • Finished 2023-07-24T12:08:19
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.6.0 :+1: OK

Output

a

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:08:23
  • Finished 2023-07-24T12:08:25
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.4.0 :+1: OK

Output

a

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:08:28
  • Finished 2023-07-24T12:08:30
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.2.0 :+1: OK

Output

a

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:08:45
  • Finished 2023-07-24T12:08:47
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.0.0 :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:09:00
  • Finished 2023-07-24T12:09:00
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 308.09 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; typedef NimStringV2 tyArray__nHXaesL0DJZHyVS07ARPRA[1]; static N_INLINE(NimStringV2*, create__JpGpqWlQrMXADQopo9b358gsystem)(NI size); N_LIB_PRIVATE N_NOCONV(void*, alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2)(NI size); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b); N_LIB_PRIVATE N_NIMCALL(void, eqsink___aBBXmHFBEivKqERloP6zmA)(NimStringV2* dest, NimStringV2 src); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringV2* args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[1+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_3 = { 1 | NIM_STRLIT_FLAG, "a" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_4 = {1, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_3}; N_LIB_PRIVATE NimStringV2* a__7ocXgRdjBd9bQgKubfck8ZQ; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 121 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" static N_INLINE(NimStringV2*, create__JpGpqWlQrMXADQopo9b358gsystem)(NI size) { NimStringV2* result; NI TM__h69aKLv9bAieBdiFzvDngbMw_2; void* T1_;{ result = (NimStringV2*)0; #line 122 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" #line 131 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" #line 131 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" if (nimMulInt(((NI) 16), ((NI) (size)), &TM__h69aKLv9bAieBdiFzvDngbMw_2)) { raiseOverflow(); goto BeforeRet_;}; if (((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2)) < ((NI) 0) || ((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2), ((NI) 0), ((NI) IL64(9223372036854775807))); goto BeforeRet_;} #line 131 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" T1_ = (void*)0; T1_ = alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2(((NI) ((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2)))); result = ((NimStringV2*) (T1_)); }BeforeRet_: ; return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { tyArray__nHXaesL0DJZHyVS07ARPRA T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" a__7ocXgRdjBd9bQgKubfck8ZQ = create__JpGpqWlQrMXADQopo9b358gsystem(((NI) 1)); #line 49 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim" #line 49 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim" eqsink___aBBXmHFBEivKqERloP6zmA((&(*a__7ocXgRdjBd9bQgKubfck8ZQ)), TM__h69aKLv9bAieBdiFzvDngbMw_4); #line 3 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" T1_[0] = (*a__7ocXgRdjBd9bQgKubfck8ZQ); echoBinSafe(T1_, 1); nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("a"), newEmptyNode(), nnkCommand.newTree( newIdentNode("create"), newIdentNode("string") ) ) ), nnkAsgn.newTree( nnkBracketExpr.newTree( newIdentNode("a") ), newLit("a") ), nnkCommand.newTree( newIdentNode("echo"), nnkBracketExpr.newTree( newIdentNode("a") ) ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T12:07:23Z
  • Started 2023-07-24T12:09:12
  • Finished 2023-07-24T12:09:12
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 308.09 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; typedef NimStringV2 tyArray__nHXaesL0DJZHyVS07ARPRA[1]; static N_INLINE(NimStringV2*, create__JpGpqWlQrMXADQopo9b358gsystem)(NI size); N_LIB_PRIVATE N_NOCONV(void*, alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2)(NI size); N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void); N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b); N_LIB_PRIVATE N_NIMCALL(void, eqsink___aBBXmHFBEivKqERloP6zmA)(NimStringV2* dest, NimStringV2 src); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringV2* args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[1+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_3 = { 1 | NIM_STRLIT_FLAG, "a" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_4 = {1, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_3}; N_LIB_PRIVATE NimStringV2* a__7ocXgRdjBd9bQgKubfck8ZQ; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 121 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" static N_INLINE(NimStringV2*, create__JpGpqWlQrMXADQopo9b358gsystem)(NI size) { NimStringV2* result; NI TM__h69aKLv9bAieBdiFzvDngbMw_2; void* T1_;{ result = (NimStringV2*)0; #line 122 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" #line 131 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" #line 131 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" if (nimMulInt(((NI) 16), ((NI) (size)), &TM__h69aKLv9bAieBdiFzvDngbMw_2)) { raiseOverflow(); goto BeforeRet_;}; if (((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2)) < ((NI) 0) || ((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2), ((NI) 0), ((NI) IL64(9223372036854775807))); goto BeforeRet_;} #line 131 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/memalloc.nim" T1_ = (void*)0; T1_ = alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2(((NI) ((NI)(TM__h69aKLv9bAieBdiFzvDngbMw_2)))); result = ((NimStringV2*) (T1_)); }BeforeRet_: ; return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { tyArray__nHXaesL0DJZHyVS07ARPRA T1_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" a__7ocXgRdjBd9bQgKubfck8ZQ = create__JpGpqWlQrMXADQopo9b358gsystem(((NI) 1)); #line 49 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim" #line 49 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim" eqsink___aBBXmHFBEivKqERloP6zmA((&(*a__7ocXgRdjBd9bQgKubfck8ZQ)), TM__h69aKLv9bAieBdiFzvDngbMw_4); #line 3 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" T1_[0] = (*a__7ocXgRdjBd9bQgKubfck8ZQ); echoBinSafe(T1_, 1); nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("a"), newEmptyNode(), nnkCommand.newTree( newIdentNode("create"), newIdentNode("string") ) ) ), nnkAsgn.newTree( nnkBracketExpr.newTree( newIdentNode("a") ), newLit("a") ), nnkCommand.newTree( newIdentNode("echo"), nnkBracketExpr.newTree( newIdentNode("a") ) ) ) ```
:arrow_right: :bug:

Diagnostics

juan m gómez introduced a bug at 2023-07-23 15:42:20 +0100 on commit with message: ``` Expands codegenDecl to work in function params. fixes #22306 (#22307) * Expands codegenDecl to work in function params. fixes #22306 * makes the test more concrete so T{lit} params dont match * adds sfCodegenDecl ``` The bug is in the files: ``` compiler/ast.nim compiler/ccgtypes.nim compiler/cgen.nim compiler/pragmas.nim compiler/semtypes.nim compiler/sigmatch.nim tests/cpp/tcodegendecl.nim ``` The bug can be in the commits:
(Diagnostics sometimes off-by-one).
:robot: Bug found in 22 minutes bisecting 8 commits at 0 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:25:15
  • Finished 2023-07-24T12:25:17
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2007== Memcheck, a memory error detector
==2007== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2007== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2007== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2007== 
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect]
==2007== 
==2007== HEAP SUMMARY:
==2007==     in use at exit: 112 bytes in 2 blocks
==2007==   total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated
==2007== 
==2007== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2
==2007==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2007==    by 0x109EEA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x10D56A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x10D682: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114797: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114AB0: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114AE1: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114CE2: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114D2A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114D41: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114D67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x4890D8F: (below main) (libc_start_call_main.h:58)
==2007== 
==2007== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2
==2007==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2007==    by 0x109EEA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x10DCDE: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x10D098: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x109B25: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x109C67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114CDD: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114D2A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114D41: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x114D67: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp)
==2007==    by 0x4890D8F: (below main) (libc_start_call_main.h:58)
==2007== 
==2007== LEAK SUMMARY:
==2007==    definitely lost: 112 bytes in 2 blocks
==2007==    indirectly lost: 0 bytes in 0 blocks
==2007==      possibly lost: 0 bytes in 0 blocks
==2007==    still reachable: 0 bytes in 0 blocks
==2007==         suppressed: 0 bytes in 0 blocks
==2007== 
==2007== For lists of detected and suppressed errors, rerun with: -s
==2007== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:25:17
  • Finished 2023-07-24T12:25:19
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 66.21 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_66)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_4808)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__system_4637; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" result = (&nimInErrorMode__system_4637); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!(framePtr__system_4286 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__system_4286).calldepth + ((NI16) 1)); } LA1_: ; #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).prev = framePtr__system_4286; #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = s; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" callDepthLimitReached__system_4808(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = (*framePtr__system_4286).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); PreMainInner(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { PreMain(); NimMainInner(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__systemZassertions_66(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2060== Memcheck, a memory error detector ==2060== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2060== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2060== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2060== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2060== ==2060== HEAP SUMMARY: ==2060== in use at exit: 112 bytes in 2 blocks ==2060== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2060== ==2060== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2060== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2060== by 0x10A540: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x10D9E3: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x10DAFB: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x113C85: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x113F9E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x113FCF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x11427F: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x1142C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x1141C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x1141ED: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2060== ==2060== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2060== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2060== by 0x10A540: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x10E222: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x10D511: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x10A17B: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x10A2BD: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x11427A: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x1142C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x1141C7: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x1141ED: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2060== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2060== ==2060== LEAK SUMMARY: ==2060== definitely lost: 112 bytes in 2 blocks ==2060== indirectly lost: 0 bytes in 0 blocks ==2060== possibly lost: 0 bytes in 0 blocks ==2060== still reachable: 0 bytes in 0 blocks ==2060== suppressed: 0 bytes in 0 blocks ==2060== ==2060== For lists of detected and suppressed errors, rerun with: -s ==2060== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:25:22
  • Finished 2023-07-24T12:25:23
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 66.22 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_62)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_4760)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode_system_4593; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; #line 420 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 421 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" result = (&nimInErrorMode_system_4593); return result;} #line 2206 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 546 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!(framePtr_system_4242 == ((TFrame*) NIM_NIL))) goto LA3_; #line 548 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr_system_4242).calldepth + ((NI16) 1)); } LA1_: ; #line 553 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).prev = framePtr_system_4242; #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = s; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" callDepthLimitReached_system_4760(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = (*framePtr_system_4242).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl_systemZassertions_62(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2106== Memcheck, a memory error detector ==2106== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2106== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2106== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2106== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2106== ==2106== HEAP SUMMARY: ==2106== in use at exit: 112 bytes in 2 blocks ==2106== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2106== ==2106== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2106== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2106== by 0x1095B8: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x1095CA: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x10BEF1: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x10C009: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x113AA4: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x113DBE: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x113DEF: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x1140AE: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x1140F6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x113FF6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x11401C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== ==2106== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2106== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2106== by 0x10A42E: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x1093E5: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x109527: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x1140A9: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x1140F6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x113FF6: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x11401C: ??? (in /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp) ==2106== by 0x4890D8F: (below main) (libc_start_call_main.h:58) ==2106== ==2106== LEAK SUMMARY: ==2106== definitely lost: 112 bytes in 2 blocks ==2106== indirectly lost: 0 bytes in 0 blocks ==2106== possibly lost: 0 bytes in 0 blocks ==2106== still reachable: 0 bytes in 0 blocks ==2106== suppressed: 0 bytes in 0 blocks ==2106== ==2106== For lists of detected and suppressed errors, rerun with: -s ==2106== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:25:27
  • Finished 2023-07-24T12:25:28
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 66.22 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 414 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 415 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2146 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 544 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 546 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 551 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 552 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 86 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 87 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2154== Memcheck, a memory error detector ==2154== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2154== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2154== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2154== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] ==2154== ==2154== HEAP SUMMARY: ==2154== in use at exit: 95 bytes in 2 blocks ==2154== total heap usage: 5 allocs, 3 frees, 4,217 bytes allocated ==2154== ==2154== 23 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2154== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2154== by 0x10A3E2: alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2 (malloc.nim:6) ==2154== by 0x10A48F: allocShared0Impl__WrVG9abV9chlTLqkiXYLKwUg (malloc.nim:26) ==2154== by 0x10E4F2: toNimStr (strs_v2.nim:65) ==2154== by 0x10E5F9: cstrToNimstr (strs_v2.nim:74) ==2154== by 0x1102F8: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:366) ==2154== by 0x11060F: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:407) ==2154== by 0x110640: nimTestErrorFlag (excpt.nim:432) ==2154== by 0x1108C8: NimMainModule (temp.nim:5) ==2154== by 0x110910: NimMainInner (excpt.nim:100) ==2154== by 0x110810: NimMain (excpt.nim:108) ==2154== by 0x110836: main (excpt.nim:115) ==2154== ==2154== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2154== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2154== by 0x10BAE7: nimNewObj (refs_v2.nim:65) ==2154== by 0x1093C5: sysFatal__METp0EHKQZlD51D9bYP6PAAassertions (fatal.nim:49) ==2154== by 0x1093C5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:22) ==2154== by 0x109507: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:29) ==2154== by 0x1108C3: NimMainModule (temp.nim:1) ==2154== by 0x110910: NimMainInner (excpt.nim:100) ==2154== by 0x110810: NimMain (excpt.nim:108) ==2154== by 0x110836: main (excpt.nim:115) ==2154== ==2154== LEAK SUMMARY: ==2154== definitely lost: 95 bytes in 2 blocks ==2154== indirectly lost: 0 bytes in 0 blocks ==2154== possibly lost: 0 bytes in 0 blocks ==2154== still reachable: 0 bytes in 0 blocks ==2154== suppressed: 0 bytes in 0 blocks ==2154== ==2154== For lists of detected and suppressed errors, rerun with: -s ==2154== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:25:44
  • Finished 2023-07-24T12:25:45
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:25:59
  • Finished 2023-07-24T12:25:59
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T12:24:35Z
  • Started 2023-07-24T12:26:10
  • Finished 2023-07-24T12:26:10
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:strip -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 22 minutes bisecting 461 commits at 21 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:06:22
  • Finished 2023-07-24T14:06:23
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2024== Memcheck, a memory error detector
==2024== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2024== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2024== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2024== 
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect]
==2024== 
==2024== HEAP SUMMARY:
==2024==     in use at exit: 112 bytes in 2 blocks
==2024==   total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated
==2024== 
==2024== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2
==2024==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2024==    by 0x109EEA: alloc0Impl__system_1733 (malloc.nim:11)
==2024==    by 0x10D56A: toNimStr (strs_v2.nim:79)
==2024==    by 0x10D682: cstrToNimstr (strs_v2.nim:88)
==2024==    by 0x114797: reportUnhandledErrorAux__system_4609 (excpt.nim:370)
==2024==    by 0x114AB0: reportUnhandledError__system_4626 (excpt.nim:408)
==2024==    by 0x114AE1: nimTestErrorFlag (excpt.nim:431)
==2024==    by 0x114CE2: NimMainModule (temp.nim:5)
==2024==    by 0x114D2A: NimMainInner (excpt.nim:115)
==2024== 
==2024== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2
==2024==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2024==    by 0x109EEA: alloc0Impl__system_1733 (malloc.nim:11)
==2024==    by 0x10DCDE: alignedAlloc0__system_1903 (memalloc.nim:359)
==2024==    by 0x10D098: nimNewObj (arc.nim:86)
==2024==    by 0x109B25: sysFatal__systemZassertions_25 (fatal.nim:54)
==2024==    by 0x109B25: raiseAssert__systemZassertions_23 (assertions.nim:28)
==2024==    by 0x109C67: failedAssertImpl__systemZassertions_66 (assertions.nim:38)
==2024==    by 0x114CDD: NimMainModule (temp.nim:1)
==2024==    by 0x114D2A: NimMainInner (excpt.nim:115)
==2024==    by 0x114D41: NimMain (excpt.nim:120)
==2024== 
==2024== LEAK SUMMARY:
==2024==    definitely lost: 112 bytes in 2 blocks
==2024==    indirectly lost: 0 bytes in 0 blocks
==2024==      possibly lost: 0 bytes in 0 blocks
==2024==    still reachable: 0 bytes in 0 blocks
==2024==         suppressed: 0 bytes in 0 blocks
==2024== 
==2024== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:06:24
  • Finished 2023-07-24T14:06:26
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 398.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_66)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_4808)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__system_4637; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" result = (&nimInErrorMode__system_4637); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!(framePtr__system_4286 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__system_4286).calldepth + ((NI16) 1)); } LA1_: ; #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).prev = framePtr__system_4286; #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = s; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" callDepthLimitReached__system_4808(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = (*framePtr__system_4286).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); PreMainInner(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { PreMain(); NimMainInner(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__systemZassertions_66(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2080== Memcheck, a memory error detector ==2080== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2080== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2080== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2080== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2080== ==2080== HEAP SUMMARY: ==2080== in use at exit: 112 bytes in 2 blocks ==2080== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2080== ==2080== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2080== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2080== by 0x10A540: alloc0Impl_system_1727 (malloc.nim:8) ==2080== by 0x10D9E3: toNimStr (strs_v2.nim:79) ==2080== by 0x10DAFB: cstrToNimstr (strs_v2.nim:88) ==2080== by 0x113C85: reportUnhandledErrorAux_system_4565 (excpt.nim:369) ==2080== by 0x113F9E: reportUnhandledError_system_4582 (excpt.nim:405) ==2080== by 0x113FCF: nimTestErrorFlag (excpt.nim:428) ==2080== by 0x11427F: NimMainModule (temp.nim:5) ==2080== by 0x1142C7: NimMainInner (excpt.nim:117) ==2080== ==2080== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2080== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2080== by 0x10A540: alloc0Impl_system_1727 (malloc.nim:8) ==2080== by 0x10E222: alignedAlloc0_system_1897 (memalloc.nim:353) ==2080== by 0x10D511: nimNewObj (arc.nim:86) ==2080== by 0x10A17B: sysFatal_systemZassertions_25 (fatal.nim:52) ==2080== by 0x10A17B: raiseAssert_systemZassertions_23 (assertions.nim:28) ==2080== by 0x10A2BD: failedAssertImpl_systemZassertions_62 (assertions.nim:38) ==2080== by 0x11427A: NimMainModule (temp.nim:1) ==2080== by 0x1142C7: NimMainInner (excpt.nim:117) ==2080== by 0x1141C7: NimMain (excpt.nim:125) ==2080== ==2080== LEAK SUMMARY: ==2080== definitely lost: 112 bytes in 2 blocks ==2080== indirectly lost: 0 bytes in 0 blocks ==2080== possibly lost: 0 bytes in 0 blocks ==2080== still reachable: 0 bytes in 0 blocks ==2080== suppressed: 0 bytes in 0 blocks ==2080== ==2080== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:06:29
  • Finished 2023-07-24T14:06:30
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 394.81 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_62)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_4760)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode_system_4593; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; #line 420 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 421 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" result = (&nimInErrorMode_system_4593); return result;} #line 2206 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 546 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!(framePtr_system_4242 == ((TFrame*) NIM_NIL))) goto LA3_; #line 548 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr_system_4242).calldepth + ((NI16) 1)); } LA1_: ; #line 553 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).prev = framePtr_system_4242; #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = s; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" callDepthLimitReached_system_4760(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = (*framePtr_system_4242).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl_systemZassertions_62(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2125== Memcheck, a memory error detector ==2125== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2125== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2125== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2125== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2125== ==2125== HEAP SUMMARY: ==2125== in use at exit: 112 bytes in 2 blocks ==2125== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2125== ==2125== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2125== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2125== by 0x1095B8: alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg_2 (malloc.nim:8) ==2125== by 0x1095CA: allocShared0Impl__KzdpcuLT9aef9bsiSHlIu9aFg (malloc.nim:28) ==2125== by 0x10BEF1: toNimStr (strs_v2.nim:66) ==2125== by 0x10C009: cstrToNimstr (strs_v2.nim:75) ==2125== by 0x113AA4: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:356) ==2125== by 0x113DBE: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:397) ==2125== by 0x113DEF: nimTestErrorFlag (excpt.nim:422) ==2125== by 0x1140AE: NimMainModule (temp.nim:5) ==2125== ==2125== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2125== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2125== by 0x10A42E: nimNewObj (arc.nim:83) ==2125== by 0x1093E5: sysFatal__3MqFiUWEqQBXOyOla7Oh4gassertions (fatal.nim:49) ==2125== by 0x1093E5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:23) ==2125== by 0x109527: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:30) ==2125== by 0x1140A9: NimMainModule (temp.nim:1) ==2125== by 0x1140F6: NimMainInner (excpt.nim:104) ==2125== by 0x113FF6: NimMain (excpt.nim:112) ==2125== by 0x11401C: main (excpt.nim:119) ==2125== ==2125== LEAK SUMMARY: ==2125== definitely lost: 112 bytes in 2 blocks ==2125== indirectly lost: 0 bytes in 0 blocks ==2125== possibly lost: 0 bytes in 0 blocks ==2125== still reachable: 0 bytes in 0 blocks ==2125== suppressed: 0 bytes in 0 blocks ==2125== ==2125== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:06:33
  • Finished 2023-07-24T14:06:34
  • Duration 2 minutes
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 400.09 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 414 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 415 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2146 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 544 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 546 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 551 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 552 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 86 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 87 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2168== Memcheck, a memory error detector ==2168== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2168== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2168== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2168== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] ==2168== ==2168== HEAP SUMMARY: ==2168== in use at exit: 95 bytes in 2 blocks ==2168== total heap usage: 5 allocs, 3 frees, 4,217 bytes allocated ==2168== ==2168== 23 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2168== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2168== by 0x10A3E2: alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2 (malloc.nim:6) ==2168== by 0x10A48F: allocShared0Impl__WrVG9abV9chlTLqkiXYLKwUg (malloc.nim:26) ==2168== by 0x10E4F2: toNimStr (strs_v2.nim:65) ==2168== by 0x10E5F9: cstrToNimstr (strs_v2.nim:74) ==2168== by 0x1102F8: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:366) ==2168== by 0x11060F: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:407) ==2168== by 0x110640: nimTestErrorFlag (excpt.nim:432) ==2168== by 0x1108C8: NimMainModule (temp.nim:5) ==2168== ==2168== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2168== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2168== by 0x10BAE7: nimNewObj (refs_v2.nim:65) ==2168== by 0x1093C5: sysFatal__METp0EHKQZlD51D9bYP6PAAassertions (fatal.nim:49) ==2168== by 0x1093C5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:22) ==2168== by 0x109507: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:29) ==2168== by 0x1108C3: NimMainModule (temp.nim:1) ==2168== by 0x110910: NimMainInner (excpt.nim:100) ==2168== by 0x110810: NimMain (excpt.nim:108) ==2168== by 0x110836: main (excpt.nim:115) ==2168== ==2168== LEAK SUMMARY: ==2168== definitely lost: 95 bytes in 2 blocks ==2168== indirectly lost: 0 bytes in 0 blocks ==2168== possibly lost: 0 bytes in 0 blocks ==2168== still reachable: 0 bytes in 0 blocks ==2168== suppressed: 0 bytes in 0 blocks ==2168== ==2168== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:06:50
  • Finished 2023-07-24T14:06:51
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:07:04
  • Finished 2023-07-24T14:07:04
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T14:05:15Z
  • Started 2023-07-24T14:07:14
  • Finished 2023-07-24T14:07:14
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 31 minutes bisecting 461 commits at 15 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:09:58
  • Finished 2023-07-24T16:10:00
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2081== Memcheck, a memory error detector
==2081== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2081== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==2081== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
==2081== 
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect]
==2081== 
==2081== HEAP SUMMARY:
==2081==     in use at exit: 112 bytes in 2 blocks
==2081==   total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated
==2081== 
==2081== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2
==2081==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2081==    by 0x109EEA: alloc0Impl__system_1733 (malloc.nim:11)
==2081==    by 0x10D56A: toNimStr (strs_v2.nim:79)
==2081==    by 0x10D682: cstrToNimstr (strs_v2.nim:88)
==2081==    by 0x114797: reportUnhandledErrorAux__system_4609 (excpt.nim:370)
==2081==    by 0x114AB0: reportUnhandledError__system_4626 (excpt.nim:408)
==2081==    by 0x114AE1: nimTestErrorFlag (excpt.nim:431)
==2081==    by 0x114CE2: NimMainModule (temp.nim:5)
==2081==    by 0x114D2A: NimMainInner (excpt.nim:115)
==2081== 
==2081== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2
==2081==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2081==    by 0x109EEA: alloc0Impl__system_1733 (malloc.nim:11)
==2081==    by 0x10DCDE: alignedAlloc0__system_1903 (memalloc.nim:359)
==2081==    by 0x10D098: nimNewObj (arc.nim:86)
==2081==    by 0x109B25: sysFatal__systemZassertions_25 (fatal.nim:54)
==2081==    by 0x109B25: raiseAssert__systemZassertions_23 (assertions.nim:28)
==2081==    by 0x109C67: failedAssertImpl__systemZassertions_66 (assertions.nim:38)
==2081==    by 0x114CDD: NimMainModule (temp.nim:1)
==2081==    by 0x114D2A: NimMainInner (excpt.nim:115)
==2081==    by 0x114D41: NimMain (excpt.nim:120)
==2081== 
==2081== LEAK SUMMARY:
==2081==    definitely lost: 112 bytes in 2 blocks
==2081==    indirectly lost: 0 bytes in 0 blocks
==2081==      possibly lost: 0 bytes in 0 blocks
==2081==    still reachable: 0 bytes in 0 blocks
==2081==         suppressed: 0 bytes in 0 blocks
==2081== 
==2081== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:10:00
  • Finished 2023-07-24T16:10:02
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 398.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_66)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_4808)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__system_4637; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; extern TFrame* framePtr__system_4286; #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { #line 423 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" NIM_BOOL* result; result = (NIM_BOOL*)0; #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 424 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" result = (&nimInErrorMode__system_4637); return result;} #line 549 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 550 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!(framePtr__system_4286 == ((TFrame*) NIM_NIL))) goto LA3_; #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__system_4286).calldepth + ((NI16) 1)); } LA1_: ; #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 556 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" (*s).prev = framePtr__system_4286; #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 557 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = s; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" { #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 558 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" callDepthLimitReached__system_4808(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/excpt.nim" framePtr__system_4286 = (*framePtr__system_4286).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); PreMainInner(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { PreMain(); NimMainInner(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__systemZassertions_66(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2133== Memcheck, a memory error detector ==2133== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2133== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2133== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2133== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2133== ==2133== HEAP SUMMARY: ==2133== in use at exit: 112 bytes in 2 blocks ==2133== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2133== ==2133== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2133== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2133== by 0x10A540: alloc0Impl_system_1727 (malloc.nim:8) ==2133== by 0x10D9E3: toNimStr (strs_v2.nim:79) ==2133== by 0x10DAFB: cstrToNimstr (strs_v2.nim:88) ==2133== by 0x113C85: reportUnhandledErrorAux_system_4565 (excpt.nim:369) ==2133== by 0x113F9E: reportUnhandledError_system_4582 (excpt.nim:405) ==2133== by 0x113FCF: nimTestErrorFlag (excpt.nim:428) ==2133== by 0x11427F: NimMainModule (temp.nim:5) ==2133== by 0x1142C7: NimMainInner (excpt.nim:117) ==2133== ==2133== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2133== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2133== by 0x10A540: alloc0Impl_system_1727 (malloc.nim:8) ==2133== by 0x10E222: alignedAlloc0_system_1897 (memalloc.nim:353) ==2133== by 0x10D511: nimNewObj (arc.nim:86) ==2133== by 0x10A17B: sysFatal_systemZassertions_25 (fatal.nim:52) ==2133== by 0x10A17B: raiseAssert_systemZassertions_23 (assertions.nim:28) ==2133== by 0x10A2BD: failedAssertImpl_systemZassertions_62 (assertions.nim:38) ==2133== by 0x11427A: NimMainModule (temp.nim:1) ==2133== by 0x1142C7: NimMainInner (excpt.nim:117) ==2133== by 0x1141C7: NimMain (excpt.nim:125) ==2133== ==2133== LEAK SUMMARY: ==2133== definitely lost: 112 bytes in 2 blocks ==2133== indirectly lost: 0 bytes in 0 blocks ==2133== possibly lost: 0 bytes in 0 blocks ==2133== still reachable: 0 bytes in 0 blocks ==2133== suppressed: 0 bytes in 0 blocks ==2133== ==2133== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:10:05
  • Finished 2023-07-24T16:10:07
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 394.81 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_62)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_4760)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode_system_4593; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; extern TFrame* framePtr_system_4242; #line 420 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 421 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" result = (&nimInErrorMode_system_4593); return result;} #line 2206 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 546 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 547 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!(framePtr_system_4242 == ((TFrame*) NIM_NIL))) goto LA3_; #line 548 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 551 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr_system_4242).calldepth + ((NI16) 1)); } LA1_: ; #line 553 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" (*s).prev = framePtr_system_4242; #line 554 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = s; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" { #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" #line 555 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" callDepthLimitReached_system_4760(); } LA8_: ; } #line 99 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 100 "/home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/excpt.nim" framePtr_system_4242 = (*framePtr_system_4242).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl_systemZassertions_62(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2178== Memcheck, a memory error detector ==2178== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2178== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2178== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2178== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionDefect] ==2178== ==2178== HEAP SUMMARY: ==2178== in use at exit: 112 bytes in 2 blocks ==2178== total heap usage: 5 allocs, 3 frees, 4,234 bytes allocated ==2178== ==2178== 24 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2178== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2178== by 0x1095B8: alloc0Impl__KzdpcuLT9aef9bsiSHlIu9aFg_2 (malloc.nim:8) ==2178== by 0x1095CA: allocShared0Impl__KzdpcuLT9aef9bsiSHlIu9aFg (malloc.nim:28) ==2178== by 0x10BEF1: toNimStr (strs_v2.nim:66) ==2178== by 0x10C009: cstrToNimstr (strs_v2.nim:75) ==2178== by 0x113AA4: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:356) ==2178== by 0x113DBE: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:397) ==2178== by 0x113DEF: nimTestErrorFlag (excpt.nim:422) ==2178== by 0x1140AE: NimMainModule (temp.nim:5) ==2178== ==2178== 88 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2178== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2178== by 0x10A42E: nimNewObj (arc.nim:83) ==2178== by 0x1093E5: sysFatal__3MqFiUWEqQBXOyOla7Oh4gassertions (fatal.nim:49) ==2178== by 0x1093E5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:23) ==2178== by 0x109527: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:30) ==2178== by 0x1140A9: NimMainModule (temp.nim:1) ==2178== by 0x1140F6: NimMainInner (excpt.nim:104) ==2178== by 0x113FF6: NimMain (excpt.nim:112) ==2178== by 0x11401C: main (excpt.nim:119) ==2178== ==2178== LEAK SUMMARY: ==2178== definitely lost: 112 bytes in 2 blocks ==2178== indirectly lost: 0 bytes in 0 blocks ==2178== possibly lost: 0 bytes in 0 blocks ==2178== still reachable: 0 bytes in 0 blocks ==2178== suppressed: 0 bytes in 0 blocks ==2178== ==2178== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:10:09
  • Finished 2023-07-24T16:10:11
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 400.09 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 414 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 415 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2146 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 544 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 546 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 549 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 551 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 552 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" { #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" #line 553 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 86 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 87 "/home/runner/.choosenim/toolchains/nim-1.4.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { if (!NIM_TRUE) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2225== Memcheck, a memory error detector ==2225== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2225== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2225== Command: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ==2225== /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor == 9` Simulate Bug [AssertionError] ==2225== ==2225== HEAP SUMMARY: ==2225== in use at exit: 95 bytes in 2 blocks ==2225== total heap usage: 5 allocs, 3 frees, 4,217 bytes allocated ==2225== ==2225== 23 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==2225== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2225== by 0x10A3E2: alloc0Impl__WrVG9abV9chlTLqkiXYLKwUg_2 (malloc.nim:6) ==2225== by 0x10A48F: allocShared0Impl__WrVG9abV9chlTLqkiXYLKwUg (malloc.nim:26) ==2225== by 0x10E4F2: toNimStr (strs_v2.nim:65) ==2225== by 0x10E5F9: cstrToNimstr (strs_v2.nim:74) ==2225== by 0x1102F8: reportUnhandledErrorAux__na8C8pUZ9cLQWVwk35l5vfw_3 (excpt.nim:366) ==2225== by 0x11060F: reportUnhandledError__na8C8pUZ9cLQWVwk35l5vfw_2 (excpt.nim:407) ==2225== by 0x110640: nimTestErrorFlag (excpt.nim:432) ==2225== by 0x1108C8: NimMainModule (temp.nim:5) ==2225== ==2225== 72 bytes in 1 blocks are definitely lost in loss record 2 of 2 ==2225== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==2225== by 0x10BAE7: nimNewObj (refs_v2.nim:65) ==2225== by 0x1093C5: sysFatal__METp0EHKQZlD51D9bYP6PAAassertions (fatal.nim:49) ==2225== by 0x1093C5: raiseAssert__gpGJG5CoQzE64skFd9bPG7A (assertions.nim:22) ==2225== by 0x109507: failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A (assertions.nim:29) ==2225== by 0x1108C3: NimMainModule (temp.nim:1) ==2225== by 0x110910: NimMainInner (excpt.nim:100) ==2225== by 0x110810: NimMain (excpt.nim:108) ==2225== by 0x110836: main (excpt.nim:115) ==2225== ==2225== LEAK SUMMARY: ==2225== definitely lost: 95 bytes in 2 blocks ==2225== indirectly lost: 0 bytes in 0 blocks ==2225== possibly lost: 0 bytes in 0 blocks ==2225== still reachable: 0 bytes in 0 blocks ==2225== suppressed: 0 bytes in 0 blocks ==2225== ==2225== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) ```

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:10:27
  • Finished 2023-07-24T16:10:28
  • Duration 1 minute
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:10:42
  • Finished 2023-07-24T16:10:42
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp command line(1, 2) Error: 'none', 'boehm' or 'refc' expected, but 'orc' found ```

Stats

  • Created 2023-07-24T16:09:19Z
  • Started 2023-07-24T16:10:53
  • Finished 2023-07-24T16:10:53
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 300.67 Kb ```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStrPayload NimStrPayload; typedef struct NimStringV2 NimStringV2; struct NimStrPayload {NI cap; NIM_CHAR data[SEQ_DECL_SIZE]; }; struct NimStringV2 {NI len; NimStrPayload* p; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringV2 msg); static N_INLINE(NIM_BOOL*, nimErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); static N_INLINE(void, initStackBottomWith)(void* locals); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); static const struct { NI cap; NIM_CHAR data[110+1]; } TM__h69aKLv9bAieBdiFzvDngbMw_2 = { 110 | NIM_STRLIT_FLAG, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor == 9` Simulate Bug" }; static const NimStringV2 TM__h69aKLv9bAieBdiFzvDngbMw_3 = {110, (NimStrPayload*)&TM__h69aKLv9bAieBdiFzvDngbMw_2}; extern NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 424 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) { NIM_BOOL* result; result = (NIM_BOOL*)0; #line 425 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA); return result;} #line 2087 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system.nim" static N_INLINE(void, initStackBottomWith)(void* locals) {} #line 536 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, nimFrame)(TFrame* s) { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 537 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; #line 538 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 541 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; #line 543 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; #line 544 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" { #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" #line 545 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } #line 81 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" static N_INLINE(void, popFrame)(void) { #line 82 "/home/runner/.choosenim/toolchains/nim-1.2.0/lib/system/excpt.nim" framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev;} N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { #line 999999 "generated_not_to_break_here" { NIM_BOOL* nimErr_; nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim");nimErr_ = nimErrorFlag(); #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" { #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" if (!!((((NI) 2) == ((NI) 9)))) goto LA3_; #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" #line 1 "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim" failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(TM__h69aKLv9bAieBdiFzvDngbMw_3); if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_; } LA3_: ; BeforeRet_: ; nimTestErrorFlag(); popFrame();} } ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 6 minutes bisecting 461 commits at 71 commits per second.
juancarlospaco commented 1 year ago

!nim c

import std/net

proc main() =
  for i in 1 .. 4:
    let ctx = newContext()
main()
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:46:33
  • Finished 2023-07-24T17:46:37
  • Duration 4 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
stable :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:46:37
  • Finished 2023-07-24T17:46:42
  • Duration 4 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.6.0 :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:46:46
  • Finished 2023-07-24T17:46:50
  • Duration 4 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.4.0 :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:46:53
  • Finished 2023-07-24T17:46:58
  • Duration 4 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:47:14
  • Finished 2023-07-24T17:47:18
  • Duration 3 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:47:31
  • Finished 2023-07-24T17:47:35
  • Duration 3 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
0.20.2 :+1: OK

Output

Stats

  • Created 2023-07-24T17:45:45Z
  • Started 2023-07-24T17:47:46
  • Finished 2023-07-24T17:47:50
  • Duration 3 minutes
  • Commands nim c -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
:arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2023-07-24 23:22:50 +0800 on commit with message:

fixes #22321; fixes building DLL with --noMain still produces a DllMain (#22323)

* fixes #22321; Building DLL with --noMain produces an unexpected DllMain on devel branch

* remove implicit nomain

The bug is in the files:

compiler/cgen.nim
compiler/commands.nim

The bug can be in the commits:

(Diagnostics sometimes off-by-one).

:robot: Bug found in 51 minutes bisecting 8 commits at 0 commits per second.

juancarlospaco commented 1 year ago

!nim c --gc:orc

import std/net

proc main() =
  for i in 1 .. 4:
    let ctx = newContext()
main()
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
/bin/sh: 1: nim: not found

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:06
  • Finished 2023-07-24T18:03:06
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
stable :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:06
  • Finished 2023-07-24T18:03:06
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:07
  • Finished 2023-07-24T18:03:07
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:07
  • Finished 2023-07-24T18:03:07
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:08
  • Finished 2023-07-24T18:03:08
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:08
  • Finished 2023-07-24T18:03:08
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:01:28Z
  • Started 2023-07-24T18:03:09
  • Finished 2023-07-24T18:03:09
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits:
(Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 15 minutes bisecting 8 commits at 1 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

import std/net

proc main() =
  for i in 1 .. 4:
    let ctx = newContext()
main()
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
/bin/sh: 1: nim: not found

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:29
  • Finished 2023-07-24T18:13:29
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
stable :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:29
  • Finished 2023-07-24T18:13:29
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:29
  • Finished 2023-07-24T18:13:29
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:30
  • Finished 2023-07-24T18:13:30
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:30
  • Finished 2023-07-24T18:13:30
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:30
  • Finished 2023-07-24T18:13:30
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:12:54Z
  • Started 2023-07-24T18:13:30
  • Finished 2023-07-24T18:13:30
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits:
(Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 13 minutes bisecting 8 commits at 1 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

import std/net

proc main() =
  for i in 1 .. 4:
    let ctx = newContext()
main()
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
/bin/sh: 1: nim: not found

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:38
  • Finished 2023-07-24T18:16:38
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
stable :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:39
  • Finished 2023-07-24T18:16:39
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:39
  • Finished 2023-07-24T18:16:39
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:39
  • Finished 2023-07-24T18:16:39
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:40
  • Finished 2023-07-24T18:16:40
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:40
  • Finished 2023-07-24T18:16:40
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:15:57Z
  • Started 2023-07-24T18:16:41
  • Finished 2023-07-24T18:16:41
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( nnkInfix.newTree( newIdentNode("/"), newIdentNode("std"), newIdentNode("net") ) ), nnkProcDef.newTree( newIdentNode("main"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode() ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkForStmt.newTree( newIdentNode("i"), nnkInfix.newTree( newIdentNode(".."), newLit(1), newLit(4) ), nnkStmtList.newTree( nnkLetSection.newTree( nnkIdentDefs.newTree( newIdentNode("ctx"), newEmptyNode(), nnkCall.newTree( newIdentNode("newContext") ) ) ) ) ) ) ), nnkCall.newTree( newIdentNode("main") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits:
(Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 15 minutes bisecting 8 commits at 1 commits per second.
juancarlospaco commented 1 year ago

!nim c --gc:orc

doAssert NimMinor == 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc  -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off  --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp
/bin/sh: 1: nim: not found

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:53
  • Finished 2023-07-24T18:20:53
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
stable :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:54
  • Finished 2023-07-24T18:20:54
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:54
  • Finished 2023-07-24T18:20:54
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:54
  • Finished 2023-07-24T18:20:55
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:55
  • Finished 2023-07-24T18:20:55
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:55
  • Finished 2023-07-24T18:20:55
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
0.20.2 :-1: FAIL

Output

``` Error: Command failed: nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /bin/sh: 1: nim: not found ```

Stats

  • Created 2023-07-24T18:20:19Z
  • Started 2023-07-24T18:20:56
  • Finished 2023-07-24T18:20:56
  • Duration now
  • Commands nim c --gc:orc -d:nimAllocPagesViaMalloc -d:useMalloc -d:nimArcDebug -d:nimArcIds -d:nimDebugDlOpen -d:stacktraceMsgs -d:nimCompilerStacktraceHints -d:ssl -d:nimDisableCertificateValidation --debugger:native --forceBuild:on --debuginfo:on --colors:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim && valgrind /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp

IR

Filesize 0 bytes ```cpp ```

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("=="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits:
(Can not find the commit because Nim can not be re-built commit-by-commit to bisect).
:robot: Bug found in 15 minutes bisecting 8 commits at 1 commits per second.