Closed Gruruya closed 1 year ago
!nim c
import locks
var a = create Lock
@ringabout (member)devel :+1: OK
Output
2023-07-29T05:19:07Z
2023-07-29T05:19:43
2023-07-29T05:19:43
1 minute
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
Error: Command failed: 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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
/home/runner/work/Nim/Nim/temp.nim(2, 16) template/generic instantiation of `create` from here
/home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/memalloc.nim(148, 18) Error: 'sizeof' requires '.importc' types to be '.completeStruct'
2023-07-29T05:19:07Z
2023-07-29T05:19:44
2023-07-29T05:19:44
now
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
74.48 Kb
```cpp
#define NIM_INTBITS 64
#include "nimbase.h"
#include 2023-07-29T05:19:07Z
2023-07-29T05:19:47
2023-07-29T05:19:48
1 minute
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
2023-07-29T05:19:07Z
2023-07-29T05:19:50
2023-07-29T05:19:51
1 minute
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
2023-07-29T05:19:07Z
2023-07-29T05:20:06
2023-07-29T05:20:06
now
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
2023-07-29T05:19:07Z
2023-07-29T05:20:20
2023-07-29T05:20:20
now
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
2023-07-29T05:19:07Z
2023-07-29T05:20:32
2023-07-29T05:20:32
now
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/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
2021-10-30 10:14:23 +0200
on commit #26ed32e67 with message:
```
fixes #19000 (#19032)
* fixes #19000
* progress
(cherry picked from commit 2bda4a30a6b12dd0840dc347e454e54fe26721e7)
```
The bug is in the files:
```
lib/system/memalloc.nim
```
The bug can be in the commits:
(Diagnostics sometimes off-by-one).
51 minutes
bisecting 461
commits at 9
commits per second. !nim c --gc:arc
import locks
var a = create Lock
https://github.com/nim-lang/Nim/pull/20518 needs to be backported
Description
Regression found on easy_sqlite, exclusively errors on 1.6.14 and 1.6.15, not 1.6.12 or devel.
Minimal repro:
sizeof(Lock)
does compile however.Nim Version
1.6.14-1.6.15
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response