You are not logged in.

#1 2014-02-13 22:12:31

auti
Member
Registered: 2014-02-13
Posts: 3

glibc 2.19 & find: sanity check of the fnmatch() library function fail

Since yesterdays update to glibc 2.19, find doesn't like searches by name. The update threw a hole lot of segmentations faults

[2014-02-12 15:06] [PACMAN] Running 'pacman --color auto -Sy'
[2014-02-12 15:06] [PACMAN] synchronizing package lists
[2014-02-12 15:07] [PACMAN] Running 'pacman --color auto -S -u'
[2014-02-12 15:07] [PACMAN] starting full system upgrade
[2014-02-12 15:08] [PACMAN] upgraded apr-util (1.5.3-1 -> 1.5.3-2)
[2014-02-12 15:08] [PACMAN] upgraded linux-api-headers (3.12.4-1 -> 3.13.2-1)
[2014-02-12 15:08] [ALPM] warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
[2014-02-12 15:08] [ALPM-SCRIPTLET] Generating locales...
[2014-02-12 15:08] [ALPM-SCRIPTLET]   de_DE.UTF-8
[2014-02-12 15:08] [ALPM-SCRIPTLET]   en_US.UTF-8
[2014-02-12 15:08] [ALPM-SCRIPTLET] Generation complete.
[2014-02-12 15:08] [PACMAN] upgraded glibc (2.18-12 -> 2.19-1)
[2014-02-12 15:08] [PACMAN] upgraded binutils (2.24-1 -> 2.24-2)
[2014-02-12 15:08] [PACMAN] upgraded gcc-libs (4.8.2-7 -> 4.8.2-8)
[2014-02-12 15:08] [PACMAN] upgraded elfutils (0.157-1 -> 0.158-1)
[2014-02-12 15:08] [PACMAN] upgraded gcc (4.8.2-7 -> 4.8.2-8)
[2014-02-12 15:08] [PACMAN] upgraded shared-mime-info (1.2-1 -> 1.2-2)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_Zt9oRn/.INSTALL: line 1: 10554 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdelibs (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdegraphics-mobipocket (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded nepomuk-core (4.12.1-2 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kactivities (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kde-base-artwork (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded oxygen-icons (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_lNExqJ/.INSTALL: line 1: 10562 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdebase-runtime (4.12.1-3 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdebase-lib (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded nepomuk-widgets (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdebase-dolphin (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdebase-konsole (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdebase-plasma (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_jc0NOD/.INSTALL: line 1: 10571 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdepim-runtime (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM] warning: /usr/share/config/kdm/kdmrc installed as /usr/share/config/kdm/kdmrc.pacnew
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_9emqkf/.INSTALL: line 10: 10582 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdebase-workspace (4.11.6-1 -> 4.11.6-2)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_HVYliW/.INSTALL: line 1: 10587 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded libkipi (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_JMyH2D/.INSTALL: line 1: 10591 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdegraphics-gwenview (4.12.1-2 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_BOmkIm/.INSTALL: line 1: 10595 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdegraphics-kcolorchooser (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_V9lYA5/.INSTALL: line 1: 10598 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdegraphics-ksnapshot (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded libkexiv2 (4.12.1-2 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_NKbRqP/.INSTALL: line 1: 10602 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdegraphics-okular (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_1CccYz/.INSTALL: line 1: 10606 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded libkdcraw (4.12.1-2 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdegraphics-thumbnailers (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdemultimedia-ffmpegthumbs (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_PRYdSk/.INSTALL: line 1: 10609 Segmentation fault      (core dumped) xdg-icon-resource forceupdate --theme hicolor &>/dev/null
[2014-02-12 15:08] [PACMAN] upgraded kdemultimedia-kmix (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdemultimedia-mplayerthumbs (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdepimlibs (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded kdeutils-ark (4.12.1-1 -> 4.12.2-1)
[2014-02-12 15:08] [PACMAN] upgraded lib32-elfutils (0.157-1 -> 0.158-1)
[2014-02-12 15:08] [PACMAN] upgraded lib32-glibc (2.18-12 -> 2.19-1)
[2014-02-12 15:08] [PACMAN] upgraded lib32-gcc-libs (4.8.2-7 -> 4.8.2-8)
[2014-02-12 15:08] [PACMAN] upgraded libsasl (2.1.26-6 -> 2.1.26-7)
[2014-02-12 15:08] [PACMAN] upgraded mpd (0.18.7-1 -> 0.18.8-1)
[2014-02-12 15:08] [PACMAN] upgraded nginx (1.4.4-2 -> 1.4.5-1)
[2014-02-12 15:08] [PACMAN] upgraded openjpeg (1.5.1-1 -> 1.5.1-2)
[2014-02-12 15:08] [PACMAN] upgraded pam (1.1.8-2 -> 1.1.8-3)
[2014-02-12 15:08] [PACMAN] upgraded python2-numpy (1.8.0-1 -> 1.8.0-2)
[2014-02-12 15:08] [PACMAN] upgraded redland (1:1.0.17-1 -> 1:1.0.17-2)
[2014-02-12 15:08] [PACMAN] upgraded s-nail (14.5.2-3 -> 14.5.2-4)
[2014-02-12 15:08] [PACMAN] upgraded sudo (1.8.9.p4-1 -> 1.8.9.p5-1)
[2014-02-12 15:08] [PACMAN] upgraded systemd (208-10 -> 208-11)
[2014-02-12 15:08] [PACMAN] upgraded systemd-sysvcompat (208-10 -> 208-11)
[2014-02-12 15:08] [ALPM-SCRIPTLET] /tmp/alpm_7YRIvT/.INSTALL: line 10: 10659 Segmentation fault      (core dumped) mkfontdir usr/share/fonts/local
[2014-02-12 15:08] [PACMAN] upgraded terminus-font (4.38-3 -> 4.38-4)
[2014-02-12 15:08] [PACMAN] upgraded vim-systemd (20130410-1 -> 20140209-1)
[2014-02-12 15:08] [PACMAN] upgraded whois (5.1.0-1 -> 5.1.1-1)
[2014-02-12 15:08] [PACMAN] upgraded xdg-utils (1.1.0.git20140109-1 -> 1.1.0.git20140207-1)
[2014-02-12 15:08] [PACMAN] upgraded xf86-video-intel (2.99.909-2 -> 2.99.910-1)

After that nearly all applications segfaulted but somehow it everything works again. Except for find (which I only recognized after mkinitcpio destroyed my initramfs......):

# find -name \*.pkg.tar.xz
find: sanity check of the fnmatch() library function failed.

Regex, type and all other operators work as expected:

# find -regex '.*\.pkg\.tar\.xz'
./gcc-4.8.2-7-x86_64.pkg.tar.xz
./binutils-2.24-1-x86_64.pkg.tar.xz
./glibc-2.18-12-x86_64.pkg.tar.xz
./gcc-libs-4.8.2-7-x86_64.pkg.tar.xz

# find -type d
.
# pacman -Q findutils glibc
findutils 4.4.2-5
glibc 2.19-1

First is suspected it to be a locale issue, but everything seems to be fine:

# diff -u0 {,/}etc/locale.gen
--- etc/locale.gen      2014-02-07 23:56:45.000000000 +0100
+++ /etc/locale.gen     2014-02-12 19:43:03.037279970 +0100
@@ -124 +124 @@
-#de_DE.UTF-8 UTF-8  
+de_DE.UTF-8 UTF-8  
@@ -161 +161 @@
-#en_US.UTF-8 UTF-8  
+en_US.UTF-8 UTF-8 

# locale-gen
Generating locales...
  de_DE.UTF-8
  en_US.UTF-8
Generation complete.

Downgrading to glibc 2.18-12 solved the problem for now...

# pacman -U --noprogressbar --noconfirm *
loading packages...
warning: downgrading package binutils (2.24-2 => 2.24-1)
warning: downgrading package gcc (4.8.2-8 => 4.8.2-7)
warning: downgrading package gcc-libs (4.8.2-8 => 4.8.2-7)
warning: downgrading package glibc (2.19-1 => 2.18-12)
resolving dependencies...
looking for inter-conflicts...

Packages (4): binutils-2.24-1  gcc-4.8.2-7  gcc-libs-4.8.2-7  glibc-2.18-12

Total Installed Size:   134.89 MiB
Net Upgrade Size:       -0.42 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
downgrading glibc...
warning: /etc/locale.gen installed as /etc/locale.gen.pacnew
downgrading binutils...
downgrading gcc-libs...
downgrading gcc...

# find -name \*.pkg.tar.xz
./gcc-4.8.2-7-x86_64.pkg.tar.xz
./binutils-2.24-1-x86_64.pkg.tar.xz
./glibc-2.18-12-x86_64.pkg.tar.xz
./gcc-libs-4.8.2-7-x86_64.pkg.tar.xz

According to the findutils manual one should file a bug report for this message, but I don't think they expect glibc to be the buggy implementation of fnmatch that looks enough like the GNU version to fool configure, but which doesn't work properly.

Does anybody experience similar problems? Does anybody have suggestions how to solve this?

Last edited by auti (2014-02-13 22:14:12)

Offline

#2 2014-02-13 23:32:28

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: glibc 2.19 & find: sanity check of the fnmatch() library function fail

How about findutils 4.5.12, as in e.g. Fedora.

Offline

#3 2014-02-13 23:51:47

auti
Member
Registered: 2014-02-13
Posts: 3

Re: glibc 2.19 & find: sanity check of the fnmatch() library function fail

Thanks! I didn't use the Fedora patches but the plain PKGBUILD from ABS, but everything seems to be working fine… Even though I still have no idea what was causing this.

Last edited by auti (2014-02-13 23:52:00)

Offline

#4 2014-02-14 00:40:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: glibc 2.19 & find: sanity check of the fnmatch() library function fail

Did you regenerate your locales?   And this fixed it?

I think I have found the issue...     Fixed glibc on its way!

Offline

#5 2014-02-14 12:41:58

auti
Member
Registered: 2014-02-13
Posts: 3

Re: glibc 2.19 & find: sanity check of the fnmatch() library function fail

I've regenerated the locales multiple times but only the upgrade to findutils 4.5.12 worked.

glibc 2.19-2 works with the current findutils.

But if a corrupt locale archive file caused this, why didn't findutils 4.5.12 complained about this?

Anyhow: It works, I'm happy; thanks for your effort, Allan!

Offline

Board footer

Powered by FluxBB