-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segmentation fault after 60 seconds when trying to load socket.io #232
Comments
@Xmader said: socketio makes a check to see if withcredentials is defined as a property of xhr, and if it isn't it tries anyways! I think its still a seg fault, I don't remember - but keep that in mine ( whoever works on this ) |
Slack channel, Thursday February 1st: Tom Tang (@Xmader) socket.io.js Tom Tang // Retrieve the AsyncHandle by min repro: code at https://drive.google.com/drive/folders/1YKotvr0KTsXgXDVbMWgy-D2O6HcxSpZO |
@Xmader trying the code above, I get TypeError: engine.listen is not a function Node.js v18.19.0 Indeed:
Please provide a full reproducer sample |
I could repro the crash with Will's code sometimes and other times not. Stack trace is: #0 0x0000000000076e53 in ?? () argv=argv@entry=0x7fff4f9e3da8) at ../sysdeps/nptl/libc_start_call_main.h:58 #20 0x00007efe8e428209 in __libc_start_main_impl (main=0x55a3af0b3060 , argc=3, argv=0x7fff4f9e3da8, init=, fini=, rtld_fini=, stack_end=0x7fff4f9e3d98) at ../csu/libc-start.c:360 #21 0x000055a3af0b3095 in _start () -> so nothing obviously ours and the top item is missing |
Now got: Exception in callback JSFunctionProxy.eventLoopJobWrapper() Do we have a memory leak? The above exception was the direct cause of the following exception: Traceback (most recent call last): |
looks fixed |
Issue type
Bug
How did you install PythonMonkey?
None
OS platform and distribution
Ubuntu 22.04
Python version (
python --version
)Python 3.10.12
PythonMonkey version (
pip show pythonmonkey
)main branch
Bug Description
Title
seg fault after 60 seconds on when attempting to load the browser socketio bundle into pythonmonkey!
Repro
Client Side (the place where the seg fault shows up)
client side socketio pmjs pythonmonkey code
pmjs
PythonMonkey JavaScript code for the client:client-socketio-pmjs.js
socket.io.min.js
downloaded from --> https://cdn.socket.io/4.7.4/socket.io.min.jshow to run the client
The NodeJS SocketIO server I happen to have talking to this client
code for the nodejs socketio server
node
NodeJS JavaScript code for the serverserver-socketio-nodejs.js
package.json
instructions to run nodejs socketio server:
Refer to this slack message on the private Distributive slack which only Distributive developers have access to: https://dstrbtv.slack.com/archives/C03RNFRL4NQ/p1706703736711539
Standalone code to reproduce the issue
Relevant log output or backtrace
Additional info if applicable
No response
What branch of PythonMonkey were you developing on? (If applicable)
main
The text was updated successfully, but these errors were encountered: