8000 Memory leak when running server for a long time · Issue #64 · tsoding/koil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Memory leak when running server for a long time #64
Open
@FedotCompot

Description

@FedotCompot

After running the server for prolonged time (about 2-3 hours) this error appears:

ERROR: Could not send message to player 1: Broken pipe
==25==WARNING: invalid path to external symbolizer!
==25==WARNING: Failed to use and restart external symbolizer!

=================================================================
==25==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 65560 byte(s) in 1 object(s) allocated from:
    #0 0x55d58f3e63a3  (/app/build/server+0xcc3a3) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #1 0x55d58f440514  (/app/build/server+0x126514) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #2 0x55d58f43eb4a  (/app/build/server+0x124b4a) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #3 0x55d58f43b9a4  (/app/build/server+0x1219a4) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #4 0x55d58f43b5f5  (/app/build/server+0x1215f5) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #5 0x55d58f43acd6  (/app/build/server+0x120cd6) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #6 0x55d58f432985  (/app/build/server+0x118985) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)
    #7 0x7fdd4772e1c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
    #8 0x7fdd4772e28a  (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 42c84c92e6f98126b3e2230ebfdead22c235b667)
    #9 0x55d58f34b554  (/app/build/server+0x31554) (BuildId: 05791bca66344809b7d7573cbbbf26c513a96d62)

SUMMARY: AddressSanitizer: 65560 byte(s) leaked in 1 allocation(s).
./build/server [] exited with 1

Also the serve.js should exit if the websocket or http-server stops so it can be detected and restarted automatically

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0