Skip to content

Segfault in InternalCallOrConstruct when using pmjs event-loop  #112

@wesgarland

Description

@wesgarland

PythonMonkey Version: 68dca85
Repro: ./pmjs tests/js/timers-segfault.simple.failing

Note that I am using the node-style event-loop events implemented in Python, not the standards-compliant ones implemented in C++

This problem is probably not related to the events code, but rather, the events code is setting up a bug in PythonMonkey.

(gdb) run ../../pmjs timers-segfault.simple.failing 
Starting program: /home/wes/.cache/pypoetry/virtualenvs/pythonmonkey-NiDIb4WW-py3.10/bin/python ../../pmjs timers-segfault.simple.failing
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3dff640 (LWP 1070684)]
[Thread 0x7ffff3dff640 (LWP 1070684) exited]
[New Thread 0x7ffff35fe640 (LWP 1070685)]
[New Thread 0x7ffff33ff640 (LWP 1070686)]
[New Thread 0x7ffff3200640 (LWP 1070687)]
[New Thread 0x7ffff3001640 (LWP 1070688)]
[New Thread 0x7ffff2e02640 (LWP 1070689)]
[New Thread 0x7ffff2c03640 (LWP 1070690)]
[New Thread 0x7ffff2a04640 (LWP 1070691)]
[New Thread 0x7ffff2805640 (LWP 1070692)]

Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007ffff4355d43 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) () from /home/wes/git/PythonMonkey/python/pythonmonkey/libmozjs-102.so
(gdb) bt
#0  0x00007ffff4355d43 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) ()
   from /home/wes/git/PythonMonkey/python/pythonmonkey/libmozjs-102.so
#1  0x00007ffff4356817 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) ()
   from /home/wes/git/PythonMonkey/python/pythonmonkey/libmozjs-102.so
#2  0x00007ffff43edeb7 in JS_CallFunctionValue(JSContext*, JS::Handle<JSObject*>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) ()
   from /home/wes/git/PythonMonkey/python/pythonmonkey/libmozjs-102.so
#3  0x00007ffff6704df8 in callJSFunc (jsCxThisFuncTuple=<optimized out>, args=<optimized out>) at /usr/local/include/mozjs-102/js/RootingAPI.h:1216
#4  0x00005555556b0cc8 in cfunction_call (func=<built-in method JSFunctionCallable of tuple object at remote 0x7ffff2440f80>, args=<optimized out>, kwargs=<optimized out>)
    at ../Objects/methodobject.c:552
#5  0x00005555556a772b in _PyObject_MakeTpCall (tstate=0x555555b5c2e0, callable=<built-in method JSFunctionCallable of tuple object at remote 0x7ffff2440f80>, args=<optimized out>, 
    nargs=<optimized out>, keywords=0x0) at ../Objects/call.c:215
#6  0x000055555583e682 in context_run (self=0x7ffff2440c40, args=0x7ffff2445348, nargs=1, kwnames=0x0) at ../Python/context.c:665
#7  0x00005555556a462b in cfunction_vectorcall_FASTCALL_KEYWORDS (func=<built-in method run of _contextvars.Context object at remote 0x7ffff2440c40>, args=0x7ffff2445348, 
    nargsf=<optimized out>, kwnames=0x0) at ../Objects/methodobject.c:446
#8  0x000055555569bd87 in do_call_core (kwdict=0x0, callargs=(<built-in method JSFunctionCallable of tuple object at remote 0x7ffff2440f80>,), 
    func=<built-in method run of _contextvars.Context object at remote 0x7ffff2440c40>, trace_info=0x7fffffffdbc0, tstate=<optimized out>) at ../Python/ceval.c:5943
#9  _PyEval_EvalFrameDefault (tstate=<optimized out>, f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:4277
#10 0x00005555556b14ec in _PyEval_EvalFrame (throwflag=0, 
    f=Frame 0x7ffff6b7b490, for file /usr/lib/python3.10/asyncio/events.py, line 80, in _run (self=<TimerHandle at remote 0x7ffff24363b0>), tstate=0x555555b5c2e0)
    at ../Include/internal/pycore_ceval.h:46
#11 _PyEval_Vector (kwnames=<optimized out>, argcount=<optimized out>, args=<optimized out>, locals=0x0, con=0x7ffff6783f50, tstate=0x555555b5c2e0) at ../Python/ceval.c:5065
#12 _PyFunction_Vectorcall (func=<function at remote 0x7ffff6783f40>, stack=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at ../Objects/call.c:342
#13 0x0000555555699c14 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x555555f49210, callable=<function at remote 0x7ffff6783f40>, tstate=0x555555b5c2e0)
    at ../Include/cpython/abstract.h:114
#14 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x555555f49210, callable=<function at remote 0x7ffff6783f40>) at ../Include/cpython/abstract.h:123
#15 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, trace_info=0x7fffffffdd90, tstate=<optimized out>) at ../Python/ceval.c:5891
#16 _PyEval_EvalFrameDefault (tstate=<optimized out>, f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:4198
#17 0x00005555556b14ec in _PyEval_EvalFrame (throwflag=0, 
    f=Frame 0x555555f49040, for file /usr/lib/python3.10/asyncio/base_events.py, line 1896, in _run_once (self=<_UnixSelectorEventLoop(_timer_cancelled_count=0, _closed=False, _stopping=False, _ready=<collections.deque at remote 0x7ffff243a500>, _scheduled=[], _default_executor=None, _internal_fds=1, _thread_id=140737352511488, _clock_resolution=<float at remote 0x7ffff25be990>, _exception_handler=None, _debug=False, slow_callback_duration=<float at remote 0x7ffff6dfdb90>, _current_handle=None, _task_factory=None, _coroutine_origin_tracking_enabled=False, _coroutine_origin_tracking_saved_depth=None, _asyncgens=<WeakSet(data=set(), _remove=<function at remote 0x7ffff2429c60>, _pending_removals=[], _iterating=set()) at remote 0x7ffff24453c0>, _asyncgens_shutdown_called=False, _executor_shutdown_called=False, _selector=<EpollSelector(_fd_to_key={4: <SelectorKey at remote 0x7ffff2448950>}, _map=<_SelectorMapping(_selector=<...>) at remote 0x7ffff2445480>, _selector=<select.epoll at remote 0x7ffff25bec10>) at remote 0x7...(truncated), tstate=0x555555b5c2e0) at ../Include/internal/pycore_ceval.h:46
#18 _PyEval_Vector (kwnames=<optimized out>, argcount=<optimized out>, args=<optimized out>, locals=0x0, con=0x7ffff6120560, tstate=0x555555b5c2e0) at ../Python/ceval.c:5065
#19 _PyFunction_Vectorcall (func=<function at remote 0x7ffff6120550>, stack=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at ../Objects/call.c:342
#20 0x0000555555699c14 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff2562d38, callable=<function at remote 0x7ffff6120550>, tstate=0x555555b5c2e0)
    at ../Include/cpython/abstract.h:114
#21 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff2562d38, callable=<function at remote 0x7ffff6120550>) at ../Include/cpython/abstract.h:123
#22 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, trace_info=0x7fffffffdf60, tstate=<optimized out>) at ../Python/ceval.c:5891
#23 _PyEval_EvalFrameDefault (tstate=<optimized out>, f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:4198
#24 0x00005555556b14ec in _PyEval_EvalFrame (throwflag=0, 
    f=Frame 0x7ffff2562bc0, for file /usr/lib/python3.10/asyncio/base_events.py, line 600, in run_forever (self=<_UnixSelectorEventLoop(_timer_cancelled_count=0, _closed=False, _stopping=False, _ready=<collections.deque at remote 0x7ffff243a500>, _scheduled=[], _default_executor=None, _internal_fds=1, _thread_id=140737352511488, _clock_resolution=<float at remote 0x7f--Type <RET> for more, q to quit, c to continue without paging--
fff25be990>, _exception_handler=None, _debug=False, slow_callback_duration=<float at remote 0x7ffff6dfdb90>, _current_handle=None, _task_factory=None, _coroutine_origin_tracking_enabled=False, _coroutine_origin_tracking_saved_depth=None, _asyncgens=<WeakSet(data=set(), _remove=<function at remote 0x7ffff2429c60>, _pending_removals=[], _iterating=set()) at remote 0x7ffff24453c0>, _asyncgens_shutdown_called=False, _executor_shutdown_called=False, _selector=<EpollSelector(_fd_to_key={4: <SelectorKey at remote 0x7ffff2448950>}, _map=<_SelectorMapping(_selector=<...>) at remote 0x7ffff2445480>, _selector=<select.epoll at remote 0x7ffff25bec10>) at remote 0x...(truncated), tstate=0x555555b5c2e0) at ../Include/internal/pycore_ceval.h:46
#25 _PyEval_Vector (kwnames=<optimized out>, argcount=<optimized out>, args=<optimized out>, locals=0x0, con=0x7ffff611e9f0, tstate=0x555555b5c2e0) at ../Python/ceval.c:5065
#26 _PyFunction_Vectorcall (func=<function at remote 0x7ffff611e9e0>, stack=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at ../Objects/call.c:342
#27 0x0000555555699c14 in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x555555f0b430, callable=<function at remote 0x7ffff611e9e0>, tstate=0x555555b5c2e0)
    at ../Include/cpython/abstract.h:114
#28 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x555555f0b430, callable=<function at remote 0x7ffff611e9e0>) at ../Include/cpython/abstract.h:123
#29 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, trace_info=0x7fffffffe130, tstate=<optimized out>) at ../Python/ceval.c:5891
#30 _PyEval_EvalFrameDefault (tstate=<optimized out>, f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:4198
#31 0x00005555556b14ec in _PyEval_EvalFrame (throwflag=0, 
    f=Frame 0x555555f0b240, for file /home/wes/git/PythonMonkey/tests/js/../../pmjs, line 367, in main (enterRepl=True, forceRepl=False, opts=[], output=None, verbose=False, ela={'enqueueWithDelay': <function at remote 0x7ffff24296c0>, 'enqueue': <function at remote 0x7ffff2429870>, 'cancelTimer': <function at remote 0x7ffff2429900>, 'getLoop': <function at remote 0x7ffff2429990>, 'setLoop': <function at remote 0x7ffff2429a20>, 'makeLoop': <function at remote 0x7ffff2429ab0>, 'endLoop': <function at remote 0x7ffff2429b40>}, loop=<_UnixSelectorEventLoop(_timer_cancelled_count=0, _closed=False, _stopping=False, _ready=<collections.deque at remote 0x7ffff243a500>, _scheduled=[], _default_executor=None, _internal_fds=1, _thread_id=140737352511488, _clock_resolution=<float at remote 0x7ffff25be990>, _exception_handler=None, _debug=False, slow_callback_duration=<float at remote 0x7ffff6dfdb90>, _current_handle=None, _task_factory=None, _coroutine_origin_tracking_enabled=False, _coroutine_origin_tracking_saved_depth=None,...(truncated), tstate=0x555555b5c2e0) at ../Include/internal/pycore_ceval.h:46
#32 _PyEval_Vector (kwnames=<optimized out>, argcount=<optimized out>, args=<optimized out>, locals=0x0, con=0x7ffff24295b0, tstate=0x555555b5c2e0) at ../Python/ceval.c:5065
#33 _PyFunction_Vectorcall (func=<function at remote 0x7ffff24295a0>, stack=<optimized out>, nargsf=<optimized out>, kwnames=<optimized out>) at ../Objects/call.c:342
#34 0x0000555555699a1d in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff6d29da8, callable=<function at remote 0x7ffff24295a0>, tstate=0x555555b5c2e0)
    at ../Include/cpython/abstract.h:114
#35 PyObject_Vectorcall (kwnames=0x0, nargsf=<optimized out>, args=0x7ffff6d29da8, callable=<function at remote 0x7ffff24295a0>) at ../Include/cpython/abstract.h:123
#36 call_function (kwnames=0x0, oparg=<optimized out>, pp_stack=<synthetic pointer>, trace_info=0x7fffffffe300, tstate=<optimized out>) at ../Python/ceval.c:5891
#37 _PyEval_EvalFrameDefault (tstate=<optimized out>, f=<optimized out>, throwflag=<optimized out>) at ../Python/ceval.c:4213
#38 0x0000555555696176 in _PyEval_EvalFrame (throwflag=0, f=Frame 0x7ffff6d29c40, for file /home/wes/git/PythonMonkey/tests/js/../../pmjs, line 374, in <module> (), 
    tstate=0x555555b5c2e0) at ../Include/internal/pycore_ceval.h:46
#39 _PyEval_Vector (tstate=0x555555b5c2e0, con=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>)
    at ../Python/ceval.c:5065
#40 0x000055555578bc56 in PyEval_EvalCode (co=<code at remote 0x7ffff6c9f680>, 
    globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remote 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}, locals=<optimized out>) at ../Python/ceval.c:1134
#41 0x00005555557b8b18 in run_eval_code_obj (tstate=0x555555b5c2e0, co=0x7ffff6c9f680, 
    globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remote 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}, 
    locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remo--Type <RET> for more, q to quit, c to continue without paging--
te 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}) at ../Python/pythonrun.c:1291
#42 0x00005555557b196b in run_mod (mod=<optimized out>, filename=<optimized out>, 
    globals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remote 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}, 
    locals={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remote 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}, flags=<optimized out>, arena=<optimized out>) at ../Python/pythonrun.c:1312
#43 0x00005555557b8865 in pyrun_file (fp=fp@entry=0x555555b5e6b0, filename=filename@entry='/home/wes/git/PythonMonkey/tests/js/../../pmjs', start=start@entry=257, 
    globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remote 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}, 
    locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/wes/git/PythonMonkey/tests/js/../../pmjs') at remote 0x7ffff6c01090>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7ffff6d905e0>, '__file__': '/home/wes/git/PythonMonkey/tests/js/../../pmjs', '__cached__': None, 'sys': <module at remote 0x7ffff6d7e250>, 'os': <module at remote 0x7ffff6c247c0>, 'readline': <module at remote 0x7ffff6cc9a30>, 'signal': <module at remote 0x7ffff6cca890>, 'getopt': <module at remote 0x7ffff6ccab10>, 'asyncio': <module at remote 0x7ffff6add990>, 'pm': <module at remote 0x7ffff610b560>, 'globalThis': {}, 'evalOptions': {'strict': False}, 'requirePath': False, 'repl': <function at remote 0x7ffff6c65ea0>, 'usage': <function at remote 0x7ffff24293f0>, 'initGlobalThis': <function at remote 0x7ffff2429510>, 'main': <function at remote 0x7ffff24295a0>}, closeit=closeit@entry=1, flags=0x7fffffffe5a8) at ../Python/pythonrun.c:1208
#44 0x00005555557b7d48 in _PyRun_SimpleFileObject (fp=0x555555b5e6b0, filename='/home/wes/git/PythonMonkey/tests/js/../../pmjs', closeit=1, flags=0x7fffffffe5a8)
    at ../Python/pythonrun.c:456
#45 0x00005555557b7a43 in _PyRun_AnyFileObject (fp=0x555555b5e6b0, filename='/home/wes/git/PythonMonkey/tests/js/../../pmjs', closeit=1, flags=0x7fffffffe5a8)
    at ../Python/pythonrun.c:90
#46 0x00005555557a8c3e in pymain_run_file_obj (skip_source_first_line=0, filename='/home/wes/git/PythonMonkey/tests/js/../../pmjs', 
    program_name='/home/wes/.cache/pypoetry/virtualenvs/pythonmonkey-NiDIb4WW-py3.10/bin/python') at ../Modules/main.c:353
#47 pymain_run_file (config=0x555555b406d0) at ../Modules/main.c:372
#48 pymain_run_python (exitcode=0x7fffffffe5a4) at ../Modules/main.c:587
#49 Py_RunMain () at ../Modules/main.c:666
#50 0x000055555577ebcd in Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at ../Modules/main.c:720
#51 0x00007ffff7c29d90 in __libc_start_call_main (main=main@entry=0x55555577eb90 <main>, argc=argc@entry=3, argv=argv@entry=0x7fffffffe7b8) at ../sysdeps/nptl/libc_start_call_main.h:58
#52 0x00007ffff7c29e40 in __libc_start_main_impl (main=0x55555577eb90 <main>, argc=3, argv=0x7fffffffe7b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
    stack_end=0x7fffffffe7a8) at ../csu/libc-start.c:392
--Type <RET> for more, q to quit, c to continue without paging--
#53 0x000055555577eac5 in _start ()

(gdb) info threads
  Id   Target Id                                       Frame 
* 1    Thread 0x7ffff7e73000 (LWP 1070681) "python"    0x00007ffff4355d43 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) ()
   from /home/wes/git/PythonMonkey/python/pythonmonkey/libmozjs-102.so
  3    Thread 0x7ffff35fe640 (LWP 1070685) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32534)
    at ./nptl/futex-internal.c:57
  4    Thread 0x7ffff33ff640 (LWP 1070686) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32534)
    at ./nptl/futex-internal.c:57
  5    Thread 0x7ffff3200640 (LWP 1070687) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32530)
    at ./nptl/futex-internal.c:57
  6    Thread 0x7ffff3001640 (LWP 1070688) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32530)
    at ./nptl/futex-internal.c:57
  7    Thread 0x7ffff2e02640 (LWP 1070689) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32530)
    at ./nptl/futex-internal.c:57
  8    Thread 0x7ffff2c03640 (LWP 1070690) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32530)
    at ./nptl/futex-internal.c:57
  9    Thread 0x7ffff2a04640 (LWP 1070691) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32530)
    at ./nptl/futex-internal.c:57
  10   Thread 0x7ffff2805640 (LWP 1070692) "JS Helper" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x555555d32534)
    at ./nptl/futex-internal.c:57
(gdb) 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions