Skip to content
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

Selftest fails with ClusterSocket memory leak #396

Closed
jpswinski opened this issue May 6, 2024 · 1 comment
Closed

Selftest fails with ClusterSocket memory leak #396

jpswinski opened this issue May 6, 2024 · 1 comment

Comments

@jpswinski
Copy link
Member

*********************************
Total number of asserts: 575
Total number of errors: 0
*********************************

Exiting... cleanup complete (0 errors)

=================================================================
==1619==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 65568 byte(s) in 1 object(s) allocated from:
    #0 0x63dc01 in operator new(unsigned long) (/__w/sliderule/sliderule/stage/sliderule/bin/sliderule-v4.4.0+0x63dc01) (BuildId: 6d396c4510be64ad60f5285b48df3ac138a9aac3)
    #1 0x65d80c in ClusterSocket::onConnect(int) /__w/sliderule/sliderule/packages/core/ClusterSocket.cpp:591:41
    #2 0x65995d in ClusterSocket::activeHandler(int, int, void*) /__w/sliderule/sliderule/packages/core/ClusterSocket.cpp:294:44
    #3 0x92b006 in SockLib::startclient(char const*, int, int, int (*)(int, short*, void*), int (*)(int, int, void*), bool const*, void*, bool*) /__w/sliderule/sliderule/platforms/linux/SockLib.cpp:681:20
    #4 0x658afd in ClusterSocket::connectionThread(void*) /__w/sliderule/sliderule/packages/core/ClusterSocket.cpp:237:31
    #5 0x7fbb05ca57f1 in start_thread (/lib64/libc.so.6+0x9f7f1) (BuildId: 30448f50[833](https://github.com/SlideRuleEarth/sliderule/actions/runs/8968903999/job/24629259504#step:5:834)6fb6b11d92bcff7f65c300f3e68e1)

SUMMARY: AddressSanitizer: 65568 byte(s) leaked in 1 allocation(s).
make: *** [Makefile:417: selftest] Error 1
Error: Process completed with exit code 2.
@jpswinski
Copy link
Member Author

Fixed by #402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant