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.

[EMAIL PROTECTED]:~/Desktop$ sudo kerneltop 
kerneltop: /boot/System.map(16264): wrong map line
[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/Desktop$ sed -n -e 16263p /boot/System.map-2.6.27-7-generic 
 | wc
      1       3     130
[EMAIL PROTECTED]:~/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 */
[EMAIL PROTECTED]:~/Desktop$ lsb_release -rd
Description:    Ubuntu 8.10
Release:        8.10
[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to