Comments (6)
stack looks like
Thread 1 "python" received signal SIGSEGV, Segmentation fault.
0x00007ffff768597e in FuncType::getPyObject (cx=0x55555561b3f0, fval=...)
at /home/philippe/Sources/PythonMonkey/src/FuncType.cc:19
19 proxy->jsFunc->set(&fval.toObject());
(gdb) bt
#0 0x00007ffff768597e in FuncType::getPyObject (cx=0x55555561b3f0, fval=...)
at /home/philippe/Sources/PythonMonkey/src/FuncType.cc:19
#1 0x00007ffff76c605e in pyTypeFactory (cx=0x55555561b3f0, rval=...)
at /home/philippe/Sources/PythonMonkey/src/pyTypeFactory.cc:108
#2 0x00007ffff76b8ef4 in enqueueWithDelay (cx=0x55555561b3f0, argc=4, vp=0x7fffffffb998)
at /home/philippe/Sources/PythonMonkey/src/internalBinding/timers.cc:34
#3 0x000026506dd3de1b in ?? ()
#4 0x00001327f7a5d780 in ?? ()
#5 0x00007fffffffb970 in ?? ()
#6 0x0000000000000000 in ?? ()
from pythonmonkey.
@wiwichips
This is due to quit not being async, (all other functions in the example are async) and is thus not supported without an async wrapper such as
async def async_quit():
quit()
my_j.on('accepted', lambda: async_quit())
from pythonmonkey.
Even if its unsupported, it should result in an exception, not a segmentation fault
from pythonmonkey.
also works fine if not using lambda:
def non_async_quit():
quit()
my_j.on('accepted', non_async_quit())
from pythonmonkey.
just made an incorrect pr closes comment
from pythonmonkey.
note same result if call exit or sys.exit
from pythonmonkey.
Related Issues (20)
- Future exception was never retrieved HOT 1
- JS Assert - How to See in Python HOT 4
- Local test failure: xhr-http-keep-alive.bash HOT 4
- Intermittent tests crashes on main HOT 1
- Add support for static class methods HOT 2
- Better Docs + Docs Visibility HOT 1
- Can't install pythonmonkey in docker HOT 9
- Segmentation Fault When running DCP Protocol Code HOT 2
- Doing copy.deepcopy from spidermonkey response and then sending it back to spidermonkey throws fatal segmentation fault HOT 5
- Segmentation Fault When Printing dcp['dcp-env'].global HOT 5
- Building Linux arm64 wheels
- Can't Convert Python Bytes to a PythonMonkey Type HOT 7
- Logging stdin from JS causes segfault
- Property disappearing when translated to JS HOT 5
- console.log on iterator causes SegFault HOT 1
- Sometimes `x.constructor.name` is empty string when it's a string in NodeJS HOT 1
- Dict does not provide Object.prototype.toString as its default toString method
- object prototype chaining does not work correctly on proxied python objects
- Space issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pythonmonkey.