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

kovidgoyal / dukpy / 61
85%
master: 85%

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

pending completion
61

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

4 of 4 new or added lines in 1 file covered. (100.0%)

444 of 528 relevant lines covered (84.09%)

55.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 61.1 25 Aug 2018 01:39AM UTC 0
84.18
Travis Job 61.1
2 61.2 25 Aug 2018 01:39AM UTC 0
84.18
Travis Job 61.2
3 61.3 25 Aug 2018 01:39AM UTC 0
84.07
Travis Job 61.3
Source Files on build 61
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #61
  • Pull Request #2
  • PR Base - master (#58)
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