Bug 1096307

Summary: TrackerCrawler can crash due to invalid container pointers, and not staying alive across async calls
Product: Red Hat Enterprise Linux 7 Reporter: Joe Wright <jwright>
Component: trackerAssignee: Debarshi Ray <debarshir>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dkochuka, joboyer, jraising, jwright, mcepl, mclasen, tpelka, vbenes
Target Milestone: rcKeywords: Tracking
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Bug in memory management. Consequence: /usr/libexec/tracker-miner-fs crashed from time to time. Fix: Do not use invalid memory addresses. Result: Processes do not crash any more.
Story Points: ---
Clone Of: Environment:
RhEL 7.0 RC
Last Closed: 2015-03-05 13:23:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1113520, 1203710    
Attachments:
Description Flags
abrt generated ccpp file none

Description Joe Wright 2014-05-09 15:44:59 UTC
Created attachment 894074 [details]
abrt generated ccpp file

Description of problem:
[abrt] tracker-0.16.2-8.el7: tracker-miner-fs killed by SIGSEGV

Version-Release number of selected component (if applicable):
RHEL 7.0 RC

How reproducible:
unsure

Steps to Reproduce:
1. unsure
2.
3.

Actual results:
process crash

Expected results:
no process crash

Additional info:

	

abrt_version:   2.1.11
cmdline:        /usr/libexec/tracker-miner-fs
executable:     /usr/libexec/tracker-miner-fs
kernel:         3.10.0-121.el7.x86_64
last_occurrence: 1399581576
pid:            13398
pkg_arch:       x86_64
pkg_epoch:      0
pkg_name:       tracker
pkg_release:    8.el7
pkg_version:    0.16.2
pwd:            /home/john
runlevel:       N 5
time:           Thu 08 May 2014 02:39:36 PM MDT
uid:            1000
username:       john

core_backtrace: Text file, 47502 bytes
dso_list:       Text file, 5068 bytes
maps:           Text file, 28489 bytes
sosreport.tar.xz: Binary file, 5202112 bytes
var_log_messages: Text file, 36945 bytes

cgroup:
:10:hugetlb:/
:9:perf_event:/
:8:blkio:/
:7:net_cls:/
:6:freezer:/
:5:devices:/
:4:memory:/
:3:cpuacct,cpu:/
:2:cpuset:/
:1:name=systemd:/user.slice/user-1000.slice/session-1.scope

environ:
:XDG_VTNR=1
:XDG_SESSION_ID=1
:SSH_AGENT_PID=13114
:HOSTNAME=vader.freedom.local
:IMSETTINGS_INTEGRATE_DESKTOP=yes
:TERM=dumb
:SHELL=/bin/bash
:HISTSIZE=1000
:GNOME_KEYRING_CONTROL=/run/user/1000/keyring-E27oqb
:IMSETTINGS_MODULE=none
:USER=john
:SSH_AUTH_SOCK=/run/user/1000/keyring-E27oqb/ssh
:USERNAME=john
:MAIL=/var/spool/mail/john
:DESKTOP_SESSION=gnome-classic
:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/john/.local/bin:/home/john/bin
:QT_IM_MODULE=ibus
:PWD=/home/john
:XMODIFIERS=@im=ibus
:LANG=en_US.UTF-8
:GNOME_KEYRING_PID=12950
:GDM_LANG=en_US.UTF-8
:GDMSESSION=gnome-classic
:HISTCONTROL=ignoredups
:SHLVL=1
:HOME=/home/john
:XDG_SEAT=seat0
:LOGNAME=john
:DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6kIZm7mLZU,guid=c67e658d72f940da263950a2536be35f
:'LESSOPEN=||/usr/bin/lesspipe.sh %s'
:WINDOWPATH=1
:DISPLAY=:0
:XDG_RUNTIME_DIR=/run/user/1000
:XAUTHORITY=/run/gdm/auth-for-john-q1K2ar/database
:_=/usr/bin/env
:GNOME_SHELL_SESSION_MODE=classic
:GNOME_DESKTOP_SESSION_ID=this-is-deprecated
:XDG_MENU_PREFIX=gnome-
:SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/12961,unix/unix:/tmp/.ICE-unix/12961
:GPG_AGENT_INFO=/run/user/1000/keyring-E27oqb/gpg:0:1
:DESKTOP_AUTOSTART_ID=10b44be47c86c1c236139957948742922000000129610011
:GIO_LAUNCHED_DESKTOP_FILE=/etc/xdg/autostart/tracker-miner-fs.desktop
:GIO_LAUNCHED_DESKTOP_FILE_PID=13398

limits:
:Limit                     Soft Limit           Hard Limit           Units     
:Max cpu time              unlimited            unlimited            seconds   
:Max file size             unlimited            unlimited            bytes     
:Max data size             unlimited            unlimited            bytes     
:Max stack size            8388608              unlimited            bytes     
:Max core file size        0                    unlimited            bytes     
:Max resident set          unlimited            unlimited            bytes     
:Max processes             4096                 62096                processes 
:Max open files            1024                 4096                 files     
:Max locked memory         65536                65536                bytes     
:Max address space         unlimited            unlimited            bytes     
:Max file locks            unlimited            unlimited            locks     
:Max pending signals       62096                62096                signals   
:Max msgqueue size         819200               819200               bytes     
:Max nice priority         0                    0                    
:Max realtime priority     0                    0                    
:Max realtime timeout      unlimited            unlimited            us        

open_fds:
:0:/dev/null
:pos:	0
:flags:	0100000
:1:socket:[38889]
:pos:	0
:flags:	02
:2:socket:[38889]
:pos:	0
:flags:	02
:3:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:4:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:5:socket:[43618]
:pos:	0
:flags:	02004002
:6:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:7:socket:[43622]
:pos:	0
:flags:	02004002
:8:socket:[53385]
:pos:	0
:flags:	02004002
:9:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:10:anon_inode:inotify
:11:/home/john/.cache/tracker/meta.db
:pos:	4751360
:flags:	02100000
:12:/home/john/.cache/tracker/meta.db-wal
:pos:	26232
:flags:	02100002
:13:/home/john/.cache/tracker/meta.db-shm
:pos:	0
:flags:	02100002
:14:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:15:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:16:/proc/13398/mounts
:pos:	0
:flags:	0100000
:17:/home/john/Documents/Books/Documentation/books/IBM
:pos:	512
:flags:	02304000
:18:pipe:[297209]
:pos:	0
:flags:	00
:19:pipe:[297207]
:pos:	0
:flags:	00
:20:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:21:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:22:pipe:[297197]
:pos:	0
:flags:	00
:23:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:24:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:25:/home/john/Documents/Books/Documentation/books/IBM
:pos:	512
:flags:	02304000
:26:pipe:[297210]
:pos:	0
:flags:	00
:27:anon_inode:[eventfd]
:pos:	0
:flags:	02004002
:eventfd-count:                0
:28:pipe:[297211]
:pos:	0
:flags:	00

proc_pid_status:
:Name:	tracker-miner-f
:State:	S (sleeping)
:Tgid:	13398
:Ngid:	0
:Pid:	13398
:PPid:	12961
:TracerPid:	0
:Uid:	1000	1000	1000	1000
:Gid:	1000	1000	1000	1000
:FDSize:	64
:Groups:	10 1000 
:VmPeak:	 1259480 kB
:VmSize:	 1215800 kB
:VmLck:	       0 kB
:VmPin:	       0 kB
:VmHWM:	   42340 kB
:VmRSS:	   40220 kB
:VmData:	  983476 kB
:VmStk:	     136 kB
:VmExe:	     116 kB
:VmLib:	   18496 kB
:VmPTE:	     468 kB
:VmSwap:	       0 kB
:Threads:	14
:SigQ:	0/62096
:SigPnd:	0000000000000000
:ShdPnd:	0000000000000000
:SigBlk:	0000000000000000
:SigIgn:	0000000000001000
:SigCgt:	0000000180004003
:CapInh:	0000000000000000
:CapPrm:	0000000000000000
:CapEff:	0000000000000000
:CapBnd:	0000001fffffffff
:Seccomp:	0
:Cpus_allowed:	ffff
:Cpus_allowed_list:	0-15
:Mems_allowed:	00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
:Mems_allowed_list:	0
:voluntary_ctxt_switches:	50483
:nonvoluntary_ctxt_switches:	960

Comment 7 Debarshi Ray 2014-10-02 10:05:23 UTC
I have built tracker-0.16.2-9.el7:
https://brewweb.devel.redhat.com/taskinfo?taskID=8053781

Comment 9 Matěj Cepl 2015-01-21 14:01:32 UTC
(In reply to Debarshi Ray from comment #7)
> I have built tracker-0.16.2-9.el7:
> https://brewweb.devel.redhat.com/taskinfo?taskID=8053781

Reporter, do you have any idea how to test this bug? There is no reproducer here. Or could you please ask the customer to test with the new packages?

Thank you

Comment 10 Joe Wright 2015-02-02 17:17:04 UTC
Test/repro request sent to customer. Awaiting response

Comment 12 errata-xmlrpc 2015-03-05 13:23:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0552.html

Comment 13 Debarshi Ray 2016-01-18 17:42:47 UTC
*** Bug 1111292 has been marked as a duplicate of this bug. ***