Project

General

Profile

Bug #11425

adresssanitizer errors

Added by David Schaefer over 2 years ago. Updated over 2 years ago.

Status:
Closed: invalid
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
01/04/2017
Due date:
% Done:

0%

Affected Version:
git master branch
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

This is an excerpt from the complete log (attached) that lists darktable in its stacktrace. I wonder how severe the issue is and if it really resides in dt or whether it comes from external libraries.
8587ERROR: LeakSanitizer: detected memory leaks

Direct leak of 24093 byte(s) in 22 object(s) allocated from:
#0 0x7f0f06613eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc6eb0)
#1 0x7f0f05eb5ee7 in dt_exif_xmp_decode /home/david/workspace/darktable.git/src/common/exif.cc:1572
#2 0x7f0f05ec62a8 in dt_exif_xmp_read /home/david/workspace/darktable.git/src/common/exif.cc:2089
#3 0x7f0f05ee2e13 in dt_history_load_and_apply /home/david/workspace/darktable.git/src/common/history.c:216
#4 0x7f0f05f6b394 in _reload_button_clicked /home/david/workspace/darktable.git/src/control/crawler.c:258
#5 0x7f0f030181a3 (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x101a3)

Direct leak of 7879 byte(s) in 24 object(s) allocated from:
#0 0x7f0f06614260 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc7260)
#1 0x7f0f04b9bea7 in g_realloc (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x4fea7)
#2 0x7f0f05f3e491 in dt_selection_select_range /home/david/workspace/darktable.git/src/common/selection.c:215
#3 0x7f0ee5c74eb9 (<unknown module>)
#4 0x7f0f05f685ab in dt_control_button_pressed /home/david/workspace/darktable.git/src/control/control.c:521
#5 0x7f0f060838b4 in button_pressed /home/david/workspace/darktable.git/src/gui/gtk.c:657
#6 0x7f0f04487a1b (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0+0x222a1b)

Direct leak of 1676 byte(s) in 57 object(s) allocated from:
#0 0x7f0f06613eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc6eb0)
#1 0x7f0f05eb5c5a in dt_exif_xmp_decode /home/david/workspace/darktable.git/src/common/exif.cc:1606
#2 0x7f0f05ec62a8 in dt_exif_xmp_read /home/david/workspace/darktable.git/src/common/exif.cc:2089
#3 0x7f0f05ee2e13 in dt_history_load_and_apply /home/david/workspace/darktable.git/src/common/history.c:216
#4 0x7f0f05f6b394 in _reload_button_clicked /home/david/workspace/darktable.git/src/control/crawler.c:258
#5 0x7f0f030181a3 (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x101a3)

Direct leak of 632 byte(s) in 79 object(s) allocated from:
#0 0x7f0f06613eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc6eb0)
#1 0x7f0f05eb5c5a in dt_exif_xmp_decode /home/david/workspace/darktable.git/src/common/exif.cc:1606
#2 0x7f0f05ec64a9 in dt_exif_xmp_read /home/david/workspace/darktable.git/src/common/exif.cc:2097
#3 0x7f0f05ee2e13 in dt_history_load_and_apply /home/david/workspace/darktable.git/src/common/history.c:216
#4 0x7f0f05f6b394 in _reload_button_clicked /home/david/workspace/darktable.git/src/control/crawler.c:258
#5 0x7f0f030181a3 (/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x101a3)

Direct leak of 160 byte(s) in 1 object(s) allocated from:
#0 0x7f0f06613eb0 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.3+0xc6eb0)
#1 0x7f0f0602e5f3 in dt_masks_create /home/david/workspace/darktable.git/src/develop/masks/masks.c:822
#2 0x7f0ecfc0baa5 (<unknown module>)
#3 0x7f0f04487a1b (/usr/lib/x86_64-linux-gnu/libgtk-3.so.0+0x222a1b)

asan (65.4 KB) David Schaefer, 01/04/2017 12:57 AM

History

#1 Updated by Roman Lebedev over 2 years ago

  • Status changed from New to Closed: invalid

Those are just leaks. Most leaks are gone by now.
You may wan to not compile with LSAN
We are aware that there are still some leaks left.

#2 Updated by Roman Lebedev over 2 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF