• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / goro / 24647072255
13%

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 03:31AM UTC
Jobs 1
Files 371
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Apr 2026 03:30AM UTC coverage: 1.954% (+0.001%) from 1.953%
24647072255

push

github

MagicalTux
closure: IncRef bound \$this, release via HandleDecRef

closure_005 leaks the bound object's destruction because goro's closure
storage didn't count as a reference. In PHP:

    \$a = new A(3);
    \$incer = \$a->getIncer(2);    // captures \$this=\$a
    \$printer = \$a->getPrinter();  // captures \$this=\$a
    unset(\$a);                    // \$a still alive via the closures
    \$incer(); \$printer();         // prints via live \$this
    unset(\$incer); \$printer();    // still alive
    unset(\$printer);              // last ref — __destruct fires HERE

goro destroyed \$a immediately on `unset(\$a)` because ZClosure and
wrappedClosure stored the raw ZObject pointer without calling IncRef.

Fix: at Spawn time, IncRef the captured \$this (both ZClosure and
wrappedClosure paths). Register Closure.H.HandleDecRef, which the
FuncContext cleanup loop calls when a Closure leaves scope, to do the
matching DecRefImplicit.

generatorClosure: handle via its inner ZClosure pointer, same as the
existing HandleInvoke dispatcher.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1 of 24 new or added lines in 1 file covered. (4.17%)

2 existing lines in 1 file now uncovered.

2189 of 112029 relevant lines covered (1.95%)

70.31 hits per line

Uncovered Changes

Lines Coverage ∆ File
23
0.56
0.05% core/compiler/closure.go

Coverage Regressions

Lines Coverage ∆ File
2
0.56
0.05% core/compiler/closure.go
Jobs
ID Job ID Ran Files Coverage
1 24647072255.1 20 Apr 2026 03:31AM UTC 371
1.95
GitHub Action Run
Source Files on build 24647072255
  • Tree
  • List 371
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24647072255
  • bd9380d6 on github
  • Prev Build on master (#24647007928)
  • Next Build on master (#24647133032)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc