Project

General

Profile

Bug #10400

Some Lua issue after exporting image (post-export lua callback?)

Added by Roman Lebedev almost 5 years ago. Updated almost 5 years ago.

Status:
Fixed
Priority:
Low
Category:
Lua
Target version:
-
Start date:
03/31/2015
Due date:
% Done:

100%

Estimated time:
Affected Version:
git development version
System:
Debian
bitness:
64-bit
hardware architecture:
amd64/x86

Description

There is no lua scripts at all
Happens with clean install and empty .config/darktable/

Compile options: cd ~/darktable/build/ && rm -rf * && LDFLAGS="-fsanitize=address -fno-omit-frame-pointer" CFLAGS="-fsanitize=address -fno-omit-frame-pointer -O2 -fstack-protector-strong " CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer -O2 -fstack-protector-strong " CC=gcc CXX=g++ cmake -DUSE_OPENCL=OFF ../ && make -j9 && sudo make -j9 install && darktable

Export image (PNG 16bit), and:

=================================================================
1097ERROR: AddressSanitizer: unknown-crash on address 0x6190006feda0 at pc 0x7fa2f7fbc3b6 bp 0x7fa2e1120a10 sp 0x7fa2e1120a08
READ of size 4104 at 0x6190006feda0 thread T1
#0 0x7fa2f7fbc3b5 in full_pushfunc /home/lebedevri/darktable/src/lua/types.c:356
#1 0x7fa2f7f9d17a in async_callback_job /home/lebedevri/darktable/src/lua/call.c:396
#2 0x7fa2f7e2ea01 in dt_control_run_job /home/lebedevri/darktable/src/control/jobs.c:274
#3 0x7fa2f7e2ea01 in dt_control_work /home/lebedevri/darktable/src/control/jobs.c:472
#4 0x7fa2f3fc00a3 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x80a3)
#5 0x7fa2f06ee04c in clone (/lib/x86_64-linux-gnu/libc.so.6+0xe604c)

0x6190006fedf0 is located 0 bytes to the right of 496-byte region [0x6190006fec00,0x6190006fedf0)
allocated by thread T0 here:
#0 0x7fa2f8224c9b in __interceptor_posix_memalign (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x54c9b)
#1 0x7fa2f5845c97 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x65c97)

Thread T1 created by T0 here:
#0 0x7fa2f81f3bba in pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x23bba)
#1 0x7fa2f7e2ef2c in dt_control_jobs_init /home/lebedevri/darktable/src/control/jobs.c:498
#2 0x7fa2f7e248c3 in dt_control_init /home/lebedevri/darktable/src/control/control.c:311
#3 0x7fa2f7d8cd02 in dt_init /home/lebedevri/darktable/src/common/darktable.c:806
#4 0x400bbf in main /home/lebedevri/darktable/src/main.c:24
#5 0x7fa2f0629b44 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)

SUMMARY: AddressSanitizer: unknown-crash /home/lebedevri/darktable/src/lua/types.c:356 full_pushfunc
Shadow bytes around the buggy address:
0x0c32800d7d60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800d7d70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800d7d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c32800d7d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c32800d7da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c32800d7db0: 00 00 00 000000 00 00 00 00 00 00 00 00 fa fa
0x0c32800d7dc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800d7dd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800d7de0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800d7df0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c32800d7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Contiguous container OOB:fc
ASan internal: fe
1097ABORTING

History

#1 Updated by Jérémy Rosen almost 5 years ago

ok, reproduced, thx for teaching me a new trick to find mem problems :)

#2 Updated by Jérémy Rosen almost 5 years ago

  • % Done changed from 0 to 10
  • Status changed from New to Confirmed

#3 Updated by Roman Lebedev almost 5 years ago

  • % Done changed from 10 to 100
  • Status changed from Confirmed to Fixed

Also available in: Atom PDF

Go to top