Tumbler crashes every time it must generete new thumbnail. tumbler-registry.c function tumbler_registry_get_thumbnailer_array 483: if (!tumbler_thumbnailer_supports_location (lp->data, gfile)) on derefercing lp pointer. I've started investigating the issue and I think it is a race condition, because adding usleep(1) before tumbler_thumbnailer_get_max_file_size call solved this issue.
Problem is in git master and 0.1.27 versions. I didn't test any other version.
I believe I can confirm the bug. I tried building tumbler with full debug, but
(In reply to comment #2) > I believe I can confirm the bug. > > I tried building tumbler with full debug, but Sorry, keyboard accident. I wanted to add that: - despite building with full debug, I can't get additional clues about the crash. - I can't seem to reproduce the suggested usleep fix. Štěpán, could you share a patch? Thanks.
Adding usleep(1) is not solution. It could only work for me. There is some race between threads and it should be solved by mutexes/semaphores etc. If adding usleep(1) didn't help for you it means nothing. You could still downgrade or play with the code.
I'm afraid my coding skills wouldn't be sufficient to play with the code in a useful way. For now, I downgraded.
*** Bug 9852 has been marked as a duplicate of this bug. ***
I cannot find a reason why this segfaults in the code, but I've put some additional debug messages and checks in the region that should help finding the cause.
Created attachment 5023 gdb backtrace I started experiencing this issue with tumbler 0.1.28 (didn't happen with 0.1.27). It seems to be consistently reproducible. I have attached a gdb backtrace of the crash. OS: Arch Linux x86_64 Compiler: gcc version 4.8.0 20130502 (prerelease) (GCC)
Sigh, 64 bit overflow. Fixed in a96c412.