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

kovidgoyal / dukpy / 61 / 3
85%
master: 85%

Build:
Build:
LAST BUILD BRANCH: sort
DEFAULT BRANCH: master
Ran 25 Aug 2018 01:39AM UTC
Files 6
Run time 0s
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

25 Aug 2018 01:38AM UTC coverage: 84.074% (+0.4%) from 83.673%
61.3

Pull #2

travis-ci

web-flow
Only release the GIL *after* calling Py_XXX

The previous version of the code released the GIL before calling
get_repr, but that's not OK because get_repr calls into PyObject_Repr,
which uses `Py_EnterRecursiveCall(" while getting the repr of an
object")`, which requires the to be held.

Moving the 'get_repr' before releasing the GIL fixes this.

Also, add "return duk_error", so it is clear that duk_error will never
return.

-------------------

This fixes the following segfault:

0  0x00007fffeee0ee00 in get_repr (value=value@entry=0x7fffef7707b8, buf=buf@entry=0x7fffeee5d0c0 <buf1> "", bufsz=bufsz@entry=200, value=<optimized out>, buf=<optimized out>, bufsz=<optimized out>) at src/conversions.c:5
1  0x00007fffeee3756f in python_function_caller (ctx=0x555555e5a4a0) at src/conversions.c:64
2  0x00007fffeee146ca in duk.handle_call_raw (thr=0x555555e5a4a0, idx_func=7, call_flags=8) at duk_js_call.c:2231
Pull Request #2: Only release the GIL *after* calling Py_XXX

454 of 540 relevant lines covered (84.07%)

20.21 hits per line

Source Files on job 61.3
  • Tree
  • List 0
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 60
  • Travis Job 61.3
  • a5b3416c on github
  • Prev Job for on fix-gil-segfault (#58.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc