"kde4-config --version" in / goes mad: looks into /boot/initrd.img-3.13.0-29-generic etc

Bug #1337649 reported by Daniel Hahler
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kde4libs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have noticed (via the postinst script of Beyond Compare), that `kde4-config -v` in the root directory ("/") goes mad:

  % cd /
  % kde4-config --version 2>&1 | head -20
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 3: " Invalid entry (missing '=')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 5: " Invalid entry (missing ']')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 6: " Invalid entry (missing ']')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 7: " Invalid entry (missing ']')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 8: " Invalid entry (missing '=')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 9: " Invalid entry (missing '=')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 11: " Invalid entry (missing ']')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 14: " "Invalid escape sequence "\B"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 15: " "Invalid escape sequence "\*"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 15: " "Invalid escape sequence "\+"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 15: " "Invalid escape sequence "\W"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 15: " "Invalid escape sequence "\×"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 16: " Invalid entry (missing '=')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 17: " "Invalid escape sequence "\‰"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 17: " "Invalid escape sequence "\³"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 17: " "Invalid escape sequence "\;"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 17: " "Invalid escape sequence "\g"."
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 19: " Invalid entry (missing ']')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 22: " Invalid entry (missing ']')
  "KConfigIni: In file /boot/initrd.img-3.13.0-30-generic, line 24: " Invalid entry (missing '=')

`kde4-config --prefix` works fine, but also `kde4-config --help` goes mad.

When redirecting stderr, it "only" takes a few seconds:

  % time kde4-config --version 2>/dev/null
  Qt: 4.8.6
  KDE: 4.13.1
  kde4-config: 1.0
  kde4-config --version 2> /dev/null 5,17s user 0,46s system 99% cpu 5,644 total

  % time kde4-config --help 2>&1|wc -l
  774798
  kde4-config --help 2>&1 6,75s user 1,49s system 99% cpu 8,248 total
  wc -l 0,64s user 2,19s system 34% cpu 8,247 total

It appears to look at the following files:
  /boot/initrd.img-3.13.0-29-generic,
  /boot/initrd.img-3.13.0-30-generic,
  /usr/lib/x86_64-linux-gnu/libnss3.so,

Extracted via:

  % time kde4-config --version 2>&1|awk '{print $4}'|sort -u

  /boot/initrd.img-3.13.0-29-generic,
  /boot/initrd.img-3.13.0-30-generic,
  /usr/lib/x86_64-linux-gnu/libnss3.so,
  kde4-config --version 2>&1 8,28s user 1,68s system 95% cpu 10,396 total
  awk '{print $4}' 1,73s user 2,20s system 37% cpu 10,396 total
  sort -u 0,53s user 0,06s system 5% cpu 10,398 total

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: kdelibs-bin 4:4.13.1-0ubuntu0.2
ProcVersionSignature: Ubuntu 3.13.0-30.54-generic 3.13.11.2
Uname: Linux 3.13.0-30-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Jul 4 03:03:58 2014
InstallationDate: Installed on 2012-05-28 (766 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: kde4libs
UpgradeStatus: Upgraded to trusty on 2014-05-01 (63 days ago)

Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kde4libs (Ubuntu):
status: New → Confirmed
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.