<?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>4469</bug_id>
          
          <creation_ts>2013-05-08 22:20:21 +0000</creation_ts>
          <short_desc>Shutdown fails for qemuimagetest on danny.</short_desc>
          <delta_ts>2013-08-26 17:42:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://autobuilder.yoctoproject.org:8011/builders/nightly-qa-extras/builds/8/steps/Running%20Sanity%20Tests/logs/stdio</bug_file_loc>
          <status_whiteboard>(autobuilder)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Beth Flanagan">elizabeth.flanagan</reporter>
          <assigned_to name="Beth Flanagan">elizabeth.flanagan</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>dvhart</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</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>32969</commentid>
    <comment_count>0</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2013-05-08 22:20:21 +0000</bug_when>
    <thetext>Seeing this on the danny branch with no rhyme or reason:

http://autobuilder.yoctoproject.org:8011/builders/nightly-qa-extras/builds/8/steps/Running%20Sanity%20Tests/logs/stdio

| spawn ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@192.168.7.2 /sbin/poweroff
| Warning: Permanently added &apos;192.168.7.2&apos; (RSA) to the list of known hosts.
| root@192.168.7.2&apos;s password:
| 	Test_Info: Shutdown Test FAIL
| killing 15188
| killing 14052
| NOTE: 	Test Result for qemux86-64 core-image-sato
| NOTE: 	Testcase       PASS           FAIL           NORESULT
| NOTE: 	SSH            1              0              0
| NOTE: 	SCP            1              0              0
| NOTE: 	zypper_help    1              0              0
| NOTE: 	zypper_search  1              0              0
| NOTE: 	rpm_query      1              0              0
| NOTE: 	connman        1              0              0
| NOTE: 	dmesg          1              0              0
| NOTE: 	shutdown       0              1              0
| DEBUG: Python function do_qemuimagetest_standalone finished
| ERROR: Function failed: Some testcases fail, pls. check test result and test log!!!


Not sure if this is our race condition popping up in danny.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32977</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-05-09 11:53:19 +0000</bug_when>
    <thetext>Looks like https://bugzilla.yoctoproject.org/show_bug.cgi?id=3806 isn&apos;t resolved then.

This is on ab05, which I can&apos;t ssh into for some reason.

CC&apos;ing Darren.  Both qemux86 and x86-64 in this build are without PV.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32988</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-05-09 13:30:59 +0000</bug_when>
    <thetext>Screenshot of a shutdown crash in a qemux86 without PV enabled:

http://i.imgur.com/8o5uQsl.png

Working on replicating with a console log now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32998</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-05-09 14:41:24 +0000</bug_when>
    <thetext>Ross, interesting. Can you get me the addr2line of that kernel again?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33003</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-05-09 14:52:32 +0000</bug_when>
    <thetext>Ross, check with Halstead to get access to AB05, and check for the build is actually correct with paravirt disabled and that we are not building for sstate somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33007</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-05-09 15:55:22 +0000</bug_when>
    <thetext>addr2line says:

native_nmi_stop_other_cpus()
linux/arch/x86/kernel/smp.c:204

grepping the config in the generated kernel package:

# CONFIG_PARAVIRT_GUEST is not set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33008</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-05-09 16:11:07 +0000</bug_when>
    <thetext>Full log:

Shutdown: hda
ACPI: Preparing to enter system sleep state S5
Disabling non-boot CPUs ...
Power down.
general protection fault: fffa [#1] PREEMPT SMP 
Modules linked in: iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables x_tables uvesafb cfbfillrect cfbimgblt cfbcopyarea

Pid: 1057, comm: halt Not tainted 3.4.11-yocto-standard #3 Bochs Bochs
EIP: 0060:[&lt;c101c97a&gt;] EFLAGS: 00000246 CPU: 0
EIP is at native_nmi_stop_other_cpus+0xca/0xe0
EAX: 00000000 EBX: 00000246 ECX: fffff000 EDX: 000000ff
ESI: 00000001 EDI: 4ad85ff4 EBP: c7101e78 ESP: c7101e68
 DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
CR0: 8005003b CR2: 08050564 CR3: 071ec000 CR4: 00000690
DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
DR6: 00000000 DR7: 00000000
Process halt (pid: 1057, ti=c7100000 task=c70b0c60 task.ti=c7100000)
Stack:
 c7101e70 00000000 4321fedc 4ad85ff4 c7101e80 c101bdfc c7101e88 c101bce6
 c7101e90 c101bf4e c7101e9c c1041715 c1832d14 c7101fac c10420a1 c7101eb0
 c105a43b 00000001 c7101ebc c16908d3 c70b0c01 c7101ec4 c168d667 c7101edc
Call Trace:
 [&lt;c101bdfc&gt;] native_machine_shutdown+0x5c/0x90
 [&lt;c101bce6&gt;] native_machine_power_off+0x36/0x50
 [&lt;c101bf4e&gt;] machine_power_off+0xe/0x10
 [&lt;c1041715&gt;] kernel_power_off+0x65/0x70
 [&lt;c10420a1&gt;] sys_reboot+0xf1/0x1b0
 [&lt;c105a43b&gt;] ? get_parent_ip+0xb/0x40
 [&lt;c16908d3&gt;] ? sub_preempt_count+0x43/0xb0
 [&lt;c168d667&gt;] ? _raw_spin_unlock_irqrestore+0x17/0x40
 [&lt;c109ae14&gt;] ? rcu_report_unblock_qs_rnp+0x24/0x80
 [&lt;c109b008&gt;] ? rcu_read_unlock_special+0x198/0x1a0
 [&lt;c109b061&gt;] ? __rcu_read_unlock+0x51/0x60
 [&lt;c1040c9f&gt;] ? sys_kill+0x7f/0x180
 [&lt;c107428d&gt;] ? clockevents_program_event+0x9d/0x140
 [&lt;c1050a1c&gt;] ? hrtimer_interrupt+0x16c/0x280
 [&lt;c110225d&gt;] ? do_sys_open+0x15d/0x1c0
 [&lt;c110225d&gt;] ? do_sys_open+0x15d/0x1c0
 [&lt;c105a43b&gt;] ? get_parent_ip+0xb/0x40
 [&lt;c16908d3&gt;] ? sub_preempt_count+0x43/0xb0
 [&lt;c1034f65&gt;] ? irq_exit+0x65/0xa0
 [&lt;c1693fb9&gt;] ? smp_apic_timer_interrupt+0x59/0x85
 [&lt;c168dd59&gt;] syscall_call+0x7/0xb
Code: 47 ff 74 1d 89 c7 b8 c7 10 00 00 e8 71 1b 2d 00 0f b6 03 f3 0f b8 c0 90 83 f8 01 77 dc 8d 74 26 00 9c 5b fa e8 e8 10 00 00 53 9d &lt;8b&gt; 5d f4 8b 75 f8 8b 7d fc 89 ec 5d c3 89 f6 8d bc 27 00 00 00 
EIP: [&lt;c101c97a&gt;] native_nmi_stop_other_cpus+0xca/0xe0 SS:ESP 0068:c7101e68
---[ end trace c03ab0e63e9de447 ]---</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33042</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-05-10 13:12:31 +0000</bug_when>
    <thetext>And a trace from qemux86-64:

Power down.
general protection fault: fff2 [#1] PREEMPT SMP 
CPU 0 
Modules linked in: iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ip_tables x_tables uvesafb cfbfillrect cfbimgblt cfbcopyarea

Pid: 1076, comm: halt Not tainted 3.4.11-yocto-standard #1 Bochs Bochs
RIP: 0010:[&lt;ffffffff8101b0ea&gt;]  [&lt;ffffffff8101b0ea&gt;] native_nmi_stop_other_cpus+0xea/0x100
RSP: 0018:ffff880006d1bdd8  EFLAGS: 00000246
RAX: ffffffff81c18ce0 RBX: 0000000000000246 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 00000000000000ff RDI: 00000000000000f0
RBP: ffff880006d1bdf8 R08: 0000000000000000 R09: 0a2e6e776f642072
R10: 4320746f6f622d6e R11: 0000000000000000 R12: 0000000000000001
R13: 00007fff40ac8080 R14: 00000000fee1dead R15: 0000000000000001
FS:  00007f86bd4ac700(0000) GS:ffff880007c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00007f94194ff9b8 CR3: 00000000063a2000 CR4: 00000000000006b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 0000000000000000 DR7: 0000000000000000
Process halt (pid: 1076, threadinfo ffff880006d1a000, task ffff8800063face0)
Stack:
 000000004321fedc 000000004321fedc 0000000028121969 00007fff40ac8080
 ffff880006d1be08 ffffffff8101a50c ffff880006d1be18 ffffffff8101a3f6
 ffff880006d1be28 ffffffff8101a58f ffff880006d1be38 ffffffff81045cd2
Call Trace:
 [&lt;ffffffff8101a50c&gt;] native_machine_shutdown+0x5c/0x80
 [&lt;ffffffff8101a3f6&gt;] native_machine_power_off+0x36/0x50
 [&lt;ffffffff8101a58f&gt;] machine_power_off+0xf/0x20
 [&lt;ffffffff81045cd2&gt;] kernel_power_off+0x72/0x80
 [&lt;ffffffff8104677b&gt;] sys_reboot+0x13b/0x200
 [&lt;ffffffff810a8e75&gt;] ? rcu_read_unlock_special+0x1c5/0x1d0
 [&lt;ffffffff810a8ee6&gt;] ? __rcu_read_unlock+0x66/0x70
 [&lt;ffffffff81045100&gt;] ? sys_kill+0xa0/0x1d0
 [&lt;ffffffff8164329d&gt;] ? sub_preempt_count+0x6d/0xd0
 [&lt;ffffffff81115300&gt;] ? kmem_cache_free+0x20/0x120
 [&lt;ffffffff8111ee72&gt;] ? do_sys_open+0x172/0x1e0
 [&lt;ffffffff81646dd2&gt;] system_call_fastpath+0x16/0x1b
Code: 89 c5 bf c7 10 00 00 e8 85 d5 31 00 48 8b 3b 81 e7 ff ff ff 00 f3 48 0f b8 c7 83 f8 01 77 d2 66 90 9c 5b fa e8 08 11 00 00 53 9d &lt;48&gt; 8b 5d e8 4c 8b 65 f0 4c 8b 6d f8 c9 c3 0f 1f 84 00 00 00 00 
RIP  [&lt;ffffffff8101b0ea&gt;] native_nmi_stop_other_cpus+0xea/0x100
 RSP &lt;ffff880006d1bdd8&gt;
---[ end trace 4685912b96066099 ]---

Same location, native_nmi_stop_other_cpus() at linux/arch/x86/kernel/smp.c:204.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35840</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-08-22 06:42:29 +0000</bug_when>
    <thetext>Hi Beth,
I don&apos;t know why this landed to me. 
Is this obsolete?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35842</commentid>
    <comment_count>9</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2013-08-22 06:57:41 +0000</bug_when>
    <thetext>This appeared before 1.3.1 rc1 and in the RC1 report, all the tests passed (including shutdown): https://wiki.yoctoproject.org/wiki/Full_Pass_Test_Report_for_Yocto_1.3.2_RC1_201305163_Build


Is it safe to mark it resolved worksorme?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35926</commentid>
    <comment_count>10</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2013-08-26 17:42:13 +0000</bug_when>
    <thetext>Marking this resolved worksforme as it seems the issue has been fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>