Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ASAN下报内存泄漏 #270

Open
gajin2 opened this issue Jun 26, 2024 · 1 comment
Open

ASAN下报内存泄漏 #270

gajin2 opened this issue Jun 26, 2024 · 1 comment
Labels

Comments

@gajin2
Copy link

gajin2 commented Jun 26, 2024

OS:RockyLinux 9.4
Lua: RHEL9自带的luajit包:luajit-devel

ASAN输出:

Indirect leak of 23 byte(s) in 1 object(s) allocated from:
    #0 0x7fb8ae0b4a07 in __interceptor_malloc (/usr/lib64/libasan.so.6+0xb4a07)
    #1 0xc5fe83 in pbN_newname common/utils/pb.h:1022
    #2 0xc6017b in pb_newname common/utils/pb.h:1079
    #3 0xc62c01 in pbL_loadFile common/utils/pb.h:1671
    #4 0xc6302a in pb_load common/utils/pb.h:1695
    #5 0xc6775e in Lpb_loadfile common/utils/pb.c:1233
    #6 0x7fb8adf78a9a  (/lib64/libluajit-5.1.so.2+0xaa9a)

自己修改静态编译到程序里,只修改了luaopen_pb :

    //luaL_newlib(L, libs);
    luaL_register(L, "pb", libs);
@starwing starwing added the bug label Jun 26, 2024
@starwing
Copy link
Owner

Thanks for reporting. I will look into this.

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

No branches or pull requests

2 participants