tumblerd crashed with SIGSEGV (memory leaks detected)

Bug #1923302 reported by Paul Dufresne
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intel-media-driver (Ubuntu)
New
Undecided
Unassigned
tumbler (Ubuntu)
New
Undecided
Unassigned

Bug Description

Had open a pdf in Thunar and was reading it for about 2 mins when the error happened.

Had reported a similar bug previously, but LBRY was opened, and I was kind of waiting it reproduce to avoid my cryptographic information linked to LBRY to be made public (I frankly not know how much dangerous it is to make public).

Will try to link the 2 bugs.

ProblemType: Crash
DistroRelease: Ubuntu 21.04
Package: tumbler 4.16.0-1
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
ApportVersion: 2.20.11-0ubuntu62
Architecture: amd64
CasperMD5CheckResult: unknown
CrashCounter: 1
CurrentDesktop: XFCE
Date: Sat Apr 10 07:22:07 2021
ExecutablePath: /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
InstallationDate: Installed on 2021-01-02 (97 days ago)
InstallationMedia: Xubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
ProcCmdline: /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
ProcEnviron:
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, user)
 LANG=en_US.UTF-8
SegvAnalysis:
 Segfault happened at: 0x7f7320e96035: cmpl $0x10000,(%rsi)
 PC (0x7f7320e96035) ok
 source "$0x10000" ok
 destination "(%rsi)" (0x00000000) not located in a known VMA region (needed writable region)!
 Stack memory exhausted (SP below stack segment)
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: tumbler
StacktraceTop:
 ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
 ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
 ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
 ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
 ?? () from /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
Title: tumblerd crashed with SIGSEGV
UpgradeStatus: Upgraded to hirsute on 2021-04-06 (4 days ago)
UserGroups: adm cdrom dialout dip lpadmin lxd plugdev sambashare sudo
separator:

Revision history for this message
Paul Dufresne (dufresnep) wrote :
Revision history for this message
Paul Dufresne (dufresnep) wrote :

Similar bug with LBRY information I am unsure I want to make public is bug #1923164 .

tags: removed: need-amd64-retrace
summary: - tumblerd crashed with SIGSEGV
+ tumblerd crashed with SIGSEGV start_thread (arg=0x7f73227fc640) at
+ pthread_create.c:473
summary: - tumblerd crashed with SIGSEGV start_thread (arg=0x7f73227fc640) at
- pthread_create.c:473
+ tumblerd crashed with SIGSEGV with Stack memory exhausted
Revision history for this message
Paul Dufresne (dufresnep) wrote : Re: tumblerd crashed with SIGSEGV with Stack memory exhausted

bug #1168558 reported in 2013 is similar by the fact that "Stack memory exhausted"

Revision history for this message
Paul Dufresne (dufresnep) wrote :

bug #1290041 reported in 2014 is similar by the fact that "Stack memory exhausted"

Revision history for this message
Paul Dufresne (dufresnep) wrote :

Well, it should not be linked because the bug is closed (about sparse file video mp4), but I do too have mp4 video files without thumbnails... and because it was causing it to use a lot of memory (stack memory could be something else) I mention it as a remember: https://bugzilla.xfce.org/show_bug.cgi?id=12259#c6

Revision history for this message
Paul Dufresne (dufresnep) wrote :

Also, I have run thunar in a terminal and got:
paul@jacko:~$ thunar
ThunarThumbnailer: Queue failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

which is kind of weird... kind of the opposite of the bug... making tumbler not usable by thunar.

Revision history for this message
Paul Dufresne (dufresnep) wrote :
Download full text (15.9 KiB)

paul@jacko:~$ valgrind /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
==2643== Memcheck, a memory error detector
==2643== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2643== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==2643== Command: /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
==2643==
Registered thumbnailer atril-thumbnailer -s %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer gnome-thumbnail-font --size %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer /usr/share/blender/scripts/blender-thumbnailer.py %i %o
==2643== Thread 10 qtdemux0:sink:
==2643== Invalid read of size 4
==2643== at 0x10073E88: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1006543E: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1004BF64: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10254578: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10258AB2: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10258EB1: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1021F7F1: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0xFC083FF: vaPutImage (in /usr/lib/x86_64-linux-gnu/libva.so.2.1000.0)
==2643== by 0xFB89A53: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so)
==2643== by 0xFB47A05: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so)
==2643== by 0xFB4ED0D: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so)
==2643== by 0x6908132: ??? (in /usr/lib/x86_64-linux-gnu/libgstbase-1.0.so.0.1803.0)
==2643== Address 0x11bfdfe4 is 4 bytes after a block of size 0 alloc'd
==2643== at 0x4842839: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2643== by 0x1029AC82: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x100653DE: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1004BF64: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10254578: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10258AB2: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10258EB1: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1021F7F1: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0xFC083FF: vaPutImage (in /usr/lib/x86_64-linux-gnu/libva.so.2.1000.0)
==2643== by 0xFB89A53: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so)
==2643== by 0xFB47A05: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so)
==2643== by 0xFB4ED0D: ??? (in /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvaapi.so)
==2643==
==2643== Invalid read of size 4
==2643== at 0x10073E8C: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1006543E: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x1004BF64: ??? (in /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so)
==2643== by 0x10254578: ??? (in /usr/lib/x86_64-linu...

Revision history for this message
Paul Dufresne (dufresnep) wrote :
Download full text (15.6 KiB)

paul@jacko:~$ valgrind --main-stacksize=28388608 --leak-check=full /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
==2873== Memcheck, a memory error detector
==2873== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==2873== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==2873== Command: /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd
==2873==
==2876== Warning: invalid file descriptor 1024 in syscall close()
==2876== Warning: invalid file descriptor 1025 in syscall close()
==2876== Warning: invalid file descriptor 1026 in syscall close()
==2876== Warning: invalid file descriptor 1027 in syscall close()
==2876== Use --log-fd=<number> to select an alternative log fd.
==2876== Warning: invalid file descriptor 1028 in syscall close()
==2876== Warning: invalid file descriptor 1029 in syscall close()
Registered thumbnailer atril-thumbnailer -s %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer gnome-thumbnail-font --size %s %u %o
Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Registered thumbnailer /usr/share/blender/scripts/blender-thumbnailer.py %i %o

(tumblerd:2873): tumblerd-CRITICAL **: 11:23:12.774: Name org.freedesktop.thumbnails.Cache1 lost on the message dbus, exiting.

(tumblerd:2873): tumblerd-CRITICAL **: 11:23:12.800: Name org.freedesktop.thumbnails.Manager1 lost on the message dbus, exiting.

(tumblerd:2873): tumblerd-CRITICAL **: 11:23:12.801: Name org.freedesktop.thumbnails.Thumbnailer1 lost on the message dbus, exiting.
==2873==
==2873== HEAP SUMMARY:
==2873== in use at exit: 2,820,854 bytes in 29,539 blocks
==2873== total heap usage: 221,516 allocs, 191,977 frees, 15,311,915 bytes allocated
==2873==
==2873== 24 bytes in 1 blocks are definitely lost in loss record 1,903 of 4,645
==2873== at 0x4842839: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2873== by 0x4B16068: g_malloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6705.0)
==2873== by 0x4B30563: g_strdup (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6705.0)
==2873== by 0x4857E4F: ??? (in /usr/lib/x86_64-linux-gnu/tumbler-1/plugins/tumbler-desktop-thumbnailer.so)
==2873== by 0x111304: ??? (in /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd)
==2873== by 0x4C2B564: (below main) (libc-start.c:332)
==2873==
==2873== 64 bytes in 1 blocks are definitely lost in loss record 3,179 of 4,645
==2873== at 0x4842839: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==2873== by 0x4016750: malloc (rtld-malloc.h:56)
==2873== by 0x4016750: resize_scopes (dl-open.c:290)
==2873== by 0x4016750: dl_open_worker (dl-open.c:705)
==2873== by 0x4D5B287: _dl_catch_exception (dl-error-skeleton.c:208)
==2873== by 0x40156EC: _dl_open (dl-open.c:858)
==2873== by 0x4E1334B: dlopen_doit (dlopen.c:66)
==2873== by 0x4D5B287: _dl_catch_exception (dl-error-skeleton.c:208)
==2873== by 0x4D5B352: _dl_catch_error (dl-error-skeleton.c:227)
==2873== by 0x4E13B88: _dlerror_run (dlerror.c:170)
==2873== by 0x4E133D7: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==2873== by 0x4DF0BDE: g_module_open (in /usr/lib/x86_64-linux-gnu...

Revision history for this message
Paul Dufresne (dufresnep) wrote :

previous post is much harder to read as a message than the original... attaching valgrind2.txt with same information

summary: - tumblerd crashed with SIGSEGV with Stack memory exhausted
+ tumblerd crashed with SIGSEGV (memory leaks detected)
Revision history for this message
Paul Dufresne (dufresnep) wrote :

I have a 17 Mb valgrind3.txt generated by:
valgrind --leak-check=full --show-leak-kinds=all /usr/lib/x86_64-linux-gnu/tumbler-1/tumblerd 2> valgrind3.txt

I don't know if it is really usefull to debug.

Revision history for this message
Paul Dufresne (dufresnep) wrote :
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.