<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4985</bug_id>
          
          <creation_ts>2013-08-06 08:50:31 +0000</creation_ts>
          <short_desc>do smart --help command, sometimes causes a kernel panic</short_desc>
          <delta_ts>2014-01-15 02:04:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-yocto</component>
          <version>1.5</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ning Zhang">ning.zhang</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35401</commentid>
    <comment_count>0</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-08-06 08:50:31 +0000</bug_when>
    <thetext>Poky: master:9de0ad47462c13ac4a2d73e12e92be6c1b4e0415

Steps:
1. Download latest beagleboard from autobuilder.yoctoproject.org/pub/nightly/20130731-1, and use it bootup a beagleboard xm board

2. Create below test script on target, named as test.sh

#! /bin/bash
SMART=smart

COMMANDS=&quot;update install reinstall upgrade remove check fix download clean \
        search query newer info stats \
        config channel priority mirror flag&quot;

for i in $COMMANDS
do
        sleep 1s
        $SMART $i --help
        if [ $? -ne 0 ]; then
                echo &quot;$SMART $i --help run failed&quot;
                $SMART $i --help 2&gt;&amp;1
                RET=1
        fi
done

3. run this script 10 times. 

for i in $(seq 1 10);do echo $i;./test.sh &gt; aaa$i.log; done



============My test log======================= 
root@beagleboard:~# for i in $(seq 1 10);do echo $i;./test.sh &gt; aaa$i.log; done
1
2
./test.sh: line 8:   611 Segmentation fault      $SMART $i --help
3
Traceback (most recent call last):
  File &quot;/usr/bin/smart&quot;, line 35, in &lt;module&gt;
    import pyexpat
ImportError: /usr/lib/python2.7/lib-dynload/pyexpat.so: file too short
4
5
6
7
./test.sh: line 8:   830 Segmentation fault      $SMART $i --help
8
./test.sh: line 8:   872 Segmentation fault      $SMART $i --help
9
10


2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35408</commentid>
    <comment_count>1</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-08-06 10:02:07 +0000</bug_when>
    <thetext>I retest this on a beagleboard c4 target, it has the same issue.

See test log:

onet@beagleboard:~# for i in $(seq 1 10); do echo $i; ./test.sh &gt; test$i.log ; do
1
2
3
Unable to handle kernel paging request at virtual address ffffffff
pgd = cd984000
[ffffffff] *pgd=8f0fe821, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#2] ARM
Modules linked in: xt_connmark iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle iptable_filter ip_tables x_tables nfnetlink
CPU: 0    Tainted: G      D       (3.4.52-yocto-standard #1)
PC is at __d_lookup_rcu+0x114/0x164
LR is at do_lookup+0x50/0x2d8
pc : [&lt;c011eac0&gt;]    lr : [&lt;c0114b28&gt;]    psr: 600f0013
sp : cd8f5d2c  ip : 00000062  fp : cd8f5d54
r10: ce4ca005  r9 : 00000003  r8 : cd8f5dc4
r7 : ce9bf580  r6 : 00000002  r5 : 002697fa  r4 : ce9d3388
r3 : ffffffff  r2 : c0114b28  r1 : ce9d33a6  r0 : c011eab0
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8d984019  DAC: 00000015
Process python (pid: 1699, stack limit = 0xcd8f42f0)
Stack: (0xcd8f5d2c to 0xcd8f6000)
5d20:                            cd8f5db4 cd8f5dbc ce4ca008 ce9bf580 cd8f5db4
5d40: ce49c010 cd8f5e80 cd8f5d94 cd8f5d58 c0114b28 c011e9b8 00000007 cd8f5dc4
5d60: cd8f5d7c 00000002 c02c751c cd8f5dbc 0000006c ce4ca008 cd8f4000 cd8f5db4
5d80: 00000000 cd8f5e80 cd8f5dfc cd8f5d98 c0114f04 c0114ae4 cec03e00 c0c5e570
5da0: c0b195c0 00000001 ce4ca009 b6f4a000 cd8f5de4 ce49c010 ce9bf580 ce9ce258
5dc0: cd8f5dfc 002697fa 00000003 ce4ca005 00000000 00000041 ce4ca000 ce4ca000
5de0: ffffff9c cd8f4000 cd8f5e80 00000000 cd8f5e5c cd8f5e00 c01156f4 c0114dbc
5e00: cd8f5e18 cd8f5e10 c00d24e0 c00d2084 c0b195c0 00000001 00000000 c09194a4
5e20: 00000001 c01129a4 cd8f5e84 c00d20a8 c08ab7d0 00000001 cd8f5e80 ce4ca000
5e40: ffffff9c ffffff9c cd8f4000 00000000 cd8f5e7c cd8f5e60 c0115dc8 c011569c
5e60: ce4ca000 00000001 cd8f5e80 cd8f5f20 cd8f5f04 cd8f5e80 c0117554 c0115da8
5e80: ce49c010 ce9bf580 c00d22b4 c00d2230 cd8f5eac ce49c010 ce9b1f00 ce9ce258
5ea0: 00000051 00000002 00000001 00000000 cd8f5ebc 00000000 b6f4a000 00000001
5ec0: cd88dc00 00000000 cd8e13c8 bf000000 00000000 00000000 00000400 cd877000
5ee0: cd88dc00 bea2b020 cd8f5f40 44acc1a8 000000c3 c000e468 cd8f5f1c cd8f5f08
5f00: c01175ac c01174fc 00000000 cd8f5f18 cd8f5f3c cd8f5f20 c010d43c c0117594
5f20: cd8f5f6c cd8f5f30 bea2b020 000d8530 cd8f5fa4 cd8f5f40 c010d9c8 c010d408
5f40: b6f4a000 c000e468 cd8f4000 00000000 cd8f5f6c cd8f5f60 c005b680 c02fee88
5f60: cd8f5f8c cd8f5f70 c00ee4a8 c005b674 00001000 b6f4a000 00000000 0000005b
5f80: cd8f5fa4 cd8f5f90 c00ef818 c00ee45c 000fbe28 00000000 00000000 cd8f5fa8
5fa0: c000e200 c010d9a0 00000000 000d8530 bea2d12c bea2b020 bea2b020 00000002
5fc0: 00000000 000d8530 44acc1a8 000000c3 bea2d12c bea2b020 00000030 00000001
5fe0: 44acd100 bea2afd4 44a60940 45d503ac a00f0010 bea2d12c 00000000 00000000
[&lt;c011eac0&gt;] (__d_lookup_rcu+0x114/0x164) from [&lt;c0114b28&gt;] (do_lookup+0x50/0x2d8)
[&lt;c0114b28&gt;] (do_lookup+0x50/0x2d8) from [&lt;c0114f04&gt;] (link_path_walk+0x154/0x818)
[&lt;c0114f04&gt;] (link_path_walk+0x154/0x818) from [&lt;c01156f4&gt;] (path_lookupat+0x64/0x70c)
[&lt;c01156f4&gt;] (path_lookupat+0x64/0x70c) from [&lt;c0115dc8&gt;] (do_path_lookup+0x2c/0x6c)
[&lt;c0115dc8&gt;] (do_path_lookup+0x2c/0x6c) from [&lt;c0117554&gt;] (user_path_at_empty+0x64/0x98)
[&lt;c0117554&gt;] (user_path_at_empty+0x64/0x98) from [&lt;c01175ac&gt;] (user_path_at+0x24/0x2c)
[&lt;c01175ac&gt;] (user_path_at+0x24/0x2c) from [&lt;c010d43c&gt;] (vfs_fstatat+0x40/0x78)
[&lt;c010d43c&gt;] (vfs_fstatat+0x40/0x78) from [&lt;c010d9c8&gt;] (sys_stat64+0x34/0x50)
[&lt;c010d9c8&gt;] (sys_stat64+0x34/0x50) from [&lt;c000e200&gt;] (ret_fast_syscall+0x0/0x30)
Code: e51b203c e51b0038 e5836000 e51b3030 (e5832000) 
---[ end trace afa6248f98ef0d40 ]---
./test.sh: line 8:  1699 Segmentation fault      $SMART $i --help
4
5
6
7
Unable to handle kernel paging request at virtual address ffffffff
pgd = cd984000
[ffffffff] *pgd=8f0fe821, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#3] ARM
Modules linked in: xt_connmark iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle iptable_filter ip_tables x_tables nfnetlink
CPU: 0    Tainted: G      D       (3.4.52-yocto-standard #1)
PC is at __d_lookup_rcu+0x114/0x164
LR is at do_lookup+0x50/0x2d8
pc : [&lt;c011eac0&gt;]    lr : [&lt;c0114b28&gt;]    psr: 600f0013
sp : cd989d2c  ip : 00000037  fp : cd989d54
r10: ce4cf009  r9 : 00000009  r8 : cd989dc4
r7 : ce9d3380  r6 : 00000002  r5 : d8122fa3  r4 : cc859888
r3 : ffffffff  r2 : cc8527b0  r1 : cc8598ac  r0 : cc859880
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8d984019  DAC: 00000015
Process python (pid: 1852, stack limit = 0xcd9882f0)
Stack: (0xcd989d2c to 0xcd98a000)
9d20:                            cd989db4 cd989dbc ce4cf012 ce9d3380 cd989db4
9d40: ce49c010 cd989e80 cd989d94 cd989d58 c0114b28 c011e9b8 00000007 cd989dc4
9d60: cd989d7c 00000002 c02c751c cd989dbc 00000070 ce4cf012 cd988000 cd989db4
9d80: 00000000 cd989e80 cd989dfc cd989d98 c0114f04 c0114ae4 cec03e00 c0c5f328
9da0: c0b1cca0 00000001 ce4cf013 b6fb8000 cd989de4 ce49c010 ce9d3380 ce9c9980
9dc0: cd989dfc d8122fa3 00000009 ce4cf009 00000000 00000041 ce4cf000 ce4cf000
9de0: ffffff9c cd988000 cd989e80 00000000 cd989e5c cd989e00 c01156f4 c0114dbc
9e00: cd989e18 cd989e10 c00d24e0 c00d2084 c0b1cca0 00000001 00000000 c09194a4
9e20: 00000001 c01129a4 cd989e84 c00d20a8 c08ab7d0 00000001 cd989e80 ce4cf000
9e40: ffffff9c ffffff9c cd988000 00000000 cd989e7c cd989e60 c0115dc8 c011569c
9e60: ce4cf000 00000001 cd989e80 cd989f20 cd989f04 cd989e80 c0117554 c0115da8
9e80: ce49c010 ce9d3380 c00d22b4 c00d2230 cd989eac ce49c010 ce9b1f00 ce9c9980
9ea0: 00000051 00000002 00000001 00000000 cd989ebc 00000000 b6fb8000 c010a5b0
9ec0: cd88d900 00000000 cd804738 bf000000 00000000 00000000 00000400 cd8f2000
9ee0: cd88d900 bed9f7a8 cd989f40 44acc1a8 000000c3 c000e468 cd989f1c cd989f08
9f00: c01175ac c01174fc 00000000 ce49c010 cd989f3c cd989f20 c010d43c c0117594
9f20: cd989f64 cd989f30 bed9f7a8 000d8530 cd989fa4 cd989f40 c010d9c8 c010d408
9f40: cd821c00 00000000 00000006 c000e468 cd988000 00000000 cd989f84 cd989f68
9f60: c0107544 c010a3d4 00000004 0000000f 00000000 00000003 cd989fa4 cd989f88
9f80: c0107620 c01074dc 45cfc1e4 0002da80 b6fb6000 00000000 00000000 cd989fa8
9fa0: c000e200 c010d9a0 00000000 000d8530 beda18b4 bed9f7a8 bed9f7a8 00000005
9fc0: 00000000 000d8530 44acc1a8 000000c3 beda18b4 bed9f7a8 0000002d 00000001
9fe0: 44acd100 bed9f75c 44a60940 45d503ac a00f0010 beda18b4 00000000 00000000
[&lt;c011eac0&gt;] (__d_lookup_rcu+0x114/0x164) from [&lt;c0114b28&gt;] (do_lookup+0x50/0x2d8)
[&lt;c0114b28&gt;] (do_lookup+0x50/0x2d8) from [&lt;c0114f04&gt;] (link_path_walk+0x154/0x818)
[&lt;c0114f04&gt;] (link_path_walk+0x154/0x818) from [&lt;c01156f4&gt;] (path_lookupat+0x64/0x70c)
[&lt;c01156f4&gt;] (path_lookupat+0x64/0x70c) from [&lt;c0115dc8&gt;] (do_path_lookup+0x2c/0x6c)
[&lt;c0115dc8&gt;] (do_path_lookup+0x2c/0x6c) from [&lt;c0117554&gt;] (user_path_at_empty+0x64/0x98)
[&lt;c0117554&gt;] (user_path_at_empty+0x64/0x98) from [&lt;c01175ac&gt;] (user_path_at+0x24/0x2c)
[&lt;c01175ac&gt;] (user_path_at+0x24/0x2c) from [&lt;c010d43c&gt;] (vfs_fstatat+0x40/0x78)
[&lt;c010d43c&gt;] (vfs_fstatat+0x40/0x78) from [&lt;c010d9c8&gt;] (sys_stat64+0x34/0x50)
[&lt;c010d9c8&gt;] (sys_stat64+0x34/0x50) from [&lt;c000e200&gt;] (ret_fast_syscall+0x0/0x30)
Code: e51b203c e51b0038 e5836000 e51b3030 (e5832000) 
---[ end trace afa6248f98ef0d41 ]---
./test.sh: line 8:  1852 Segmentation fault      $SMART $i --help
Unable to handle kernel paging request at virtual address ffffffff
pgd = cd984000
[ffffffff] *pgd=8f0fe821, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#4] ARM
Modules linked in: xt_connmark iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack iptable_mangle iptable_filter ip_tables x_tables nfnetlink
CPU: 0    Tainted: G      D       (3.4.52-yocto-standard #1)
PC is at __d_lookup_rcu+0x114/0x164
LR is at do_lookup+0x50/0x2d8
pc : [&lt;c011eac0&gt;]    lr : [&lt;c0114b28&gt;]    psr: 600f0013
sp : ce407da4  ip : 00000037  fp : ce407dcc
r10: ce4cb009  r9 : 00000009  r8 : ce407e3c
r7 : ce9d3380  r6 : 00000002  r5 : d8122fa3  r4 : cc859888
r3 : ffffffff  r2 : cc8527b0  r1 : cc8598ac  r0 : cc859880
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8d984019  DAC: 00000015
Process python (pid: 1869, stack limit = 0xce4062f0)
Stack: (0xce407da4 to 0xce408000)
7da0:          ce407e2c ce407e34 ce4cb012 ce9d3380 ce407e2c ce49c010 ce407ed8
7dc0: ce407e0c ce407dd0 c0114b28 c011e9b8 00000007 ce407e3c ce407df4 00000002
7de0: c02c751c ce407e34 00000070 ce4cb012 ce406000 ce407e2c 00000000 ce407ed8
7e00: ce407e74 ce407e10 c0114f04 c0114ae4 c0114ac0 c0122d4c cc8c2100 c00ff990
7e20: ce4cb013 ce407e30 c08f1000 ce49c010 ce9d3380 ce9c9980 ce407e74 d8122fa3
7e40: 00000009 ce4cb009 c010a6f4 ce407f60 00000000 ce4cb000 ffffff9c 00000001
7e60: ce406000 ce407ed8 ce407ecc ce407e78 c01169e0 c0114dbc ce407e8c c00ff9e4
7e80: ce49c010 cc8c0f80 d22a33a8 00000000 ce49c010 cc8c2100 ce9b1f00 cc886b40
7ea0: 00000001 ce407f60 00000001 ce4cb000 ffffff9c 00000001 ce406000 00000000
7ec0: ce407f54 ce407ed0 c01175f0 c0116940 00000041 00000817 ce49c010 ce9d3380
7ee0: b17d354a 00000009 ce4cb027 ce49c010 ce9b1f00 ce9c9980 00000051 00000002
7f00: 00000001 00000000 00000000 00000005 ce6db300 cd8f93c0 00000000 00020000
7f20: ce407f54 ce407f30 c012274c 00020000 00000000 ce6d9480 00020000 ce4cb000
7f40: 00000005 ffffff9c ce407f94 ce407f58 c01085e8 c01175c0 ce407f84 ce407f68
7f60: 00020000 c0100000 00000024 00000100 00032688 44a976ee 00000008 00000005
7f80: c000e468 ce406000 ce407fa4 ce407f98 c01086a8 c01084f8 00000000 ce407fa8
7fa0: c000e200 c0108688 00032688 44a976ee becd4f3c 00020000 000001b6 000001b6
7fc0: 00032688 44a976ee 00000008 00000005 00000000 00014a4c 44affac8 becd2dc4
7fe0: 00000000 becd2d64 45cfd758 45d50fdc 600f0010 becd4f3c 00000000 00000000
[&lt;c011eac0&gt;] (__d_lookup_rcu+0x114/0x164) from [&lt;c0114b28&gt;] (do_lookup+0x50/0x2d8)
[&lt;c0114b28&gt;] (do_lookup+0x50/0x2d8) from [&lt;c0114f04&gt;] (link_path_walk+0x154/0x818)
[&lt;c0114f04&gt;] (link_path_walk+0x154/0x818) from [&lt;c01169e0&gt;] (path_openat+0xac/0x3ac)
[&lt;c01169e0&gt;] (path_openat+0xac/0x3ac) from [&lt;c01175f0&gt;] (do_filp_open+0x3c/0x90)
[&lt;c01175f0&gt;] (do_filp_open+0x3c/0x90) from [&lt;c01085e8&gt;] (do_sys_open+0xfc/0x190)
[&lt;c01085e8&gt;] (do_sys_open+0xfc/0x190) from [&lt;c01086a8&gt;] (sys_open+0x2c/0x30)
[&lt;c01086a8&gt;] (sys_open+0x2c/0x30) from [&lt;c000e200&gt;] (ret_fast_syscall+0x0/0x30)
Code: e51b203c e51b0038 e5836000 e51b3030 (e5832000) 
---[ end trace afa6248f98ef0d42 ]---
./test.sh: line 8:  1869 Segmentation fault      $SMART $i --help
8
9
10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35439</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-07 02:15:37 +0000</bug_when>
    <thetext>What about other hardware or Qemu targets, is this beagleboard specific?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35443</commentid>
    <comment_count>3</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-08-07 06:31:15 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; What about other hardware or Qemu targets, is this beagleboard specific?

Hi, 

I do the same test in qemuarm and 8315E, with 20130731-1 images, no this issue.
I also test beagleboard c4 with 20130625-2 image, no this issue neither.

So i think this is a beagleboard specific issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35533</commentid>
    <comment_count>4</comment_count>
    <who name="Ning Zhang">ning.zhang</who>
    <bug_when>2013-08-09 09:42:31 +0000</bug_when>
    <thetext>I&apos;ve done this test with below scenarios:

1. test 20130731-1 images, kernel is 3.4.52, poky is 9de0ad47462c13ac4a2d73e12e92be6c1b4e0415, test failed.
2. test 20130618-2 images, kernel is 3.4.36, poky is 590010a6525b0e1bc1de73e794764e23404591df, test pass.
3. Use scenario 1 image, downgrade kernel version with scenario 2(cp uImage, MLO files and /lib/modules/ files), which means use 3.4.36 kernel and 3.4.52 rootfs, test pass. 
4. Use scenario 2 image, upgrade kernel version with scenario 1(cp uImage, MLO files and /lib/modules/ files), which means use 3.4.52 kernel and 3.4.36 rootfs, test failed.

I tested all above on a same beagleboard xm target.

So we guess this is not a hardware issue, it is the 3.4.52 kernel issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35544</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-08-09 12:49:42 +0000</bug_when>
    <thetext>This is still related to the particular board and it&apos;s storage. if this was a general
3.4.52 issue, all boards would be seeing the problem.

I&apos;m going to bump 3.4 to 3.4.57 shortly, so it will be worth retesting it there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36643</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-09-13 04:24:27 +0000</bug_when>
    <thetext>This should be retried on 3.10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38603</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2013-11-06 16:33:00 +0000</bug_when>
    <thetext>Has this been retested against 3.10, or are the remaining issues with the beagleboard support preventing
that test ? (those other issues should be solved soon).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39819</commentid>
    <comment_count>8</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2014-01-15 02:04:39 +0000</bug_when>
    <thetext>I haven&apos;t reproduced this, or heard of it on 3.10, so I&apos;m closing
the bug as &quot;wontfix&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>