Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

jit/codewriter/test/test_call.py::test_call_release_gil

def test_call_release_gil():
        from rpython.jit.backend.llgraph.runner import LLGraphCPU
    
        T = rffi.CArrayPtr(rffi.TIME_T)
        external = rffi.llexternal("time", [T], rffi.TIME_T, releasegil=True,
                                   save_err=rffi.RFFI_SAVE_ERRNO)
    
        # no jit.dont_look_inside in this test
        def f():
            return external(lltype.nullptr(T.TO))
    
>       rtyper = support.annotate(f, [])

jit\codewriter\test\test_call.py:215: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit\codewriter\support.py:48: in annotate
    a.build_types(func, argtypes, main_entry_point=True)
annotator\annrpython.py:92: in build_types
    return self.build_graph_types(flowgraph, inputs_s, complete_now=complete_now)
annotator\annrpython.py:140: in build_graph_types
    self.complete()
annotator\annrpython.py:229: in complete
    self.complete_pending_blocks()
annotator\annrpython.py:224: in complete_pending_blocks
    self.processblock(graph, block)
annotator\annrpython.py:398: in processblock
    self.flowin(graph, block)
annotator\annrpython.py:501: in flowin
    self.consider_op(op)
annotator\annrpython.py:653: in consider_op
    resultcell = op.consider(self)
flowspace\operation.py:104: in consider
    return spec(annotator, *self.args)
annotator\unaryop.py:118: in simple_call_SomeObject
    return s_func.call(argspec)
annotator\unaryop.py:987: in call
    return bookkeeper.pbc_call(self, args)
annotator\bookkeeper.py:535: in pbc_call
    results.append(desc.pycall(whence, args, s_previous_result, op))
annotator\description.py:285: in pycall
    graph = self.specialize(inputcells, op)
annotator\description.py:279: in specialize
    return self.specializer(self, inputcells, op)
annotator\specialize.py:370: in specialize_call_location
    return maybe_star_args(funcdesc, (op,), args_s)
annotator\specialize.py:327: in maybe_star_args
    return funcdesc.cachedgraph(key, builder=builder)
annotator\description.py:247: in cachedgraph
    graph = self.buildgraph(alt_name, builder)
annotator\description.py:210: in buildgraph
    graph = translator.buildflowgraph(self.pyobj)
translator\translator.py:55: in buildflowgraph
    graph = build_flow(func)
flowspace\objspace.py:49: in build_flow
    ctx.build_flow()
flowspace\flowcontext.py:405: in build_flow
    self.record_block(block)
flowspace\flowcontext.py:413: in record_block
    next_offset = self.handle_bytecode(next_offset)
flowspace\flowcontext.py:492: in handle_bytecode
    offset = getattr(self, methodname)(oparg)
flowspace\flowcontext.py:670: in IMPORT_NAME
    w_obj = self.import_name(modulename, glob, None, fromlist, level)
flowspace\flowcontext.py:660: in import_name
    mod = __import__(name, glob, loc, frm, level)
rlib\_rsocket_rffi.py:1487: in <module>
    _WSAGetLastError()
rtyper\lltypesystem\lltype.py:1384: in __call__
    return callb(*args)
rtyper\lltypesystem\ll2ctypes.py:1339: in __call__
    self.natural_arity)
rtyper\lltypesystem\ll2ctypes.py:1236: in get_ctypes_callable
    symbolic=True)
translator\tool\cbuild.py:345: in compile_shared_lib
    standalone=False))
translator\platform\__init__.py:58: in compile
    return self._finish_linking(ofiles, eci, outputfilename, standalone)
translator\platform\__init__.py:235: in _finish_linking
    return self._link(cc_link, ofiles, largs, standalone, exe_name)
translator\platform\windows.py:299: in _link
    self._execute_c_compiler(self.link, args, exe_name)
translator\platform\__init__.py:143: in _execute_c_compiler
    self._handle_error(returncode, stdout, stderr, outname)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <MsvcPlatform cc=cl.exe>, returncode = 3221225477, stdout = ''
stderr = ''
outname = local('d:\\systemtemp\\pytest\\usession-main-1209\\shared_cache\\externmod_1.dll')

    def _handle_error(self, returncode, stdout, stderr, outname):
        if returncode != 0:
            # Microsoft compilers write compilation errors to stdout
            stderr = stdout + stderr
            errorfile = outname.new(ext='errors')
            errorfile.write(stderr, mode='wb')
            if self.log_errors:
                stderrlines = stderr.splitlines()
                for line in stderrlines:
                    log.Error(line)
                # ^^^ don't use ERROR, because it might actually be fine.
                # Also, ERROR confuses lib-python/conftest.py.
>           raise CompilationError(stdout, stderr)
E           CompilationError: CompilationError(out="""
E           	""")

translator\platform\windows.py:315: CompilationError
---------- Captured stderr call ----------
[platform:msg] Updated environment with vsver 160, using x64 True
builder: rpython-win-x86-64 build #400
test: jit/codewriter/test/test_call/py/test_call_release_gil