-
Notifications
You must be signed in to change notification settings - Fork 64
[tcp] General Protection Fault
occurs when running TCPEchoServ6.js on arduino101 over ble for long time
#1737
Comments
Is this still reproducible? Right after I do After I do: I could still ping the board, but then after I do ip -6 addr add 2001:db8::2 dev bt0, i can't no longer ping the board. and when I run test-tcp6-client.py, it just sits there, not connecting. @qiaojingx are you able to connect? |
@jimmy-huang Server log(a101):
Client log(Ubuntu 16.04):
|
I still can't get it to connect somehow: |
@jimmy-huang |
@jimmy-huang
|
@cuiyanx ok, so the client is not available in the repo, is this part of the another test-suite? Because the tests/tools/test-tcp6-client.py looks totally different. |
Ok, I am able to reproduce it now with your script, and I also happen to crash on 356th iteration, so I don't think that's a coincidence: Times: 356 |
So it looks like we have a memory leak somewhere: 0:2001:db8:: |
@jimmy-huang Yes, We have some test cases for stability test. They are TCP6 server, TCP6 client, UDP6 client and WebUSB for ZJS. |
Only one event callback was supposed to be created, but the line was moved to zjs_make_emitter so that it was created for each new emitter object. For tests that close and open sockets repeatedly, for example, this eventually caused the system to run out of memory. Fixes intel#1737 Signed-off-by: Geoff Gustafson <[email protected]>
I re-test this issue with PR #1816, this issue is fixed and not reproduced. Client log:
|
Only one event callback was supposed to be created, but the line was moved to zjs_make_emitter so that it was created for each new emitter object. For tests that close and open sockets repeatedly, for example, this eventually caused the system to run out of memory. Fixes #1735, #1736, #1737 Signed-off-by: Geoff Gustafson <[email protected]>
Description
General Protection Fault
occurs after running TCPEchoServ6.js for 1 hour on arduino101 over ble.Test Code
TCPEchoServ6.js;
Steps to Reproduction
python test-tcp6-client.py
Actual Result
General Protection Fault
occurs after about 1hour.Expected Result
Server should always works fine.
Test Builds
Additional Information
The matched python client is here: https://github.com/01org/web-test-suite/tree/master/zephyr.js/tools/tests
The text was updated successfully, but these errors were encountered: