too vague at this point to let me guess where it comes from.. if you can
narrow it down to a single image, that would be good. then i'd try and run
it through valgrind + gdb.

-jo

On Sun, Jan 4, 2015 at 4:14 AM, Edouard Gomez <ed.go...@free.fr> wrote:

> What would you advise me to look at ?
>
> As the crash seems related to the same image processing, can I output
> easily the filenames being processed ?
> On 3 Jan 2015 14:10, johannes hanika <hana...@gmail.com> wrote:
>
> interesting that it seems to complain about the pixelpipe cache, this is
> still the untouched old implementation (we only replaced the mipmap cache).
>
> -jo
>
> On Sat, Jan 3, 2015 at 1:29 PM, Edouard Gomez <ed.go...@free.fr> wrote:
>
> On 01/02/2015 09:22 PM, johannes hanika wrote:
> > this is now merged to master. let us know how it goes and if you have
> > any questions.
>
> I get crashes when generating the cache w/ darktable-cli.
>
> The first crash can be reproduced at the same picture if i delete the
> cache dir. Once i get past the first carsh, i have to run the program
> twice more to get the cache fully generated.
>
> So I built a -fsanitize=address binary to check. It's failing in freeing
> one cache entry. So i added code to NULLify any dt_free_align buffer in
> pixelpipe_cache.c. It didn't help. However, there is an alloc w/o proper
> fail path at:
> src/develop/pixelpipe_cache.c@165
> cache->data[max] = (void *)dt_alloc_align(16, size);
>
> Note that adding a check + printf did not trigger any console message.
> So i doubt a failed alloc is causing the crash.
>
> But it's still good to chck if that alloc should be checked.
>
> Here is the backtrace from the erroneous free.
>
> creating complete lighttable thumbnail cache
> creating cache directories
> creating cache directory
>
> '/home/ed/.cache/darktable/mipmaps-a5b98b94af3cd931aa8f96693a3768e491a5e6e9.d/0'
> creating cache directory
>
> '/home/ed/.cache/darktable/mipmaps-a5b98b94af3cd931aa8f96693a3768e491a5e6e9.d/1'
> creating cache directory
>
> '/home/ed/.cache/darktable/mipmaps-a5b98b94af3cd931aa8f96693a3768e491a5e6e9.d/2'
> image 159/654 (24.31%)            ==26307==AddressSanitizer CHECK
> failed: ../../../../src/libsanitizer/asan/asan_allocator2.cc:269
> "((m->chunk_state)) == ((CHUNK_QUARANTINE))" (0x6b, 0x3)
>     #0 0x7fb88a9edba3 (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x59ba3)
>     #1 0x7fb88a9f1ae3 in __sanitizer::CheckFailed(char const*, int, char
> const*, unsigned long long, unsigned long long)
> (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x5dae3)
>     #2 0x7fb88a9b2429 (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x1e429)
>     #3 0x7fb88a9b49c9 (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x209c9)
>     #4 0x7fb88a9b28df (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x1e8df)
>     #5 0x7fb88a9e84d5 in __interceptor_free
> (/usr/lib/x86_64-linux-gnu/libasan.so.1+0x544d5)
>     #6 0x7fb88a47f230 in dt_dev_pixelpipe_cache_cleanup
> /home/ed/programming/workspace/darktable/src/develop/pixelpipe_cache.c:77
>     #7 0x7fb88a488aa4 in dt_dev_pixelpipe_cleanup
> /home/ed/programming/workspace/darktable/src/develop/pixelpipe_hb.c:161
>     #8 0x7fb88a401e18 in dt_imageio_export_with_flags
> /home/ed/programming/workspace/darktable/src/common/imageio.c:813
>     #9 0x7fb88a4228ed in _init_8
> /home/ed/programming/workspace/darktable/src/common/mipmap_cache.c:951
>     #10 0x7fb88a4228ed in dt_mipmap_cache_get_with_caller
> /home/ed/programming/workspace/darktable/src/common/mipmap_cache.c:623
>     #11 0x403d4b in generate_thumbnail_cache
> /home/ed/programming/workspace/darktable/src/cli/main.c:96
>     #12 0x403d4b in main
> /home/ed/programming/workspace/darktable/src/cli/main.c:271
>     #13 0x7fb88453db44 in __libc_start_main
> (/lib/x86_64-linux-gnu/libc.so.6+0x21b44)
>     #14 0x40420b (/home/ed/opt/darktable/bin/darktable-cli+0x40420b)
>
>
> --
> Edouard Gomez
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> darktable-devel mailing list
> darktable-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/darktable-devel
>
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
darktable-devel mailing list
darktable-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/darktable-devel

Reply via email to