From: Craig Carnell Subject: Re: [BUG] hhvm running on Ubuntu 13.04 with Xen Hypervisor - linux kernel panic Date: Thu, 19 Sep 2013 15:02:38 +0000 Message-ID: References: <1422606.YB39f1ZvGE@amur.mch.fsc.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3263776883601824388==" Return-path: In-Reply-To: <1422606.YB39f1ZvGE@amur.mch.fsc.net> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dietmar Hahn , "xen-devel@lists.xen.org" Cc: Wei Liu List-Id: xen-devel@lists.xenproject.org --===============3263776883601824388== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_CE60CFB94667ccarnellttifccom_" --_000_CE60CFB94667ccarnellttifccom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Xen Version is 4.1.3 I'm not able to run xm it asks for xen-utils 4.1 which I install (xen-utils= 4.2 installs) but it can't find it.. Sorry! From: Dietmar Hahn > Date: Thursday, 19 September 2013 12:51 To: "xen-devel@lists.xen.org" > Cc: Wei Liu >, Craig Carnel= l > Subject: Re: [Xen-devel] [BUG] hhvm running on Ubuntu 13.04 with Xen Hyperv= isor - linux kernel panic Am Donnerstag 19 September 2013, 10:52:26 schrieb Wei Liu: > On Wed, Sep 18, 2013 at 11:21:18AM +0000, Craig Carnell wrote: > > Hi, > > > > I am trying out hiphop vm (the php just in time compiler). My setup is = a Rackspace Cloud Server running Ubuntu 13.04 with kernel 3.8.0-30-generic = #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux > > > > The cloud server uses Xen Hypervisor. > > > > Hiphopvm is compiled from source using the github repo. When running hh= vm from the command line (without any options or php application) the syste= m immediately crashes, throwing linux into a kernel panic and thus death. > > > > I have reported this issue on hiphop github issue page: > > > > https://github.com/facebook/hiphop-php/issues/1065 > > > > I am not sure if this is a linux kernel bug or a xen hypervisor bug: > > > > I'm not a expert on VPMU stuffs, but it seems that HHVM makes use of > (virtual) hardware performance counter which is not well supported at > the moment, which causes this problem. > > Try to compile HHVM without hardware performance counter support might > solve this problem. > > ./configure -DNO_HARDWARE_COUNTERS=3D1 > > Wei. > > > The output of /var/log/syslog: > > > > Sep 18 10:55:58 web kernel: [92118.674736] general protection fault: 00= 00 [#1] SMP > > Sep 18 10:55:58 web kernel: [92118.674754] Modules linked in: xenfs(F) = xen_privcmd(F) xt_tcpudp(F) nf_conntrack_ipv4(F) nf_defrag_ipv4(F) xt_state= (F) nf_conntrack(F) xt_comment(F) iptable_filter(F) ip_tables(F) x_tables(F= ) microcode(F) lp(F) parport(F) > > Sep 18 10:55:58 web kernel: [92118.674781] CPU 0 > > Sep 18 10:55:58 web kernel: [92118.674787] Pid: 5020, comm: hhvm Tainte= d: GF 3.8.0-30-generic #44-Ubuntu > > Sep 18 10:55:58 web kernel: [92118.674795] RIP: e030:[] [] native_read_pmc+0x6/0x20 > > Sep 18 10:55:58 web kernel: [92118.674809] RSP: e02b:ffff8800026b9d20 E= FLAGS: 00010083 > > Sep 18 10:55:58 web kernel: [92118.674814] RAX: ffffffff81c1bd80 RBX: 0= 000000000000000 RCX: 0000000000000000 > > Sep 18 10:55:58 web kernel: [92118.674819] RDX: 0000000000005f6c RSI: f= fff8800f7c81900 RDI: 0000000000000000 > > Sep 18 10:55:58 web kernel: [92118.674824] RBP: ffff8800026b9d20 R08: 0= 0000000000337d8 R09: ffff8800e933dcc0 > > Sep 18 10:55:58 web kernel: [92118.674830] R10: 00007fff2d3caea0 R11: 0= 000000000000246 R12: ffff8800f87ecc00 > > Sep 18 10:55:58 web kernel: [92118.674835] R13: ffff800000000001 R14: f= fff8800f87ecd70 R15: 0000000000000010 > > Sep 18 10:55:58 web kernel: [92118.674844] FS: 00007f43d4c9b180(0000) G= S:ffff8800ffc00000(0000) knlGS:0000000000000000 > > Sep 18 10:55:58 web kernel: [92118.674850] CS: e033 DS: 0000 ES: 0000 C= R0: 000000008005003b > > Sep 18 10:55:58 web kernel: [92118.674855] CR2: 000000000105ebc0 CR3: 0= 0000000025cd000 CR4: 0000000000000660 > > Sep 18 10:55:58 web kernel: [92118.674861] DR0: 0000000000000000 DR1: 0= 000000000000000 DR2: 0000000000000000 > > Sep 18 10:55:58 web kernel: [92118.674867] DR3: 0000000000000000 DR6: 0= 0000000ffff0ff0 DR7: 0000000000000400 > > Sep 18 10:55:58 web kernel: [92118.674872] Process hhvm (pid: 5020, thr= eadinfo ffff8800026b8000, task ffff8800f7cfc5c0) > > Sep 18 10:55:58 web kernel: [92118.674879] Stack: > > Sep 18 10:55:58 web kernel: [92118.674882] ffff8800026b9d58 ffffffff810= 24625 0000000000000000 ffff8800f87ecc00 > > Sep 18 10:55:58 web kernel: [92118.674893] ffff8800f7c8190c ffffffff811= 231a0 0000000000000005 ffff8800026b9d68 > > Sep 18 10:55:58 web kernel: [92118.674902] ffffffff81024689 ffff8800026= b9d90 ffffffff811232a6 00000000ffff02ff > > Sep 18 10:55:58 web kernel: [92118.674911] Call Trace: > > Sep 18 10:55:58 web kernel: [92118.674920] [] x86_per= f_event_update+0x55/0xb0 > > Sep 18 10:55:58 web kernel: [92118.674929] [] ? perf_= read+0x2f0/0x2f0 > > Sep 18 10:55:58 web kernel: [92118.674936] [] x86_pmu= _read+0x9/0x10 > > Sep 18 10:55:58 web kernel: [92118.674942] [] __perf_= event_read+0x106/0x110 > > Sep 18 10:55:58 web kernel: [92118.674951] [] smp_cal= l_function_single+0x147/0x170 > > Sep 18 10:55:58 web kernel: [92118.674959] [] ? perf_= mmap+0x2f0/0x2f0 > > Sep 18 10:55:58 web kernel: [92118.674966] [] perf_ev= ent_read+0x10a/0x110 > > Sep 18 10:55:58 web kernel: [92118.674972] [] ? perf_= mmap+0x2f0/0x2f0 > > Sep 18 10:55:58 web kernel: [92118.674979] [] perf_ev= ent_reset+0xd/0x20 > > Sep 18 10:55:58 web kernel: [92118.674987] [] perf_ev= ent_for_each_child+0x38/0xa0 > > Sep 18 10:55:58 web kernel: [92118.674994] [] ? perf_= mmap+0x2f0/0x2f0 > > Sep 18 10:55:58 web kernel: [92118.675001] [] perf_io= ctl+0xba/0x340 > > Sep 18 10:55:58 web kernel: [92118.675009] [] ? fd_in= stall+0x25/0x30 > > Sep 18 10:55:58 web kernel: [92118.675016] [] do_vfs_= ioctl+0x99/0x570 > > Sep 18 10:55:58 web kernel: [92118.675023] [] sys_ioc= tl+0x91/0xb0 > > Sep 18 10:55:58 web kernel: [92118.675031] [] system_= call_fastpath+0x1a/0x1f > > Sep 18 10:55:58 web kernel: [92118.675036] Code: 00 00 00 00 00 55 89 f= 9 48 89 e5 0f 32 31 ff 89 c0 48 c1 e2 20 89 3e 48 09 c2 48 89 d0 5d c3 66 0= f 1f 44 00 00 55 89 f9 48 89 e5 <0f> 33 89 c0 48 c1 e2 20 48 09 c2 48 89 d0= 5d c3 66 2e 0f 1f 84 It panics on <0f> 33 The code of native_read_pmc(): ffffffff81030bc0 : ffffffff81030bc0: 89 f9 mov %edi,%ecx ffffffff81030bc2: 0f 33 rdpmc ffffffff81030bc4: 48 c1 e2 20 shl $0x20,%rdx So it's the rdpmc which leads to the panic. In the xen VPMU (on HVM)the rdpmc are not intercepted I think. On PV I'am not sure. Maybe xm dmesg ? Which xen version? Dietmar. > > Sep 18 10:55:58 web kernel: [92118.675103] RIP [] nat= ive_read_pmc+0x6/0x20 > > Sep 18 10:55:58 web kernel: [92118.675110] RSP > > Sep 18 10:55:58 web kernel: [92118.675118] ---[ end trace 1a73231ba5f74= 716 ]--- > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel > -- Company details: http://ts.fujitsu.com/imprint.html --_000_CE60CFB94667ccarnellttifccom_ Content-Type: text/html; charset="us-ascii" Content-ID: <1A304F4F1802664E910D974DC7B09D6B@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable
Xen Version is 4.1.3

I'm not able to run xm it asks for xen-utils 4.1 which I install (xen-= utils 4.2 installs) but it can't find it..

Sorry!


From: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Date: Thursday, 19 September 2013 1= 2:51
To: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Wei Liu <wei.liu2@citrix.com>, Craig Carnell <ccarnell@tti-fc.com>
Subject: Re: [Xen-devel] [BUG] hhvm= running on Ubuntu 13.04 with Xen Hypervisor - linux kernel panic

Am Donnerstag 19 September 2013, 10:52:26 schrieb Wei Liu:

> On Wed, Sep 18, 2013 at 11:21:18AM +0000, Craig Carnell wrote:

> > Hi,

> >

> > I am trying out hiphop vm (the php just in time compiler). My set= up is a Rackspace Cloud Server running Ubuntu 13.04 with kernel 3.8.0-30-ge= neric #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/= Linux

> >

> > The cloud server uses Xen Hypervisor.

> >

> > Hiphopvm is compiled from source using the github repo. When runn= ing hhvm from the command line (without any options or php application) the= system immediately crashes, throwing linux into a kernel panic and thus de= ath.

> >

> > I have reported this issue on hiphop github issue page:

> >

> > ht= tps://github.com/facebook/hiphop-php/issues/1065

> >

> > I am not sure if this is a linux kernel bug or a xen hypervisor b= ug:

> >

>

> I'm not a expert on VPMU stuffs, but it seems that HHVM makes use of

> (virtual) hardware performance counter which is not well supported at<= /p>

> the moment, which causes this problem.

>

> Try to compile HHVM without hardware performance counter support might=

> solve this problem.

>

> ./configure -DNO_HARDWARE_COUNTERS=3D1

>

> Wei.

>

> > The output of /var/log/syslog:

> >

> > Sep 18 10:55:58 web kernel: [92118.674736] general protection fau= lt: 0000 [#1] SMP

> > Sep 18 10:55:58 web kernel: [92118.674754] Modules linked in: xen= fs(F) xen_privcmd(F) xt_tcpudp(F) nf_conntrack_ipv4(F) nf_defrag_ipv4(F) xt= _state(F) nf_conntrack(F) xt_comment(F) iptable_filter(F) ip_tables(F) x_ta= bles(F) microcode(F) lp(F) parport(F)

> > Sep 18 10:55:58 web kernel: [92118.674781] CPU 0

> > Sep 18 10:55:58 web kernel: [92118.674787] Pid: 5020, comm: hhvm = Tainted: GF 3.8.0-30-generic #44-Ubuntu

> > Sep 18 10:55:58 web kernel: [92118.674795] RIP: e030:[<fffffff= f81003046>] [<ffffffff81003046>] native_read_pmc+0x6/0x20

> > Sep 18 10:55:58 web kernel: [92118.674809] RSP: e02b:ffff8800026b= 9d20 EFLAGS: 00010083

> > Sep 18 10:55:58 web kernel: [92118.674814] RAX: ffffffff81c1bd80 = RBX: 0000000000000000 RCX: 0000000000000000

> > Sep 18 10:55:58 web kernel: [92118.674819] RDX: 0000000000005f6c = RSI: ffff8800f7c81900 RDI: 0000000000000000

> > Sep 18 10:55:58 web kernel: [92118.674824] RBP: ffff8800026b9d20 = R08: 00000000000337d8 R09: ffff8800e933dcc0

> > Sep 18 10:55:58 web kernel: [92118.674830] R10: 00007fff2d3caea0 = R11: 0000000000000246 R12: ffff8800f87ecc00

> > Sep 18 10:55:58 web kernel: [92118.674835] R13: ffff800000000001 = R14: ffff8800f87ecd70 R15: 0000000000000010

> > Sep 18 10:55:58 web kernel: [92118.674844] FS: 00007f43d4c9b180(0= 000) GS:ffff8800ffc00000(0000) knlGS:0000000000000000

> > Sep 18 10:55:58 web kernel: [92118.674850] CS: e033 DS: 0000 ES: = 0000 CR0: 000000008005003b

> > Sep 18 10:55:58 web kernel: [92118.674855] CR2: 000000000105ebc0 = CR3: 00000000025cd000 CR4: 0000000000000660

> > Sep 18 10:55:58 web kernel: [92118.674861] DR0: 0000000000000000 = DR1: 0000000000000000 DR2: 0000000000000000

> > Sep 18 10:55:58 web kernel: [92118.674867] DR3: 0000000000000000 = DR6: 00000000ffff0ff0 DR7: 0000000000000400

> > Sep 18 10:55:58 web kernel: [92118.674872] Process hhvm (pid: 502= 0, threadinfo ffff8800026b8000, task ffff8800f7cfc5c0)

> > Sep 18 10:55:58 web kernel: [92118.674879] Stack:

> > Sep 18 10:55:58 web kernel: [92118.674882] ffff8800026b9d58 fffff= fff81024625 0000000000000000 ffff8800f87ecc00

> > Sep 18 10:55:58 web kernel: [92118.674893] ffff8800f7c8190c fffff= fff811231a0 0000000000000005 ffff8800026b9d68

> > Sep 18 10:55:58 web kernel: [92118.674902] ffffffff81024689 ffff8= 800026b9d90 ffffffff811232a6 00000000ffff02ff

> > Sep 18 10:55:58 web kernel: [92118.674911] Call Trace:

> > Sep 18 10:55:58 web kernel: [92118.674920] [<ffffffff81024625&= gt;] x86_perf_event_update+0x55/0xb0

> > Sep 18 10:55:58 web kernel: [92118.674929] [<ffffffff811231a0&= gt;] ? perf_read+0x2f0/0x2f0

> > Sep 18 10:55:58 web kernel: [92118.674936] [<ffffffff81024689&= gt;] x86_pmu_read+0x9/0x10

> > Sep 18 10:55:58 web kernel: [92118.674942] [<ffffffff811232a6&= gt;] __perf_event_read+0x106/0x110

> > Sep 18 10:55:58 web kernel: [92118.674951] [<ffffffff810b9987&= gt;] smp_call_function_single+0x147/0x170

> > Sep 18 10:55:58 web kernel: [92118.674959] [<ffffffff811240d0&= gt;] ? perf_mmap+0x2f0/0x2f0

> > Sep 18 10:55:58 web kernel: [92118.674966] [<ffffffff81122dda&= gt;] perf_event_read+0x10a/0x110

> > Sep 18 10:55:58 web kernel: [92118.674972] [<ffffffff811240d0&= gt;] ? perf_mmap+0x2f0/0x2f0

> > Sep 18 10:55:58 web kernel: [92118.674979] [<ffffffff811240dd&= gt;] perf_event_reset+0xd/0x20

> > Sep 18 10:55:58 web kernel: [92118.674987] [<ffffffff8111ff08&= gt;] perf_event_for_each_child+0x38/0xa0

> > Sep 18 10:55:58 web kernel: [92118.674994] [<ffffffff811240d0&= gt;] ? perf_mmap+0x2f0/0x2f0

> > Sep 18 10:55:58 web kernel: [92118.675001] [<ffffffff8112255a&= gt;] perf_ioctl+0xba/0x340

> > Sep 18 10:55:58 web kernel: [92118.675009] [<ffffffff811b1885&= gt;] ? fd_install+0x25/0x30

> > Sep 18 10:55:58 web kernel: [92118.675016] [<ffffffff811a60e9&= gt;] do_vfs_ioctl+0x99/0x570

> > Sep 18 10:55:58 web kernel: [92118.675023] [<ffffffff811a6651&= gt;] sys_ioctl+0x91/0xb0

> > Sep 18 10:55:58 web kernel: [92118.675031] [<ffffffff816d575d&= gt;] system_call_fastpath+0x1a/0x1f

> > Sep 18 10:55:58 web kernel: [92118.675036] Code: 00 00 00 00 00 5= 5 89 f9 48 89 e5 0f 32 31 ff 89 c0 48 c1 e2 20 89 3e 48 09 c2 48 89 d0 5d c= 3 66 0f 1f 44 00 00 55 89 f9 48 89 e5 <0f> 33 89 c0 48 c1 e2 20 48 09= c2 48 89 d0 5d c3 66 2e 0f 1f 84

 

It panics on <0f> 33

The code of native_read_pmc():

ffffffff81030bc0 <native_read_pmc>:

ffffffff81030bc0: 89 f9 mov %edi,%ecx

ffffffff81030bc2: 0f 33 rdpmc

ffffffff81030bc4: 48 c1 e2 20 shl $0x20,%rdx

 

So it's the rdpmc which leads to the panic.

In the xen VPMU (on HVM)the rdpmc are not intercepted I think.

On PV I'am not sure. Maybe xm dmesg ?

Which xen version?

 

Dietmar.

 

 

> > Sep 18 10:55:58 web kernel: [92118.675103] RIP [<ffffffff81003= 046>] native_read_pmc+0x6/0x20

> > Sep 18 10:55:58 web kernel: [92118.675110] RSP <ffff8800026b9d= 20>

> > Sep 18 10:55:58 web kernel: [92118.675118] ---[ end trace 1a73231= ba5f74716 ]---

> >

>

> > _______________________________________________

> > Xen-devel mailing list

> > Xen-devel@lists.xen.or= g

> > http://lists.xen.org/x= en-devel

>

>

> _______________________________________________

> Xen-devel mailing list

> Xen-devel@lists.xen.org=

> http://lists.xen.org/xen-de= vel

>

--

Company details: http://ts.f= ujitsu.com/imprint.html

--_000_CE60CFB94667ccarnellttifccom_-- --===============3263776883601824388== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============3263776883601824388==--