Wrong Linux Kernel Version reported by uname -a

To whom it may concern,

I am an openSuSE user for many years. My current installation is openSuSE 11.2. However, my first was SuSE 6.4 and I have been constantly upgrading since then until reaching the current openSuSE 11.2.

The technical issue I have been facing lately is with the kernel version of my current system: although it should be 2.6.31.5-0.1-desktop, as this is the one I have chosen via the online update mechanism and the yast2 system boot-loader procedure, grub shows it as preselected, the boot procedure in the end greets me mentioning this very kernel version, but when I issue the command: uname -a in a command prompt, I am informed of using linux kernel version: 2.6.18.2-34-default #1 SMP PREEMPT !!!

I am really quite puzzled, since I cannot find any such vmlinuz file under /boot/ !

Could it be that my system properly runs with the expected kernel version, but uname mistakes it with a different one? Is there a way to determine the actual version of the linux kernel that my system currently runs with? If it’s a problem with uname, have you got any suggestions that could potentially shed some light towards the origin/cause of the reported issue?

I would like to thank you in advance for your time and concern,

Should you have any further queries, please do not hesitate to contact me,

Best regards,

Nassos Kourentas

Report the output of:

ls -l /boot
grep vmlinuz /boot/grub/menu.lst
rpm -ql kernel-desktop | grep ^/boot
rpm -ql kernel-default | grep ^/boot
rpm -V kernel-desktop
rpm -V kernel-default

First of all I would very much like to thank you for your promptly reply!

The output of the requested respective commands is :

i) ls -l /boot :


total 121860
-rw-r--r-- 1 root root 1442155 2009-10-27 11:58 System.map-2.6.31.5-0.1-debug
-rw-r--r-- 1 root root 1385997 2009-10-27 11:58 System.map-2.6.31.5-0.1-default
-rw-r--r-- 1 root root 1511748 2009-10-27 12:13 System.map-2.6.31.5-0.1-desktop
-rw-r--r-- 1 root root 1521708 2009-10-27 11:54 System.map-2.6.31.5-0.1-pae
-rw-r--r-- 1 root root 1571491 2009-10-27 12:06 System.map-2.6.31.5-0.1-trace
-rw-r--r-- 1 root root 1324907 2009-10-27 12:25 System.map-2.6.31.5-0.1-xen
-rw------- 1 root root     512 2009-08-05 17:20 backup_mbr
lrwxrwxrwx 1 root root       1 2009-11-13 22:40 boot -> .
-rw-r--r-- 1 root root    1236 2009-10-24 03:42 boot.readme
-rw-r--r-- 1 root root  109029 2009-10-27 12:14 config-2.6.31.5-0.1-debug
-rw-r--r-- 1 root root  108796 2009-10-27 12:19 config-2.6.31.5-0.1-default
-rw-r--r-- 1 root root  105371 2009-10-27 13:19 config-2.6.31.5-0.1-desktop
-rw-r--r-- 1 root root  105675 2009-10-27 12:11 config-2.6.31.5-0.1-pae
-rw-r--r-- 1 root root  105783 2009-10-27 12:24 config-2.6.31.5-0.1-trace
-rw-r--r-- 1 root root  102722 2009-10-27 13:22 config-2.6.31.5-0.1-xen
drwxr-xr-x 2 root root     888 2009-11-14 00:25 grub
lrwxrwxrwx 1 root root      25 2009-11-14 00:23 initrd -> initrd-2.6.31.5-0.1-debug
-rw-r--r-- 1 root root 7564540 2009-11-14 00:23 initrd-2.6.31.5-0.1-debug
-rw-r--r-- 1 root root 8094133 2009-11-14 01:05 initrd-2.6.31.5-0.1-default
-rw-r--r-- 1 root root 7794504 2009-11-14 01:05 initrd-2.6.31.5-0.1-desktop
-rw-r--r-- 1 root root 7469845 2009-11-14 00:22 initrd-2.6.31.5-0.1-pae
-rw-r--r-- 1 root root 7470467 2009-11-14 00:22 initrd-2.6.31.5-0.1-trace
-rw-r--r-- 1 root root 7840010 2009-11-14 01:06 initrd-2.6.31.5-0.1-xen
lrwxrwxrwx 1 root root      23 2009-11-14 00:43 initrd-xen -> initrd-2.6.31.5-0.1-xen
-rw-r--r-- 1 root root 1412254 2008-10-27 22:56 initrd.shipped
lrwxrwxrwx 1 root root      20 2008-10-27 22:56 initrd.suse -> /boot/initrd.shipped
-rw-r--r-- 1 root root  415232 2009-11-14 00:25 message
-rw-r--r-- 1 root root  389120 2008-10-27 22:56 message.old
-rw-r--r-- 1 root root  487387 2009-10-27 12:20 symtypes-2.6.31.5-0.1-debug.gz
-rw-r--r-- 1 root root  485677 2009-10-27 12:26 symtypes-2.6.31.5-0.1-default.gz
-rw-r--r-- 1 root root  480059 2009-10-27 13:49 symtypes-2.6.31.5-0.1-desktop.gz
-rw-r--r-- 1 root root  481414 2009-10-27 12:16 symtypes-2.6.31.5-0.1-pae.gz
-rw-r--r-- 1 root root  475251 2009-10-27 13:43 symtypes-2.6.31.5-0.1-xen.gz
-rw-r--r-- 1 root root  172853 2009-10-27 12:14 symvers-2.6.31.5-0.1-debug.gz
-rw-r--r-- 1 root root  172658 2009-10-27 12:19 symvers-2.6.31.5-0.1-default.gz
-rw-r--r-- 1 root root  168720 2009-10-27 13:19 symvers-2.6.31.5-0.1-desktop.gz
-rw-r--r-- 1 root root  168743 2009-10-27 12:11 symvers-2.6.31.5-0.1-pae.gz
-rw-r--r-- 1 root root  169174 2009-10-27 12:24 symvers-2.6.31.5-0.1-trace.gz
-rw-r--r-- 1 root root  169887 2009-10-27 13:22 symvers-2.6.31.5-0.1-xen.gz
-rw-r--r-- 1 root root 4859712 2009-10-27 12:14 vmlinux-2.6.31.5-0.1-debug.gz
-rw-r--r-- 1 root root 4657250 2009-10-27 12:19 vmlinux-2.6.31.5-0.1-default.gz
-rw-r--r-- 1 root root 5185995 2009-10-27 13:17 vmlinux-2.6.31.5-0.1-desktop.gz
-rw-r--r-- 1 root root 5254979 2009-10-27 12:10 vmlinux-2.6.31.5-0.1-pae.gz
-rw-r--r-- 1 root root 3697168 2009-10-27 13:21 vmlinux-2.6.31.5-0.1-xen.gz
lrwxrwxrwx 1 root root      26 2009-11-14 00:23 vmlinuz -> vmlinuz-2.6.31.5-0.1-debug
-rw-r--r-- 1 root root 3825568 2009-10-27 11:58 vmlinuz-2.6.31.5-0.1-debug
-rw-r--r-- 1 root root 3672800 2009-10-27 11:59 vmlinuz-2.6.31.5-0.1-default
-rw-r--r-- 1 root root 4095424 2009-10-27 12:13 vmlinuz-2.6.31.5-0.1-desktop
-rw-r--r-- 1 root root 4157376 2009-10-27 11:54 vmlinuz-2.6.31.5-0.1-pae
-rw-r--r-- 1 root root 4357728 2009-10-27 12:06 vmlinuz-2.6.31.5-0.1-trace
-rw-r--r-- 1 root root 3156547 2009-10-27 12:25 vmlinuz-2.6.31.5-0.1-xen
lrwxrwxrwx 1 root root      24 2009-11-14 00:43 vmlinuz-xen -> vmlinuz-2.6.31.5-0.1-xen
-rw-r--r-- 1 root root 1268012 2008-10-27 22:56 vmlinuz.shipped
lrwxrwxrwx 1 root root      21 2008-10-27 22:56 vmlinuz.suse -> /boot/vmlinuz.shipped
-rw-r--r-- 1 root root  499005 2009-10-27 17:07 xen-3.4.1_19718_04-2.1.gz
lrwxrwxrwx 1 root root      25 2009-11-13 22:31 xen-3.4.gz -> xen-3.4.1_19718_04-2.1.gz
lrwxrwxrwx 1 root root      25 2009-11-13 22:31 xen-3.gz -> xen-3.4.1_19718_04-2.1.gz
-rw-r--r-- 1 root root  481331 2009-10-27 17:06 xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx 1 root root      29 2009-11-13 22:31 xen-dbg-3.4.gz -> xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx 1 root root      29 2009-11-13 22:31 xen-dbg-3.gz -> xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx 1 root root      29 2009-11-13 22:31 xen-dbg.gz -> xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx 1 root root      27 2009-11-13 22:31 xen-syms -> xen-syms-3.4.1_19718_04-2.1
-rw-r--r-- 1 root root 7124565 2009-10-27 17:07 xen-syms-3.4.1_19718_04-2.1
lrwxrwxrwx 1 root root      31 2009-11-13 22:31 xen-syms-dbg -> xen-syms-dbg-3.4.1_19718_04-2.1
-rw-r--r-- 1 root root 6998442 2009-10-27 17:06 xen-syms-dbg-3.4.1_19718_04-2.1
lrwxrwxrwx 1 root root      25 2009-11-13 22:31 xen.gz -> xen-3.4.1_19718_04-2.1.gz

ii) grep vmlinuz /boot/grub/menu.lst :


    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent  showopts vga=0x31a
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent quiet  showopts vga=0x346
    kernel /boot/vmlinuz-2.6.31.5-0.1-pae root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent showopts vga=0x31a
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4
    kernel /boot/vmlinuz-2.6.31.5-0.1-pae root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4
    module /boot/vmlinuz-2.6.31.5-0.1-xen root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent quiet showopts vga=0x346
    kernel /boot/vmlinuz-2.6.31.5-0.1-debug root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent showopts vga=0x31a
    kernel /boot/vmlinuz-2.6.31.5-0.1-trace root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent showopts vga=0x31a

iii) rpm -ql kernel-desktop | grep ^/boot :


/boot/System.map-2.6.31.5-0.1-desktop
/boot/config-2.6.31.5-0.1-desktop
/boot/initrd
/boot/initrd-2.6.31.5-0.1-desktop
/boot/initrd-2.6.31.5-0.1-kdump
/boot/symvers-2.6.31.5-0.1-desktop.gz
/boot/vmlinuz
/boot/vmlinuz-2.6.31.5-0.1-desktop

iv) rpm -ql kernel-default | grep ^/boot :


/boot/System.map-2.6.31.5-0.1-default
/boot/config-2.6.31.5-0.1-default
/boot/initrd
/boot/initrd-2.6.31.5-0.1-default
/boot/initrd-2.6.31.5-0.1-kdump
/boot/symvers-2.6.31.5-0.1-default.gz
/boot/vmlinuz
/boot/vmlinuz-2.6.31.5-0.1-default

v) rpm -V kernel-desktop :

NO OUTPUT !

vi) rpm -V kernel-default :

AGAIN NO OUTPUT !

I am not sure whether the last two ( v) and vi) ) empty results may trigger that something serious is missing…

I am afraid that I can still not derive any useful result based on the above outcome and my level of knowledge concerning this very subject.

Should you have any further queries, please do not hesitate to contact me,

Have a happy and prosperous new 2010,

Best regards,

Nassos Kourentas

In fact you do have both default and desktop kernels installed (and many others too).

I would say that you are actually choosing to boot the -default kernel from GRUB. If it’s the second entry that is selected, you are getting the -default kernel. The title may be wrong for that entry though. It’s time for you to show us the whole menu.lst. Post the output of:

cat /boot/grub/menu.lst

Once again I would like to thank you for your immediate response.

The contents of the menu.lst file are the following:

cat /boot/grub/menu.lst :


# Modified by YaST2. Last modification on Sat Nov 14 00:25:14 EET 2009
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader          
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu (hd2,3)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.2 - 2.6.31.5-0.1                           
    root (hd2,3)                                                        
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent  showopts vga=0x31a                                           
    initrd /boot/initrd-2.6.31.5-0.1-desktop                                                                         

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.2 - 2.6.31.5-0.1 (default)                            
    root (hd2,3)                                                        
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent quiet  showopts vga=0x346                                     
    initrd /boot/initrd-2.6.31.5-0.1-default                                                                         

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.2 - 2.6.31.5-0.1 (pae)                                
    root (hd2,3)                                                        
    kernel /boot/vmlinuz-2.6.31.5-0.1-pae root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent showopts vga=0x31a                                                
    initrd /boot/initrd-2.6.31.5-0.1-pae                                                                             

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.2 - 2.6.31.5-0.1 (desktop)                   
    root (hd2,3)                                                           
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 showopts ide=nodma apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe
    initrd /boot/initrd-2.6.31.5-0.1-desktop                                                                         

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.2 - 2.6.31.5-0.1 (default)
    root (hd2,3)
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4
    initrd /boot/initrd-2.6.31.5-0.1-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.2 - 2.6.31.5-0.1 (pae)
    root (hd2,3)
    kernel /boot/vmlinuz-2.6.31.5-0.1-pae root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4
    initrd /boot/initrd-2.6.31.5-0.1-pae

###Don't change this comment - YaST2 identifier: Original name: xen###
title Xen -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd2,3)
    kernel /boot/xen.gz
    module /boot/vmlinuz-2.6.31.5-0.1-xen root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent quiet showopts vga=0x346
    module /boot/initrd-2.6.31.5-0.1-xen

###Don't change this comment - YaST2 identifier: Original name: linux###
title Debug -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd2,3)
    kernel /boot/vmlinuz-2.6.31.5-0.1-debug root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.6.31.5-0.1-debug

###Don't change this comment - YaST2 identifier: Original name: linux###
title Trace -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd2,3)
    kernel /boot/vmlinuz-2.6.31.5-0.1-trace root=/dev/disk/by-id/scsi-SATA_ST3320613AS_6SZ090BQ-part4 resume=/dev/disk/by-id/ata-ST3320613AS_6SZ090BQ-part1 splash=silent showopts vga=0x31a
    initrd /boot/initrd-2.6.31.5-0.1-trace

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    rootnoverify (fd0)
    chainloader +1

Doesn’t “default 0” indicate that I am using the first entry of menu.lst, which indicates the desktop version of the kernel?

Btw, based on your last reply, I understand that I either use the default or the desktop version of the kernel.

Have you got any idea about the issue concerning that uname -a reports that I am using a rather old version of the kernel (which I do not happen to have installed at all)? Any clues about that?

Should you have any further queries, please do not hesitate to contact me,

Best regards,

Nassos Kourentas

Everything looks ok, all the titles match up with the kernels. Is there any chance you are actually running the uname on the wrong machine? Are you logged in remotely to some other machine?

In addition to what Ken has said, I’ve had a problem in the past with kernel updates not changing the symbolic links in the /boot directory. You should also do an


ls -al /boot

… to see just where the “vmlinuz” symbolic link is actually pointing.

ken yap wrote:
> Everything looks ok, all the titles match up with the kernels. Is there
> any chance you are actually running the uname on the wrong machine? Are
> you logged in remotely to some other machine?
>
>
i remember no too long ago there was another like this problem…i do
not remember if we found a solution…you might drag the forums and
see if you can find it…as i recall it was a very similar subject
line…


palladium

==> To key_yap:
I am afraid no such exotic scenario applies here… I just have a simple stand-alone desktop workstation machine, with a single operating system installed (not dual-boot or virtual machine or whatever)… I am accessing the internet via an adsl modem and I am not aware of any remote machine to have attempted any kind of connection… Thus, it’s extremely unlikely for me to have run uname on a different (remote) machine instead of the current one :frowning:

==> To palladium:
Thanks for the tip… Before initiating the current thread though, I had already done my homework, trying to find out any such similar case throughout the entire forums, albeit without any success… I’ll give a second try, in case I am more lucky this time…
Thanks anyway!

==> To smpoole7:

The output of ls -al /boot follows:

(I should mention here that in my first reply to <ken_yap>, I have included the output (of ls-l /boot which is almost the same…) in the first code snippet)


total 121863
drwxr-xr-x  3 root root    2752 2009-11-14 00:25 .
drwxr-xr-x 35 root root    1096 2010-01-06 07:40 ..
-rw-r--r--  1 root root 1442155 2009-10-27 11:58 System.map-2.6.31.5-0.1-debug
-rw-r--r--  1 root root 1385997 2009-10-27 11:58 System.map-2.6.31.5-0.1-default
-rw-r--r--  1 root root 1511748 2009-10-27 12:13 System.map-2.6.31.5-0.1-desktop
-rw-r--r--  1 root root 1521708 2009-10-27 11:54 System.map-2.6.31.5-0.1-pae
-rw-r--r--  1 root root 1571491 2009-10-27 12:06 System.map-2.6.31.5-0.1-trace
-rw-r--r--  1 root root 1324907 2009-10-27 12:25 System.map-2.6.31.5-0.1-xen
-rw-------  1 root root     512 2009-08-05 17:20 backup_mbr
lrwxrwxrwx  1 root root       1 2009-11-13 22:40 boot -> .
-rw-r--r--  1 root root    1236 2009-10-24 03:42 boot.readme
-rw-r--r--  1 root root  109029 2009-10-27 12:14 config-2.6.31.5-0.1-debug
-rw-r--r--  1 root root  108796 2009-10-27 12:19 config-2.6.31.5-0.1-default
-rw-r--r--  1 root root  105371 2009-10-27 13:19 config-2.6.31.5-0.1-desktop
-rw-r--r--  1 root root  105675 2009-10-27 12:11 config-2.6.31.5-0.1-pae
-rw-r--r--  1 root root  105783 2009-10-27 12:24 config-2.6.31.5-0.1-trace
-rw-r--r--  1 root root  102722 2009-10-27 13:22 config-2.6.31.5-0.1-xen
drwxr-xr-x  2 root root     888 2009-11-14 00:25 grub
lrwxrwxrwx  1 root root      25 2009-11-14 00:23 initrd -> initrd-2.6.31.5-0.1-debug
-rw-r--r--  1 root root 7564540 2009-11-14 00:23 initrd-2.6.31.5-0.1-debug
-rw-r--r--  1 root root 8094133 2009-11-14 01:05 initrd-2.6.31.5-0.1-default
-rw-r--r--  1 root root 7794504 2009-11-14 01:05 initrd-2.6.31.5-0.1-desktop
-rw-r--r--  1 root root 7469845 2009-11-14 00:22 initrd-2.6.31.5-0.1-pae
-rw-r--r--  1 root root 7470467 2009-11-14 00:22 initrd-2.6.31.5-0.1-trace
-rw-r--r--  1 root root 7840010 2009-11-14 01:06 initrd-2.6.31.5-0.1-xen
lrwxrwxrwx  1 root root      23 2009-11-14 00:43 initrd-xen -> initrd-2.6.31.5-0.1-xen
-rw-r--r--  1 root root 1412254 2008-10-27 22:56 initrd.shipped
lrwxrwxrwx  1 root root      20 2008-10-27 22:56 initrd.suse -> /boot/initrd.shipped
-rw-r--r--  1 root root  415232 2009-11-14 00:25 message
-rw-r--r--  1 root root  389120 2008-10-27 22:56 message.old
-rw-r--r--  1 root root  487387 2009-10-27 12:20 symtypes-2.6.31.5-0.1-debug.gz
-rw-r--r--  1 root root  485677 2009-10-27 12:26 symtypes-2.6.31.5-0.1-default.gz
-rw-r--r--  1 root root  480059 2009-10-27 13:49 symtypes-2.6.31.5-0.1-desktop.gz
-rw-r--r--  1 root root  481414 2009-10-27 12:16 symtypes-2.6.31.5-0.1-pae.gz
-rw-r--r--  1 root root  475251 2009-10-27 13:43 symtypes-2.6.31.5-0.1-xen.gz
-rw-r--r--  1 root root  172853 2009-10-27 12:14 symvers-2.6.31.5-0.1-debug.gz
-rw-r--r--  1 root root  172658 2009-10-27 12:19 symvers-2.6.31.5-0.1-default.gz
-rw-r--r--  1 root root  168720 2009-10-27 13:19 symvers-2.6.31.5-0.1-desktop.gz
-rw-r--r--  1 root root  168743 2009-10-27 12:11 symvers-2.6.31.5-0.1-pae.gz
-rw-r--r--  1 root root  169174 2009-10-27 12:24 symvers-2.6.31.5-0.1-trace.gz
-rw-r--r--  1 root root  169887 2009-10-27 13:22 symvers-2.6.31.5-0.1-xen.gz
-rw-r--r--  1 root root 4859712 2009-10-27 12:14 vmlinux-2.6.31.5-0.1-debug.gz
-rw-r--r--  1 root root 4657250 2009-10-27 12:19 vmlinux-2.6.31.5-0.1-default.gz
-rw-r--r--  1 root root 5185995 2009-10-27 13:17 vmlinux-2.6.31.5-0.1-desktop.gz
-rw-r--r--  1 root root 5254979 2009-10-27 12:10 vmlinux-2.6.31.5-0.1-pae.gz
-rw-r--r--  1 root root 3697168 2009-10-27 13:21 vmlinux-2.6.31.5-0.1-xen.gz
lrwxrwxrwx  1 root root      26 2009-11-14 00:23 vmlinuz -> vmlinuz-2.6.31.5-0.1-debug
-rw-r--r--  1 root root 3825568 2009-10-27 11:58 vmlinuz-2.6.31.5-0.1-debug
-rw-r--r--  1 root root 3672800 2009-10-27 11:59 vmlinuz-2.6.31.5-0.1-default
-rw-r--r--  1 root root 4095424 2009-10-27 12:13 vmlinuz-2.6.31.5-0.1-desktop
-rw-r--r--  1 root root 4157376 2009-10-27 11:54 vmlinuz-2.6.31.5-0.1-pae
-rw-r--r--  1 root root 4357728 2009-10-27 12:06 vmlinuz-2.6.31.5-0.1-trace
-rw-r--r--  1 root root 3156547 2009-10-27 12:25 vmlinuz-2.6.31.5-0.1-xen
lrwxrwxrwx  1 root root      24 2009-11-14 00:43 vmlinuz-xen -> vmlinuz-2.6.31.5-0.1-xen
-rw-r--r--  1 root root 1268012 2008-10-27 22:56 vmlinuz.shipped
lrwxrwxrwx  1 root root      21 2008-10-27 22:56 vmlinuz.suse -> /boot/vmlinuz.shipped
-rw-r--r--  1 root root  499005 2009-10-27 17:07 xen-3.4.1_19718_04-2.1.gz
lrwxrwxrwx  1 root root      25 2009-11-13 22:31 xen-3.4.gz -> xen-3.4.1_19718_04-2.1.gz
lrwxrwxrwx  1 root root      25 2009-11-13 22:31 xen-3.gz -> xen-3.4.1_19718_04-2.1.gz
-rw-r--r--  1 root root  481331 2009-10-27 17:06 xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx  1 root root      29 2009-11-13 22:31 xen-dbg-3.4.gz -> xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx  1 root root      29 2009-11-13 22:31 xen-dbg-3.gz -> xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx  1 root root      29 2009-11-13 22:31 xen-dbg.gz -> xen-dbg-3.4.1_19718_04-2.1.gz
lrwxrwxrwx  1 root root      27 2009-11-13 22:31 xen-syms -> xen-syms-3.4.1_19718_04-2.1
-rw-r--r--  1 root root 7124565 2009-10-27 17:07 xen-syms-3.4.1_19718_04-2.1
lrwxrwxrwx  1 root root      31 2009-11-13 22:31 xen-syms-dbg -> xen-syms-dbg-3.4.1_19718_04-2.1
-rw-r--r--  1 root root 6998442 2009-10-27 17:06 xen-syms-dbg-3.4.1_19718_04-2.1
lrwxrwxrwx  1 root root      25 2009-11-13 22:31 xen.gz -> xen-3.4.1_19718_04-2.1.gz

As it appears from the output (that was the case with the reported output to <ken_yap> but went unnoticed), vmlinuz points to vmlinuz-2.6.31.5-0.1-debug and not to vmlinuz-2.6.31.5-0.1-desktop (or vmlinuz-2.6.31.5-0.1-default). Is it correct, or should it be pointing to (linked with) one of the latter two options? If yes, what is the proper way of performing that very linking? Via Yast2?

I once again feel the need to express my deepest gratitude towards all of you that have tried to dive into my case and assist me in my attempt to clarify this rather weird behaviour!

Best regards,

Nassos Kourentas

The reason I didn’t comment on the vmlinuz symlink is because menu.lst names the kernels used explicitly and doesn’t use vmlinuz.

One would have to ask whether you are running the right version of uname then, a private version or perhaps a leftover from an older release. Please do:

which uname
rpm -qf `which uname`

And if you like:

strace uname -a

Indeed you are quite right about your comment on the vmlinuz symlink (since in menu.lst names the are kernels refered explicitly without the use of vmlinuz symlink).

As for the requested output, please have a look below:

i) which uname :


/bin/uname

ii) rpm -qf which uname :


coreutils-7.1-3.2.i586

iii) strace uname -a : (rather lengthy output…)


execve("/bin/uname", "uname", "-a"], /* 135 vars */]) = 0
brk(0)                                  = 0x80de000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c5000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/tls/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/tls/i686/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/tls/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/tls/i686", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/tls/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/tls/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/tls/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/tls", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/i686/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/i686", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/office_suites/star_office/adabas/lib/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/office_suites/star_office/adabas/lib", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/i686/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/i686", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/tls", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/i686/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/i686", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86", {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
open("tls/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/libreadline.so.6", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libreadline.so.6", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/tls/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/tls/i686/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/tls/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/tls/i686", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/tls/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/tls/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/tls/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/tls", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/i686/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/i686/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/i686/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/i686", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/sse2/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0/sse2", 0xbf80f374) = -1 ENOENT (No such file or directory)
open("/lib/bash/4.0/libreadline.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/bash/4.0", 0xbf80f374)     = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=339671, ...}) = 0
mmap2(NULL, 339671, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7872000
close(3)                                = 0
open("/lib/libreadline.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\346\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=234716, ...}) = 0
mmap2(NULL, 241976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7836000
fadvise64(3, 0, 241976, POSIX_FADV_WILLNEED) = 0
mmap2(0xb786c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35) = 0xb786c000
mmap2(0xb7870000, 4408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7870000
close(3)                                = 0
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/sse2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/libdl.so.2", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("tls/sse2/libdl.so.2", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("tls/libdl.so.2", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("i686/sse2/libdl.so.2", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("i686/libdl.so.2", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("sse2/libdl.so.2", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("libdl.so.2", O_RDONLY)            = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200
\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=14016, ...}) = 0
mmap2(NULL, 16504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7831000
fadvise64(3, 0, 16504, POSIX_FADV_WILLNEED) = 0
mmap2(0xb7834000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7834000
close(3)                                = 0
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("tls/sse2/libc.so.6", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("tls/libc.so.6", O_RDONLY)         = -1 ENOENT (No such file or directory)
open("i686/sse2/libc.so.6", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("i686/libc.so.6", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("sse2/libc.so.6", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY)             = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 l\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1430104, ...}) = 0
mmap2(NULL, 1440072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb76d1000
fadvise64(3, 0, 1440072, POSIX_FADV_WILLNEED) = 0
mprotect(0xb782a000, 4096, PROT_NONE)   = 0
mmap2(0xb782b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x159) = 0xb782b000
mmap2(0xb782e000, 10568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb782e000
close(3)                                = 0
open("/opt/projects/bog/fame/fame_db/timeiq/lib/linux_x86/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/i686/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("tls/libncurses.so.5", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("i686/sse2/libncurses.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libncurses.so.5", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("sse2/libncurses.so.5", O_RDONLY)  = -1 ENOENT (No such file or directory)
open("libncurses.so.5", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/lib/libncurses.so.5", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\266\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=243856, ...}) = 0
mmap2(NULL, 247512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7694000
fadvise64(3, 0, 247512, POSIX_FADV_WILLNEED) = 0
mprotect(0xb76ca000, 4096, PROT_NONE)   = 0
mmap2(0xb76cb000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x36) = 0xb76cb000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7693000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7692000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb76926c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb76cb000, 8192, PROT_READ)   = 0
mprotect(0xb782b000, 8192, PROT_READ)   = 0
mprotect(0xb7834000, 4096, PROT_READ)   = 0
mprotect(0xb786c000, 4096, PROT_READ)   = 0
mprotect(0x80d4000, 4096, PROT_READ)    = 0
mprotect(0xb78e4000, 4096, PROT_READ)   = 0
munmap(0xb7872000, 339671)              = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 3
close(3)                                = 0
stat64("/usr/lib/locale/locale-archive", 0xbf80f890) = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x80de000
brk(0x80ff000)                          = 0x80ff000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb78c4000
read(3, "# Locale name alias data base.
#"..., 4096) = 2512
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb78c4000, 4096)                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0
mmap2(NULL, 373, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78c4000
close(3)                                = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=26048, ...}) = 0
mmap2(NULL, 26048, PROT_READ, MAP_SHARED, 3, 0) = 0xb78bd000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78bc000
close(3)                                = 0

(continues through to the following post as it was too long to feet in a single post…)

(continued from previous post, as it was too long to be enclosed within a single post…)


open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78bb000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0
mmap2(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78ba000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0
mmap2(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78b9000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78b8000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=80, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0
mmap2(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78b7000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap2(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78b6000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2454, ...}) = 0
mmap2(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78b5000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb78b4000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0
mmap2(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7875000
close(3)                                = 0
getuid32()                              = 500
getgid32()                              = 100
geteuid32()                             = 500
getegid32()                             = 100
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
time(NULL)                              = 1262874684
open("/proc/meminfo", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7874000
read(3, "MemTotal:        3082232 kB
MemF"..., 1024) = 1024
close(3)                                = 0
munmap(0xb7874000, 4096)                = 0
rt_sigaction(SIGCHLD, {SIG_DFL, ], SA_RESTART}, {SIG_DFL, ], 0}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, ], SA_RESTART}, {SIG_DFL, ], 0}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ], SA_RESTART}, {SIG_DFL, ], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigaction(SIGQUIT, {0x1, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
uname({sys="Linux", node="nassos-linux", ...}) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
stat64("/opt1/tmp/skata/tmp", {st_mode=S_IFDIR|0755, st_size=3768, ...}) = 0
stat64(".", {st_mode=S_IFDIR|0755, st_size=3768, ...}) = 0
getpid()                                = 9207
getppid()                               = 9206
gettimeofday({1262874684, 413598}, NULL) = 0
getpgrp()                               = 9206
rt_sigaction(SIGCHLD, {0x807e99d, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=24017, rlim_max=24017}) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=966938, ...}) = 0
mmap2(NULL, 966938, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb75a5000
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
open("/bin/uname", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf80f77c) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "#!/bin/bash

OUTPUT=`uname.bin $"..., 80) = 80
_llseek(3, 0, [0], SEEK_SET)            = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=8*1024}) = 0
fcntl64(255, F_GETFD)                   = -1 EBADF (Bad file descriptor)
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl64(255, F_SETFD, FD_CLOEXEC)       = 0
fcntl64(255, F_GETFL)                   = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat64(255, {st_mode=S_IFREG|0755, st_size=1258, ...}) = 0
_llseek(255, 0, [0], SEEK_CUR)          = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
read(255, "#!/bin/bash

OUTPUT=`uname.bin $"..., 1258) = 1258
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], ], 8) = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], ], 8) = 0
_llseek(255, -1223, [35], SEEK_CUR)     = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7692728) = 9208
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e99d, ], SA_RESTART}, {0x807e99d, ], SA_RESTART}, 8) = 0
close(4)                                = 0
read(3, "Linux nassos-linux 2.6.31.5-0.1-"..., 128) = 106
read(3, "", 128)                        = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], ], 8) = 0
rt_sigaction(SIGINT, {0x807da7d, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
waitpid(-1, {WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 9208
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbf80ef5c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now ])
rt_sigaction(SIGINT, {SIG_DFL, ], SA_RESTART}, {0x807da7d, ], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
read(255, "
if test -f /.kernelversion ; th"..., 1258) = 1223
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
stat64("/.kernelversion", 0xbf80f5c8)   = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
lstat64("/usr/src/linux", {st_mode=S_IFLNK|0777, st_size=18, ...}) = 0
stat64("/usr/src/linux", {st_mode=S_IFDIR|0755, st_size=824, ...}) = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], ], 8) = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], ], 8) = 0
_llseek(255, -976, [282], SEEK_CUR)     = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7692728) = 9209
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigaction(SIGCHLD, {0x807e99d, ], SA_RESTART}, {0x807e99d, ], SA_RESTART}, 8) = 0
close(4)                                = 0
read(3, "2.6.18.2-34-default
", 128)   = 20
read(3, "", 128)                        = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, {WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 9209
waitpid(-1, 0xbf80efdc, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now ])
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], ], 8) = 0
rt_sigaction(SIGINT, {0x807da7d, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, ], SA_RESTART}, {0x807da7d, ], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
read(255, "
if test -z \"$MREL\" -a -L /usr/s"..., 1258) = 976
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
lstat64("/usr/src/linux", {st_mode=S_IFLNK|0777, st_size=18, ...}) = 0
stat64("/usr/src/linux", {st_mode=S_IFDIR|0755, st_size=824, ...}) = 0
stat64("/usr/src/linux-obj", {st_mode=S_IFDIR|0755, st_size=96, ...}) = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
stat64("/usr/src/linux/Makefile", {st_mode=S_IFREG|0644, st_size=55934, ...}) = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], ], 8) = 0
pipe([3, 4])                            = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7692728) = 9211
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(4)                                = 0
close(4)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [CHLD], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7692728) = 9212
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
rt_sigaction(SIGINT, {0x807da7d, ], SA_RESTART}, {SIG_DFL, ], SA_RESTART}, 8) = 0
waitpid(-1, {WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 9211
waitpid(-1, {WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 9212
rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, ], SA_RESTART}, {0x807da7d, ], SA_RESTART}, 8) = 0
close(3)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_SETMASK, ], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, 0xbf80f24c, WNOHANG)        = -1 ECHILD (No child processes)
sigreturn()                             = ? (mask now ])
rt_sigprocmask(SIG_BLOCK, NULL, ], 8)  = 0
read(255, "", 1258)                     = 0
exit_group(0)                           = ?

I am sorry for the delayed reply, but I got your most recent response while at work and the issues I have reported herein occur at my home PC.

Should you have any further queries, please do not hesitate to contact me,

Thanks a millionth time for your concern,

Best regards,

Nassos Kourentas

Your uname goes through an incredible number of irrelevant shared libraries (/opt/officesuites/star_office, why that?) and finally picks the kernel version out of a kernel source file. And it seems that /bin/uname has been changed to be a shell script. uname comes from the coreutils package. “rpm -V coreutils” will show if the files installed by the package have been changed since installation. Who changed /bin/uname? Have you been installing some software that needed to fake the output of uname?

open("/bin/uname", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf80f77c) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "#!/bin/bash

OUTPUT=`uname.bin $"..., 80) = 80

As for all the irrelevant shared libraries, have you altered LD_LIBRARY_PATH globally somehow or have lots of foreign shared libraries installed? What is the result of echo $LD_LIBRARY_PATH? Some old settings leftover? This could affect the operation of other programs too.

This is the output from a normal strace uname -a:

$ strace uname -a                                       
execve("/bin/uname", "uname", "-a"], /* 106 vars */]) = 0      
brk(0)                                  = 0x607000               
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fb9bdc000                                                 
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fb9bdb000                                                 
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)                                                           
open("/etc/ld.so.cache", O_RDONLY)      = 3                          
fstat(3, {st_mode=S_IFREG|0644, st_size=104520, ...}) = 0            
mmap(NULL, 104520, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bc1000    
close(3)                                = 0                          
open("/lib64/libc.so.6", O_RDONLY)      = 3                          
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\353\1\0\0\0\0\0"..., 832) = 832                                               
fstat(3, {st_mode=S_IFREG|0755, st_size=1408560, ...}) = 0           
mmap(NULL, 3516488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f9fb9665000                                                
fadvise64(3, 0, 3516488, POSIX_FADV_WILLNEED) = 0                    
mprotect(0x7f9fb97b6000, 2097152, PROT_NONE) = 0                     
mmap(0x7f9fb99b6000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x151000) = 0x7f9fb99b6000                      
mmap(0x7f9fb99bb000, 18504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f9fb99bb000                            
close(3)                                = 0                          
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fb9bc0000                                                 
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fb9bbf000                                                 
arch_prctl(ARCH_SET_FS, 0x7f9fb9bbf6f0) = 0                          
mprotect(0x7f9fb99b6000, 16384, PROT_READ) = 0                       
mprotect(0x605000, 4096, PROT_READ)     = 0                          
mprotect(0x7f9fb9bdd000, 4096, PROT_READ) = 0                        
munmap(0x7f9fb9bc1000, 104520)          = 0                          
brk(0)                                  = 0x607000                   
brk(0x628000)                           = 0x628000                   
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such file or directory)                                                  
open("/usr/share/locale/locale.alias", O_RDONLY) = 3                 
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0              
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fb9bda000                                                 
read(3, "# Locale name alias data base.
#"..., 4096) = 2512         
read(3, "", 4096)                       = 0                          
close(3)                                = 0                          
munmap(0x7f9fb9bda000, 4096)            = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)                                   
open("/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION", O_RDONLY) = 3   
fstat(3, {st_mode=S_IFREG|0644, st_size=373, ...}) = 0               
mmap(NULL, 373, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bda000       
close(3)                                = 0                          
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3           
fstat(3, {st_mode=S_IFREG|0644, st_size=26050, ...}) = 0             
mmap(NULL, 26050, PROT_READ, MAP_SHARED, 3, 0) = 0x7f9fb9bd3000      
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)                                      
open("/usr/lib/locale/en_US.utf8/LC_MEASUREMENT", O_RDONLY) = 3      
fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0                
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bd2000        
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)                                        
open("/usr/lib/locale/en_US.utf8/LC_TELEPHONE", O_RDONLY) = 3        
fstat(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0                
mmap(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bd1000        
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)                                          
open("/usr/lib/locale/en_US.utf8/LC_ADDRESS", O_RDONLY) = 3          
fstat(3, {st_mode=S_IFREG|0644, st_size=155, ...}) = 0               
mmap(NULL, 155, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bd0000       
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)                                             
open("/usr/lib/locale/en_US.utf8/LC_NAME", O_RDONLY) = 3             
fstat(3, {st_mode=S_IFREG|0644, st_size=77, ...}) = 0                
mmap(NULL, 77, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bcf000        
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)                                            
open("/usr/lib/locale/en_US.utf8/LC_PAPER", O_RDONLY) = 3            
fstat(3, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0                
mmap(NULL, 34, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bce000        
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)                                         
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3         
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0              
close(3)                                = 0                          
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3                                                              
fstat(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0                
mmap(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bcd000        
close(3)                                = 0                          
open("/usr/lib/locale/en_US.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MONETARY", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap(NULL, 286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bcc000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_COLLATE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=966938, ...}) = 0
mmap(NULL, 966938, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9ad2000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_TIME", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2454, ...}) = 0
mmap(NULL, 2454, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bcb000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_NUMERIC", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
mmap(NULL, 54, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9bca000
close(3)                                = 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0
mmap(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9fb9a93000
close(3)                                = 0
uname({sys="Linux", node="ken", ...})   = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 3), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9fb9a92000
uname({sys="Linux", node="ken", ...})   = 0
uname({sys="Linux", node="ken", ...})   = 0
write(1, "Linux ken 2.6.31.8-0.1-desktop #"..., 103Linux ken 2.6.31.8-0.1-desktop #1 SMP PREEMPT 2009-12-15 23:55:40 +0100 x86_64 x86_64 x86_64 GNU/Linux
) = 103
close(1)                                = 0
munmap(0x7f9fb9a92000, 4096)            = 0
close(2)                                = 0
exit_group(0)                           = ?

Using openSUSE 11.2, KDE4, 2.6.31.8-0.1-desktop

Somebody has changed the original binary /bin/uname into /bin/uname.bin and linked uname itself to a shellscript in /usr/lib/build/helper/uname.sh

uname.bin gives back the right name, but the script does not!!

I myself stumbled onto this because hibernation did not work anymore. It turns out that /usr/lib/pm-utils/sleep.d/99Zgrub depends on the use of uname.

For the time being I changed 99Zgrub, but these are not the kind of suprises you expect on a stable release.

Caspar.

On 01/07/2010 07:46 PM, cmaessen wrote:
>
> Using openSUSE 11.2, KDE4, 2.6.31.8-0.1-desktop
>
> Somebody has changed the original binary /bin/uname into /bin/uname.bin
> and linked uname itself to a shellscript in
> /usr/lib/build/helper/uname.sh
>
> uname.bin gives back the right name, but the script does not!!
>
> I myself stumbled onto this because hibernation did not work anymore.
> It turns out that /usr/lib/pm-utils/sleep.d/99Zgrub depends on the use
> of uname.
>
> For the time being I changed 99Zgrub, but these are not the kind of
> suprises you expect on a stable release.

What is the date for the uname link? These changes are not part of openSUSE.
Someone or some external software that you installed did this to your system.

rpm -qf /usr/lib/build/helper/uname.sh
post-build-checks-1.0-66.1.noarch

ls -l /bin/uname
lrwxrwxrwx 1 root root 30 dec 29 22:11 /bin/uname -> /usr/lib/build/helper/uname.sh

Caspar.

$ rpm -qf /usr/lib/build/helper/uname.sh
error: file /usr/lib/build/helper/uname.sh: No such file or directory
$ rpm -q post-build-checks
package post-build-checks is not installed
$ zypper info post-build-checks
Loading repository data...
Reading installed packages...


Information for package post-build-checks:

Repository: openSUSE-11.2-Oss
Name: post-build-checks
Version: 1.0-66.1
Arch: noarch
Vendor: openSUSE
Installed: No
Status: not installed
Installed Size: 136.0 KiB
Summary: post checks for build after rpms have been created
Description:
some scripts to check for problems like test-installing the newly
created rpms and checking the logfile for errors.
This package will also set/change the following sysconfig variables, so
it may not be a good idea to install this to a running system:
/etc/sysconfig/security:PERMISSION_SECURITY="secure"
/etc/sysconfig/clock:TIMEZONE="UTC"

Looks like part of some development package that is not supposed to be used on a running system. Not sure how you got it.

Neither do I. I’ll remove it and see what happens.

Caspar.

==> @ken_yap:

You were quite right: I had an insanely long LD_LIBRARY_PATH, mainly due to the fact that the system in discussion has been around since SuSE 6.4 and I continuously upgraded from one version to its immediate successor throughout all these years and I added several things in that environment variable in-between. I have now substantially reduced it be eliminating the redundant entries.

As for the core issue of the current thread, after following the discussion you had with @cmaessen it’s now evident that I was facing the exact same problem: the symbolic link to another uname script was added by the installation of the post-build-checks-1.0-66.1.noarch package (the installation of which I am afraid I cannot recall…). Once I removed that very package (and re-installed the original coreutils to ensure that it will bring back the original uname and what not) everything was back to the expected normal behaviour: I once again get the: Linux nassos-linux 2.6.31.8-0.1-desktop #1 SMP PREEMPT output.

I would very much like to thank you (and everyone else that participated) for your immediate and dedicated response. Not only my issue has been totally resolved, but I became a bit wiser and certainly more confident that the openSuSE community (and open source community in general) is indeed extremely healthy, alive and kicking!

Thank you very much and I wish I can somehow, someday pay you back your invaluable assistance!

Best regards,

Nassos Kourentas

Good to hear that your problem is solved.

Generally it’s not a good idea to set LD_LIBRARY_PATH globally. It can be left unset in normal use. Instead apps that need it can use a wrapper script to set LD_LIBRARY_PATH to pull in any custom libraries they need.