Segmentation fault when run powertop on Panda 4430 with Linaro ubuntu image.

Bug #1024369 reported by Botao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
Fix Released
High
Ricardo Salveti

Bug Description

For Panda 4430 board, on hardware pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/163/hwpack_linaro-lt-panda-x11-base_20120708-163_armhf_supported.tar.gz

with ubuntu rootfs:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/274/linaro-precise-ubuntu-desktop-20120708-274.tar.gz
####################################################################
root@linaro-ubuntu-desktop:~/lava-test# apt-get install powertop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  cpufrequtils laptop-mode-tools
The following NEW packages will be installed:
  powertop
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
Need to get 150 kB of archives.
After this operation, 367 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/linaro-maintainers/overlay/ubuntu/ precise/main powertop armhf 2.0+git20120622+9a563f8-0linaro1 [150 kB]
Fetched 150 kB in 2s (50.8 kB/s)
Selecting previously unselected package powertop.
(Reading database ... 136210 files and directories currently installed.)
Unpacking powertop (from .../powertop_2.0+git20120622+9a563f8-0linaro1_armhf.deb) ...
Processing triggers for man-db ...
Setting up powertop (2.0+git20120622+9a563f8-0linaro1) ...
root@linaro-ubuntu-desktop:~/lava-test# powertop
Cannot load from file /var/cache/powertop/saved_results.powertop
Cannot load from file /var/cache/powertop/saved_parameters.powertop
Cannot load from file /var/cache/powertop/saved_parameters.powertop
[ 2645.518371] Unable to handle kernel paging request at virtual address e66107b8
[ 2645.526031] pgd = e60a8000
[ 2645.528869] [e66107b8] *pgd=00000000
[ 2645.532684] Internal error: Oops: 5 [#1] PREEMPT SMP THUMB2
[ 2645.538574] Modules linked in: arc4 bnep rfcomm ppdev lp parport wl12xx wlcore mac80211 cfg80211 gator wlcore_sdio btwilink bluetooth usbhid hid
[ 2645.552368] CPU: 0 Tainted: G W (3.4.0-1-linaro-lt-omap #1~120625232503-Ubuntu)
[ 2645.561401] PC is at vmap_pte_range+0x4e/0xc8
[ 2645.566009] LR is at vmap_page_range_noflush+0x53/0x70
[ 2645.571441] pc : [<c00b195e>] lr : [<c00b1a2b>] psr: 800f0133
[ 2645.571441] sp : d4d97d38 ip : 00000000 fp : e39697c0
[ 2645.583557] r10: beffffff r9 : 0000065f r8 : c0d9a300
[ 2645.589080] r7 : c079e568 r6 : d4d97d74 r5 : e66107bc r4 : fe7ee000
[ 2645.595977] r3 : e66107b8 r2 : 00000000 r1 : c12494a0 r0 : e39697c0
[ 2645.602874] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment user
[ 2645.610595] Control: 50c5387d Table: a60a804a DAC: 00000015
[ 2645.616668]
[ 2645.616668] PC: 0xc00b18de:
[ 2645.621185] 18dc f5034633 46281600 35084619 05760d76 42ba1e72 4626bf28 f7ff4632 42a6ffb1
[ 2645.629882] 18fc bdf8d1ee c07d2864 f85db500 1809eb04 bfd6f7ff 4ff7e92d f85db500 4699eb04
[ 2645.638610] 191c 46056803 9201460c b91b9e0d f8bbf7f9 d1482800 f3c4682d f4253308 f025657f
[ 2645.647308] 193c f1a5050f eb154540 d03c0583 8088f8df 4a82f06f 68324f1e 980c462b f8503504
[ 2645.656005] 195c 681a1022 481bb132 f779216a f06ffd5b e02a000f 4817b921 f779216c e022fd53
[ 2645.664703] 197c 0000f8d8 68381a09 45540b00 1b61eb00 3b0bea49 4618d902 e0084659 93004658
[ 2645.673431] 199c fe9ef762 46599b00 6200f44f f7644618 6833fead 5480f504 60333301 429c9b01
[ 2645.682128] 19bc 2000d1c9 f06fe001 e8bd000b bf008ffe c079e568 c062ab2c c0d9a300 47ffe92d
[ 2645.690826] 19dc f85db500 461feb04 42882300 4690460c d3009303 4b14de02 46010d45 39fff104
[ 2645.699523]
[ 2645.699523] LR: 0xc00b19ab:
[ 2645.704040] 19a8 f7644618 6833fead 5480f504 60333301 429c9b01 2000d1c9 f06fe001 e8bd000b
[ 2645.712738] 19c8 bf008ffe c079e568 c062ab2c c0d9a300 47ffe92d f85db500 461feb04 42882300
[ 2645.721466] 19e8 4690460c d3009303 4b14de02 46010d45 39fff104 0a0cf10d eb036a5b e00005c5
[ 2645.730163] 1a08 f5014631 0d761600 1e730576 bf28454b b1554626 46324628 e88d4643 f7ff0480
[ 2645.738861] 1a28 b910ff73 9803e006 f06fe001 b004000b 87f0e8bd 42a63508 e7f4d1e2 c07d2864
[ 2645.747558] 1a48 b500b538 eb04f85d 6881460b 68424614 5180f5a1 18894610 6823461a ffb8f7ff
[ 2645.756286] 1a68 681b4b09 4605079a 4b08d403 4798685b f3bfe001 2d008f4f 6823dd04 0585eb03
[ 2645.764984] 1a88 25006025 bd384628 c0799f5c c0799f74 b500b513 eb04f85d e8906883 f0430012
[ 2645.773681] 1aa8 60830301 4b0e1a61 f1030b09 e8520214 44080f00 0400e842 0f00f094 695cd1f7
[ 2645.782379]
[ 2645.782379] SP: 0xd4d97cb8:
[ 2645.786895] 7cb8 c0823a40 c0099069 00006397 c009a4a7 c080e140 c0770ba4 00000001 c1248b00
[ 2645.795593] 7cd8 600f0113 c00b195e 800f0133 ffffffff d4d97d24 c0468179 e39697c0 c12494a0
[ 2645.804321] 7cf8 00000000 e66107b8 fe7ee000 e66107bc d4d97d74 c079e568 c0d9a300 0000065f
[ 2645.813018] 7d18 beffffff e39697c0 00000000 d4d97d38 c00b1a2b c00b195e 800f0133 ffffffff
[ 2645.821716] 7d38 c0007f98 fe7ef000 fe7ef000 fe7ef000 c0007f98 fe7ef000 e39697c0 0000065f
[ 2645.830413] 7d58 fe7eefff d4d97d74 e39697c0 c00b1a2b e39697c0 d4d97d74 0000065f 00000000
[ 2645.839141] 7d78 00000000 00000000 e1e39240 e1e61a00 c079adcc fe7ee000 c0811c10 c00a811b
[ 2645.847839] 7d98 c079a574 00001000 e1e61a00 e1e39240 00000000 00000001 d4d97df0 00000000
[ 2645.856536]
[ 2645.856536] FP: 0xe3969740:
[ 2645.861053] 9740 00000001 00000000 00000000 00000000 dead4ead ffffffff ffffffff c0da5e0c
[ 2645.869750] 9760 00000000 00000000 c064a50b 00000000 00008001 00000000 000003e8 000003e8
[ 2645.878448] 9780 000003e8 000003e8 000003ff 00000001 00000000 e1cb5180 00000002 00366000
[ 2645.887145] 97a0 50000aa2 50000aa2 500003a2 00000a0e 00000fa5 00000000 e622a0c0 00000000
[ 2645.895874] 97c0 c12494a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.904571] 97e0 00000000 c1248b00 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.913269] 9800 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.921966] 9820 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.930664]
[ 2645.930664] R0: 0xe3969740:
[ 2645.935180] 9740 00000001 00000000 00000000 00000000 dead4ead ffffffff ffffffff c0da5e0c
[ 2645.943878] 9760 00000000 00000000 c064a50b 00000000 00008001 00000000 000003e8 000003e8
[ 2645.952606] 9780 000003e8 000003e8 000003ff 00000001 00000000 e1cb5180 00000002 00366000
[ 2645.961303] 97a0 50000aa2 50000aa2 500003a2 00000a0e 00000fa5 00000000 e622a0c0 00000000
[ 2645.970001] 97c0 c12494a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.978698] 97e0 00000000 c1248b00 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.987396] 9800 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2645.996124] 9820 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2646.004821]
[ 2646.004821] R1: 0xc1249420:
[ 2646.009338] 9420 00000000 00000000 00000000 ffffffff 00000000 c1249434 c1249434 00000000
[ 2646.018035] 9440 00000000 00000000 00000000 ffffffff 00000001 00100100 00200200 00000000
[ 2646.026733] 9460 00000000 00000000 00000000 ffffffff 00000000 c1249474 c1249474 00000000
[ 2646.035430] 9480 00000080 00000000 0000003f ffffffff 00000001 e6000340 e4b44ac0 00000000
[ 2646.044128] 94a0 00000000 00000000 00000065 ffffffff 00000001 00100100 00200200 00000000
[ 2646.052825] 94c0 00000080 00000000 0000002c ffffffff 00000001 e6000340 e4b674c0 00000000
[ 2646.061553] 94e0 00000a6c e4fe7de0 0000006a ffffffff 00000002 c1246634 c125c614 e3dea348
[ 2646.070251] 9500 00000080 00000000 0000002d ffffffff 00000001 e6000340 e4b67480 00000000
[ 2646.078948]
[ 2646.078948] R3: 0xe6610738:
[ 2646.083465] 0738 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.092163] 0758 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.100891] 0778 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.109588] 0798 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.118286] 07b8 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.126983] 07d8 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.135681] 07f8 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.144409] 0818 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.153106]
[ 2646.153106] R4: 0xfe7edf80:
[ 2646.157623] df80 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.166320] dfa0 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.175018] dfc0 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.183746] dfe0 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.192443] e000 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.201141] e020 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.209838] e040 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.218536] e060 ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.227264]
[ 2646.227264] R5: 0xe661073c:
[ 2646.231781] 073c ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.240478] 075c ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.249176] 077c ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.257873] 079c ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.266571] 07bc ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.275299] 07dc ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.283996] 07fc ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.292694] 081c ******** ******** ******** ******** ******** ******** ******** ********
[ 2646.301391]
[ 2646.301391] R6: 0xd4d97cf4:
[ 2646.305908] 7cf4 c12494a0 00000000 e66107b8 fe7ee000 e66107bc d4d97d74 c079e568 c0d9a300
[ 2646.314605] 7d14 0000065f beffffff e39697c0 00000000 d4d97d38 c00b1a2b c00b195e 800f0133
[ 2646.323333] 7d34 ffffffff c0007f98 fe7ef000 fe7ef000 fe7ef000 c0007f98 fe7ef000 e39697c0
[ 2646.332031] 7d54 0000065f fe7eefff d4d97d74 e39697c0 c00b1a2b e39697c0 d4d97d74 0000065f
[ 2646.340728] 7d74 00000000 00000000 00000000 e1e39240 e1e61a00 c079adcc fe7ee000 c0811c10
[ 2646.349426] 7d94 c00a811b c079a574 00001000 e1e61a00 e1e39240 00000000 00000001 d4d97df0
[ 2646.358123] 7db4 00000000 d4d97df0 e39697c0 d4d97df4 c00a86f1 00000001 c00a801d e1e39240
[ 2646.366851] 7dd4 00000001 00000001 00000000 00000800 c079a574 c07d2524 e1e61a00 00000000
[ 2646.375549]
[ 2646.375549] R7: 0xc079e4e8:
[ 2646.380065] e4e8 c03939f2 c046c914 c0393af0 c046c91c c0393b00 c046c924 c0456a86 c046c0f4
[ 2646.388763] e508 c0456a8c c046c100 c0456a9e c046c10c c045b370 c046c5f4 c045b396 c046c5fc
[ 2646.397460] e528 c045b3d0 c046c604 c045b410 c046c60c c045b444 c046c614 c04684b2 c046bed4
[ 2646.406158] e548 c04684ba c046bed4 c04684ca c046bed4 48020000 fa020000 00000014 00000001
[ 2646.414886] e568 80000000 000000c0 00000000 c0770000 00000002 00200000 00000000 00000000
[ 2646.423583] e588 00000000 00000000 00000078 00000078 00000078 00000000 c0474264 00000000
[ 2646.432281] e5a8 00000400 00400000 00000000 00000000 00000000 c079e5bc c079e5bc 00000000
[ 2646.440979] e5c8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2646.449676]
[ 2646.449707] R8: 0xc0d9a280:
[ 2646.454193] a280 c0d96440 c1495640 bfe03000 c0d97380 c0d97380 c146c340 bfe02000 c0d96100
[ 2646.462921] a2a0 c0d96100 c14dc900 bfe01000 c0d9a16c c0d97880 00000000 00000000 00000000
[ 2646.471618] a2c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2646.480316] a2e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2646.489013] a300 c0dc5000 00000000 00000000 00000000 ef800000 0003fe00 00040000 00000000
[ 2646.497711] a320 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2646.506408] a340 00000000 00000000 dead4ead ffffffff ffffffff c0d9a380 00000000 00000000
[ 2646.515136] a360 c0669d88 00000000 0007569a 00000000 c07e57b8 c0793cf0 c0770c24 00000000
[ 2646.523834] Process powertop (pid: 6375, stack limit = 0xd4d962f8)
[ 2646.530364] Stack: (0xd4d97d38 to 0xd4d98000)
[ 2646.534973] 7d20: c0007f98 fe7ef000
[ 2646.543609] 7d40: fe7ef000 fe7ef000 c0007f98 fe7ef000 e39697c0 0000065f fe7eefff d4d97d74
[ 2646.552246] 7d60: e39697c0 c00b1a2b e39697c0 d4d97d74 0000065f 00000000 00000000 00000000
[ 2646.560882] 7d80: e1e39240 e1e61a00 c079adcc fe7ee000 c0811c10 c00a811b c079a574 00001000
[ 2646.569549] 7da0: e1e61a00 e1e39240 00000000 00000001 d4d97df0 00000000 d4d97df0 e39697c0
[ 2646.578186] 7dc0: d4d97df4 c00a86f1 00000001 c00a801d e1e39240 00000001 00000001 00000000
[ 2646.586822] 7de0: 00000800 c079a574 c07d2524 e1e61a00 00000000 00000001 a00f0113 e1e39240
[ 2646.595458] 7e00: 00000800 a00f0113 00000004 0000000e c079b66c 00000070 00000000 c00a89a9
[ 2646.604125] 7e20: d4d96000 d4c694c0 c07cfefc c15ea170 c07cff08 c07cd498 00000004 c0d93498
[ 2646.612762] 7e40: 00000000 c079b6a8 c079adcc c079a574 00000000 c008a1a7 e4add000 c07cd498
[ 2646.621398] 7e60: 00000037 c07cfefc 00000001 00000000 00000000 c008a289 c0089529 c07cd498
[ 2646.630035] 7e80: e4add000 c008a2c9 00000000 00000484 00000000 e4add000 00000000 c008f0e3
[ 2646.638702] 7ea0: e4add000 c07d0c94 c07d0b84 c0093bf1 00000001 00000000 c0093b78 e4add000
[ 2646.647338] 7ec0: 00000000 c07d0c94 00000000 e4add000 d4d97f28 e4add140 00000000 c0093e0d
[ 2646.655975] 7ee0: 00000000 00000000 ffffffff 00000000 00000000 00000000 00000000 00000000
[ 2646.664611] 7f00: 00000001 c0094319 00000000 00000000 00000000 e4ca8d28 00000011 00000002
[ 2646.673278] 7f20: 00000000 00000010 00000002 00000040 00000037 00000000 00000001 00000000
[ 2646.681915] 7f40: 00000484 00000000 00000007 00000000 00000301 00000000 00000000 00000000
[ 2646.690551] 7f60: 00000000 00000000 00000000 00000000 00000000 00000000 00020000 00000000
[ 2646.699188] 7f80: 00000024 00000000 00000002 00000040 0000016c c000c324 d4d96000 00000000
[ 2646.707824] 7fa0: 00000001 c000c101 00000000 00000002 beca9600 ffffffff 00000000 ffffffff
[ 2646.716491] 7fc0: 00000000 00000002 00000040 0000016c 00050570 00000001 00000000 00000001
[ 2646.725128] 7fe0: beca95f8 beca95e8 00023003 b6d6d8f0 800f0110 beca9600 00000000 00000000
[ 2646.733795] [<c00b195e>] (vmap_pte_range+0x4e/0xc8) from [<c00b1a2b>] (vmap_page_range_noflush+0x53/0x70)
[ 2646.743896] [<c00b1a2b>] (vmap_page_range_noflush+0x53/0x70) from [<c00a811b>] (pcpu_map_pages+0x57/0x11c)
[ 2646.754119] [<c00a811b>] (pcpu_map_pages+0x57/0x11c) from [<c00a86f1>] (pcpu_populate_chunk+0x115/0x254)
[ 2646.764129] [<c00a86f1>] (pcpu_populate_chunk+0x115/0x254) from [<c00a89a9>] (pcpu_alloc+0x179/0x23c)
[ 2646.773895] [<c00a89a9>] (pcpu_alloc+0x179/0x23c) from [<c008a1a7>] (perf_trace_event_reg+0x67/0xd0)
[ 2646.783569] [<c008a1a7>] (perf_trace_event_reg+0x67/0xd0) from [<c008a289>] (perf_trace_event_init+0x79/0x84)
[ 2646.794036] [<c008a289>] (perf_trace_event_init+0x79/0x84) from [<c008a2c9>] (perf_trace_init+0x35/0x5c)
[ 2646.804077] [<c008a2c9>] (perf_trace_init+0x35/0x5c) from [<c008f0e3>] (perf_tp_event_init+0x23/0x3c)
[ 2646.813842] [<c008f0e3>] (perf_tp_event_init+0x23/0x3c) from [<c0093bf1>] (perf_init_event+0x79/0xcc)
[ 2646.823577] [<c0093bf1>] (perf_init_event+0x79/0xcc) from [<c0093e0d>] (perf_event_alloc.part.44+0x1c9/0x364)
[ 2646.834075] [<c0093e0d>] (perf_event_alloc.part.44+0x1c9/0x364) from [<c0094319>] (sys_perf_event_open+0xf9/0x3a0)
[ 2646.845031] [<c0094319>] (sys_perf_event_open+0xf9/0x3a0) from [<c000c101>] (ret_fast_syscall+0x1/0x52)
[ 2646.854949] Code: 980c 3504 f850 1022 (681a) b132
[ 2646.861938] ---[ end trace 0da3e76b87a358c3 ]---
Segmentation fault
root@linaro-ubuntu-desktop:~/lava-test#
####################################################################

Revision history for this message
Botao (botao-sun) wrote :

For Panda 4430 board, on hardware pack:

http://snapshots.linaro.org/precise/hwpacks/lt-panda-x11-base/175/hwpack_linaro-lt-panda-x11-base_20120714-175_armhf_supported.tar.gz

with ubuntu rootfs image:

http://snapshots.linaro.org/precise/images/ubuntu-desktop/287/linaro-precise-ubuntu-desktop-20120714-287.tar.gz

"powertop" can run successfully, but when press Esc key to exit, there is a "Segmentation fault (core dumped)" occurred.

"powerdebug" works well.

Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :

Same behavior on Panda 4460 board.

Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :
Revision history for this message
Botao (botao-sun) wrote :

Same behaviour as comment #1 observed on Panda 4460 board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/219/lt-panda-x11-base-precise_ubuntu-desktop_20120803-219.img.gz

Revision history for this message
Botao (botao-sun) wrote :

For Panda 4430 board, observed same behaviour as comment #1 on Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/219/lt-panda-x11-base-precise_ubuntu-desktop_20120803-219.img.gz

Revision history for this message
Botao (botao-sun) wrote :

Same behaviour as comment #1 observed on Panda 4460 board with Linaro ubuntu pre-built image:

http://snapshots.linaro.org/precise/pre-built/lt-panda-x11-base/256/lt-panda-x11-base-precise_ubuntu-desktop_20120819-256.img.gz

Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Changed in linaro-ubuntu:
status: New → Fix Committed
importance: Undecided → Critical
importance: Critical → High
assignee: nobody → Ricardo Salveti (rsalveti)
milestone: none → 12.08
Revision history for this message
Botao (botao-sun) wrote :

@Ricardo, After powertop launched, it says "press ESC to exit", but it doesn't work, it can't exit to the console with prompt symbol "#". Therefore, I have to use "Ctrl + c" to terminate it, then the "Segmentation fault" shows in console.

Revision history for this message
Botao (botao-sun) wrote :

Now the "Segmentation fault" error has gone with PowerTop 2.1 on Panda 4460 board.

Observed on Linaro ubuntu pre-built image:

http://releases.linaro.org/12.08/.ubuntu/leb-panda/lt-panda-x11-base_20120826-270-ubuntu-desktop.img.gz

Changed in linaro-ubuntu:
status: Fix Committed → Fix Released
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.