Closed MacroUniverse closed 2 years ago
================================================================= ==2310==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 448 byte(s) in 28 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
Direct leak of 32 byte(s) in 2 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0xfffffffffffffe2f (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x1640aef2 (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x221173cc (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x62f90c73 (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x802a55b7ff (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x185621e97ffff (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x7bef57c443f8caff (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0xffffffffffffff66 (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0xffffffffffffff70 (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x1953bb8 (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x371580a8ff (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x9e267497ffff (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0x572cda11ffffff (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0xf47abc4 (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0xffffffffffffff7e (<unknown module>)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#1 0x7f8aceba9678 in flint_malloc (/usr/lib/libflint-2.5.2.so+0x39678)
#2 0xf4e6437bffffff (<unknown module>)
Indirect leak of 2984 byte(s) in 45 object(s) allocated from:
#1 0x7f8ace6696e3 in __gmp_default_reallocate (/usr/lib/x86_64-linux-gnu/libgmp.so.10+0x96e3)
SUMMARY: AddressSanitizer: 3704 byte(s) leaked in 90 allocation(s).
Try calling flint_cleanup_master()
before the program exits.
Try calling
flint_cleanup_master()
before the program exits.
Thanks, but it seems that the linker couldn't find this function. I used flint_cleanup()
instead and it solved my problem.
Hi, after I turned on address sanitizer for g++, the runtime reported a memory leak after program exit if I call the Coulomb function:
compilation:
g++ test.cpp -fsanitize=address -static-libasan -g -larb
Is this a bug or am I using it wrong?