You are not logged in.

#1 2017-06-03 16:41:43

Batou
Member
Registered: 2017-01-03
Posts: 259

colord is dumping core every few seconds

I noticed that my disk space was shrinking fast and after looking at the journal, I noticed a TON of these messages:

-- The start-up result is done.
Jun 03 09:32:49 batou systemd-coredump[1317]: Process 1294 (colord-sane) of user 124 dumped core.
                                                    
                                                    Stack trace of thread 1297:
                                                    #0  0x00007f22a33a8670 raise (libc.so.6)
                                                    #1  0x00007f22a33a9d00 abort (libc.so.6)
                                                    #2  0x00007f22a3c17831 n/a (libglib-2.0.so.0)
                                                    #3  0x00007f22a3c17e1a g_private_set (libglib-2.0.so.0)
                                                    #4  0x00007f22a3bf0ee3 g_slice_free_chain_with_offset (libglib-2.0.so.0)
                                                    #5  0x00007f22a2b22519 n/a (libgio-2.0.so.0)
                                                    #6  0x00007f22a3eb0c7a g_object_unref (libgobject-2.0.so.0)
                                                    #7  0x00007f22a2b2de69 n/a (libgio-2.0.so.0)
                                                    #8  0x00007f22a3eb0c7a g_object_unref (libgobject-2.0.so.0)
                                                    #9  0x00007f22a2b29cc3 n/a (libgio-2.0.so.0)
                                                    #10 0x00007f22a2b3f4ed n/a (libgio-2.0.so.0)
                                                    #11 0x00007f22a2b3f649 n/a (libgio-2.0.so.0)
                                                    #12 0x00007f22a3bd266a g_main_context_dispatch (libglib-2.0.so.0)
                                                    #13 0x00007f22a3bd2a20 n/a (libglib-2.0.so.0)
                                                    #14 0x00007f22a3bd2d42 g_main_loop_run (libglib-2.0.so.0)
                                                    #15 0x00007f22a2b3df86 n/a (libgio-2.0.so.0)
                                                    #16 0x00007f22a3bfa295 n/a (libglib-2.0.so.0)
                                                    #17 0x00007f22a3721297 start_thread (libpthread.so.0)
                                                    #18 0x00007f22a346225f __clone (libc.so.6)
                                                    
                                                    Stack trace of thread 1294:
                                                    #0  0x00007f22a47814ac n/a (n/a)
-- Subject: Process 1294 (colord-sane) dumped core
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: man:core(5)
-- 
-- Process 1294 (colord-sane) crashed and dumped core.
-- 
-- This usually indicates a programming error in the crashing program and
-- should be reported to its vendor as a bug.
 

I've had over 20GB of colord-sane coredumps.

It all started after the upgrade to 4.11.3 kernel.

Anyone have some ideas how to go about fixing this?

Last edited by Batou (2017-06-03 16:56:37)


Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure"  first)

Offline

#2 2017-06-03 17:03:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: colord is dumping core every few seconds

Yeah, my system was getting spammed too.  If you need the space back, the core dumps are at /var/lib/systemd/coredump.
If you never use coredumps, you can control their storage by adjusting  /etc/systemd/coredump.conf
I use i3, note gnome or kde, so I just disabled colord without any noticeable issues.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-06-03 17:18:31

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: colord is dumping core every few seconds

Offline

#4 2017-06-03 21:40:24

Batou
Member
Registered: 2017-01-03
Posts: 259

Re: colord is dumping core every few seconds

Thanks guys! So I guess the solution is to disable colord and wait for openssl/sane/colord to get updated...


Please vote for all the AUR packages you're using. You can mass-vote for all of them by doing: "pacman -Qqm | xargs aurvote -v" (make sure to run "aurvote --configure"  first)

Offline

#5 2017-06-03 21:46:37

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: colord is dumping core every few seconds

openssl just needs this patch https://github.com/openssl/openssl/pull … c74794a8c4 no update to sane or colord required and the issue is resolved for me.

Offline

#6 2017-06-05 07:03:08

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 288

Re: colord is dumping core every few seconds

loqs wrote:

openssl just needs this patch https://github.com/openssl/openssl/pull … c74794a8c4 no update to sane or colord required and the issue is resolved for me.

does it also need the ca-dir.patch that was with the e version in ABS?
when i looked in the f version SRC at that file, it looked like it wasn't ca-dir patched, so i included it and got "unreversed patch" message, i ignored and patched anyway as noticed without it, it didn't run the test recipes, but one of the tests fails so package fails to build (it did build without the ca-dir.patch). thanks

Last edited by WFV (2017-06-05 07:03:58)


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#7 2017-06-05 07:49:33

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: colord is dumping core every few seconds

Please include the PKGBUILD you are using and the output of makepkg.
Edit:

$ cat PKGBUILD 
# $Id$
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=openssl
_ver=1.1.0f
# use a pacman compatible version scheme
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
#pkgver=$_ver
pkgrel=1
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
arch=('i686' 'x86_64')
url='https://www.openssl.org'
license=('custom:BSD')
depends=('perl')
optdepends=('ca-certificates')
backup=('etc/ssl/openssl.cnf')
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
        "https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz.asc"
        'ca-dir.patch'
        '6831138ced3804f8ebd2079b671a40c74794a8c4.patch')
md5sums=('7b521dea79ab159e8ec879d2333369fa'
         'SKIP'
         '02b53865fb70faef763e262b4971aa4b'
         '2f1b34d666894f447241c60191e9cfda')
validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491')

prepare() {
	cd $srcdir/$pkgname-$_ver

	# set ca dir to /etc/ssl by default
	patch -p0 -i $srcdir/ca-dir.patch
	patch -p1 -i $srcdir/6831138ced3804f8ebd2079b671a40c74794a8c4.patch
}

build() {
	cd $srcdir/$pkgname-$_ver

	if [ "${CARCH}" == 'x86_64' ]; then
		openssltarget='linux-x86_64'
		optflags='enable-ec_nistp_64_gcc_128'
	elif [ "${CARCH}" == 'i686' ]; then
		openssltarget='linux-elf'
		optflags=''
	fi

	# mark stack as non-executable: http://bugs.archlinux.org/task/12434
	./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
		shared no-ssl3-method ${optflags} \
		"${openssltarget}" \
		"-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"

	make depend
	make
}

check() {
	cd $srcdir/$pkgname-$_ver
	# the test fails due to missing write permissions in /etc/ssl
	# revert this patch for make test
	patch -p0 -R -i $srcdir/ca-dir.patch
	make test
	patch -p0 -i $srcdir/ca-dir.patch
}

package() {
	cd $srcdir/$pkgname-$_ver
	make DESTDIR=$pkgdir MANDIR=/usr/share/man MANSUFFIX=ssl install_sw install_ssldirs install_man_docs
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
$ makepkg -Cf
==> Making package: openssl 1.1.0.f-1 (Mon  5 Jun 10:51:33 UTC 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found openssl-1.1.0f.tar.gz
  -> Found openssl-1.1.0f.tar.gz.asc
  -> Found ca-dir.patch
  -> Found 6831138ced3804f8ebd2079b671a40c74794a8c4.patch
==> Validating source files with md5sums...
    openssl-1.1.0f.tar.gz ... Passed
    openssl-1.1.0f.tar.gz.asc ... Skipped
    ca-dir.patch ... Passed
    6831138ced3804f8ebd2079b671a40c74794a8c4.patch ... Passed
==> Verifying source file signatures with gpg...
    openssl-1.1.0f.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting openssl-1.1.0f.tar.gz with bsdtar
==> Starting prepare()...
patching file apps/CA.pl.in
patching file apps/openssl.cnf
patching file crypto/err/err.c
==> Removing existing $pkgdir/ directory...
==> Starting build()...
....
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "openssl"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: openssl 1.1.0.f-1 (Mon  5 Jun 10:53:35 UTC 2017)

Last edited by loqs (2017-06-05 09:55:56)

Offline

#8 2017-06-05 17:36:49

WFV
Member
From: ☭USSA⛧⭒⭒⭒⭒
Registered: 2013-04-23
Posts: 288

Re: colord is dumping core every few seconds

It passed the test recipe this time. I had rolled sane back to previous version prior to trying this. Yesterday during the build I had switched to other pc via k-v-m switcher and got a coredump switching back that looked like the usb ports switching affected one of the test recipes. I reran it today without switching away and all ran without error. I used skippgpcheck because I manually edited /openssl/crypto/err/err.c file in the tarball instead of patching, hence you don't see that patch in my PKGBUILD:

% cat PKGBUILD
# $Id: PKGBUILD 294302 2017-04-24 11:54:32Z jgc $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=openssl
_ver=1.1.0f
# use a pacman compatible version scheme
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
#pkgver=$_ver
pkgrel=1
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
arch=('i686' 'x86_64')
url='https://www.openssl.org'
license=('custom:BSD')
depends=('perl')
optdepends=('ca-certificates')
backup=('etc/ssl/openssl.cnf')
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
        "https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz.asc"
        'ca-dir.patch')
md5sums=('07fe1c500871c1f289f0908286fd5d25'
         'SKIP'
         '02b53865fb70faef763e262b4971aa4b')
validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491')

prepare() {
	cd $srcdir/$pkgname-$_ver

	# set ca dir to /etc/ssl by default
	patch -p0 -i $srcdir/ca-dir.patch
}

build() {
	cd $srcdir/$pkgname-$_ver

	if [ "${CARCH}" == 'x86_64' ]; then
		openssltarget='linux-x86_64'
		optflags='enable-ec_nistp_64_gcc_128'
	elif [ "${CARCH}" == 'i686' ]; then
		openssltarget='linux-elf'
		optflags=''
	fi

	# mark stack as non-executable: http://bugs.archlinux.org/task/12434
	./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
		shared no-ssl3-method ${optflags} \
		"${openssltarget}" \
		"-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"

	make depend
	make
}

check() {
	cd $srcdir/$pkgname-$_ver
	# the test fails due to missing write permissions in /etc/ssl
	# revert this patch for make test
	patch -p0 -R -i $srcdir/ca-dir.patch
	make test
	patch -p0 -i $srcdir/ca-dir.patch
}

package() {
	cd $srcdir/$pkgname-$_ver
	make DESTDIR=$pkgdir MANDIR=/usr/share/man MANSUFFIX=ssl install_sw install_ssldirs install_man_docs
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
% makepkg --skippgpcheck
==> Making package: openssl 1.1.0.f-1 (Mon Jun  5 09:46:37 PDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found openssl-1.1.0f.tar.gz
  -> Found openssl-1.1.0f.tar.gz.asc
  -> Found ca-dir.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with md5sums...
    openssl-1.1.0f.tar.gz ... Passed
    openssl-1.1.0f.tar.gz.asc ... Skipped
    ca-dir.patch ... Passed
==> Extracting sources...
  -> Extracting openssl-1.1.0f.tar.gz with bsdtar
==> Starting prepare()...
patching file apps/CA.pl.in
patching file apps/openssl.cnf
==> Starting build()...
	...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "openssl"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: openssl 1.1.0.f-1 (Mon Jun  5 10:16:47 PDT 2017)
makepkg --skippgpcheck  324.82s user 127.06s system 24% cpu 30:11.01 total

with the patched openssl package installed and sane updated to current, no longer getting colord-sane coredumps. You answered my question though, yes, include the ca-dir.patch, thank you!
EDIT: i brought the patch in proper, rc'd the key and reran makepkg and all signed good package and no errors.

Last edited by WFV (2017-06-05 18:32:20)


∞ hard times make the strong, the strong make good times, good times make the weak, the weak make hard times ∞

Offline

#9 2017-06-05 21:45:12

lfcr
Member
Registered: 2014-06-04
Posts: 11

Re: colord is dumping core every few seconds

This patch doesn't solve the problem for me.
Still get the colord-sane coredump as mentioned in https://bugs.archlinux.org/task/54205 and
https://github.com/hughsie/colord/issues/38
Only downgrade sane to 1.0.25-2 (from 1.0.27-1) solved it until now.

Offline

#10 2017-06-05 22:35:33

loqs
Member
Registered: 2014-03-06
Posts: 17,323

Re: colord is dumping core every few seconds

@lfcr this contradicts the package maintainers own testing linked from the bug report https://github.com/openssl/openssl/issues/3584 and two others testing in this thread.
I suggest you post your findings on the bug report including a backtrace from the coredump with and without the patched openssl installed,  evidence the patched package was installed
and all relevant services were restarted after the installation.

Offline

#11 2017-06-06 09:20:17

lfcr
Member
Registered: 2014-06-04
Posts: 11

Re: colord is dumping core every few seconds

Thanks @loqs, mea culpa, I redo and found my mistake. My patched err.c was not correct. Ok now.

Offline

#12 2017-06-17 17:45:00

butler360
Member
Registered: 2012-09-08
Posts: 29

Re: colord is dumping core every few seconds

Here's a PKGBUILD that worked for me without having to do any manual downloads. Had to import the developers key before building though.

gpg --recv-keys D9C4D26D0E604491
# $Id$
# Maintainer: Pierre Schmitz <pierre@archlinux.de>

pkgname=openssl
_ver=1.1.0f
# use a pacman compatible version scheme
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
#pkgver=$_ver
pkgrel=1
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security'
arch=('i686' 'x86_64')
url='https://www.openssl.org'
license=('custom:BSD')
depends=('perl')
optdepends=('ca-certificates')
backup=('etc/ssl/openssl.cnf')
source=("https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz"
        "https://www.openssl.org/source/${pkgname}-${_ver}.tar.gz.asc"
        'https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/core/openssl/ca-dir.patch'
        'https://github.com/openssl/openssl/commit/6831138ced3804f8ebd2079b671a40c74794a8c4.patch')
md5sums=('7b521dea79ab159e8ec879d2333369fa'
         'SKIP'
         '02b53865fb70faef763e262b4971aa4b'
         '2f1b34d666894f447241c60191e9cfda')
validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491')

prepare() {
	cd $srcdir/$pkgname-$_ver

	# set ca dir to /etc/ssl by default
	patch -p0 -i $srcdir/ca-dir.patch
	patch -p1 -i $srcdir/6831138ced3804f8ebd2079b671a40c74794a8c4.patch
}

build() {
	cd $srcdir/$pkgname-$_ver

	if [ "${CARCH}" == 'x86_64' ]; then
		openssltarget='linux-x86_64'
		optflags='enable-ec_nistp_64_gcc_128'
	elif [ "${CARCH}" == 'i686' ]; then
		openssltarget='linux-elf'
		optflags=''
	fi

	# mark stack as non-executable: http://bugs.archlinux.org/task/12434
	./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
		shared no-ssl3-method ${optflags} \
		"${openssltarget}" \
		"-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"

	make depend
	make
}

check() {
	cd $srcdir/$pkgname-$_ver
	# the test fails due to missing write permissions in /etc/ssl
	# revert this patch for make test
	patch -p0 -R -i $srcdir/ca-dir.patch
	make test
	patch -p0 -i $srcdir/ca-dir.patch
}

package() {
	cd $srcdir/$pkgname-$_ver
	make DESTDIR=$pkgdir MANDIR=/usr/share/man MANSUFFIX=ssl install_sw install_ssldirs install_man_docs
	install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

Offline

Board footer

Powered by FluxBB