[Bug 300717] [NEW] kerneltop reports wrong map line on 2.6.27-7 ubuntu kernel

PetiePooo petiepooo at yahoo.com
Fri Nov 21 15:23:27 UTC 2008


Public bug reported:

Binary package hint: kerneltop

Some lines in Ubuntu's 2.6.27-7 kernel (8.10) exceed the 128 character
limit hardcoded in kerneltop.c, giving the "wrong map line" error
message on the next line number as seen below.  Increasing S_LEN to 144
seems to fix it.

pn at lh:~/Desktop$ sudo kerneltop 
kerneltop: /boot/System.map(16264): wrong map line
pn at lh:~/Desktop$ sed -n -e 16263p /boot/System.map-2.6.27-7-generic
ffffffff80621620 r __pci_fixup_resume_earlyPCI_VENDOR_ID_NVIDIAPCI_DEVICE_ID_NVIDIA_CK804_PCIEquirk_nvidia_ck804_pcie_aer_ext_cap
pn at lh:~/Desktop$ sed -n -e 16263p /boot/System.map-2.6.27-7-generic  | wc
      1       3     130
pn at lh:~/Desktop$ diff -cr kerneltop-0.8 kerneltop-local
diff -cr kerneltop-0.8/kerneltop.c kerneltop-local/kerneltop.c
*** kerneltop-0.8/kerneltop.c	2004-05-24 19:27:00.000000000 -0400
--- kerneltop-local/kerneltop.c	2008-11-21 10:08:44.688720228 -0500
***************
*** 84,90 ****
  #define ROW_DATA	4	// first row of function/usage data
  #define ROW_MESSAGE	1
  
! #define S_LEN		128
  #define OUTPUT_SIZE	512
  
  #define DEF_NUMLINES	20		/* lines */
--- 84,90 ----
  #define ROW_DATA	4	// first row of function/usage data
  #define ROW_MESSAGE	1
  
! #define S_LEN		144
  #define OUTPUT_SIZE	512
  
  #define DEF_NUMLINES	20		/* lines */
pn at lh:~/Desktop$ lsb_release -rd
Description:	Ubuntu 8.10
Release:	8.10
pn at lh:~/Desktop$ sudo apt-cache policy kerneltop
kerneltop:
  Installed: 0.8-2
  Candidate: 0.8-2
  Version table:
 *** 0.8-2 0
        500 http://us.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status
pn at lh:~/Desktop$

** Affects: kerneltop (Ubuntu)
     Importance: Undecided
         Status: New

-- 
kerneltop reports wrong map line on 2.6.27-7 ubuntu kernel
https://bugs.launchpad.net/bugs/300717
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list