[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: R: R: Crash when using xencov


  • To: Carmine Cesarano <c.cesarano@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 30 Jun 2022 14:24:24 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JpaL2K1pu2wSSMdea8KXMD5azt8WoYd/UmJdDdI8xW4=; b=HT89mmdRFDarb4CMYSX3DJhtf0iM+Q0RDtxX26/UnEhM5I4dSaOs2Jg5NpgCKqTrD7CZljEid8vxfnYhSIV2SyJURLl4pEpoa+7yd2mlSbJcgM8M30yqrWnsrWnPgA20nfDwa+/2AqG1NOj7EJj1HEJ+/Ml/vYtKIMsLevKuHD1LBGvyMilMZ/M1CUBxqboevaCWBix6AtHQqHcaaEM8hKSqBB/wkrY1OA0N5+b/qOluiZF9BS6INEfdzRtpMs4EqOmZWIbSDoMEI/ptKk9PH6RtXeCacyObGSsun6y50UHIHA2BcA/N3/d7nEFsJXthcDicdqte7SknQte6Q0ITKQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X9/JAEAppMlaFbbTl47xL6sYU8o17zYXoTXD0+i+D6iaqCDCGhthsDFvq2FIBVjAlzhzen78Y1adFkO5J6I0Sr05pwa3xs8psVcXoFFLAfPQDi6Y2mezaTY8ZWpbzV93B0AMAm7xYWVwZQ9XFwdgnvxspoDze+R6WTaeZiSb+g/YY7ZzTLgSqoPuEZVQiY1Im3h6WsXEADv8VEk3PyMUxB62+dPI5Uy7LiVjKd6Lq7j1CMfpChVFsTwxDbESfAoVXN35C9vR1Yqe0xR2a1CYL4uq4CH2rt1TsmEIbd5fcnvQZUi1fHf+p6UmBqg0Q0NbhGAC6ZwzdL7SnAKtPQCCag==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Thu, 30 Jun 2022 12:24:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30.06.2022 11:07, Carmine Cesarano wrote:
> Sorry for the images on the ML.

Please note how Julien had also asked you to not top-post.

> If I wanted to change my setup instead, is there a tested and working version 
> of gcc for xencov features on xen stable-4.16?
> (I read GCC 3.4 or later in the documentation).

Judging from the sources someone had tested with gcc7, but earlier you
said you see the same issue there as you had seen with gcc10. I assume
you did make sure to do a full, clean re-build when switching compiler
versions.

No update was made after gcc 7, so it's not entirely unexpected for
things to not work anymore with newer versions.

Jan

> Da: Julien Grall<mailto:julien@xxxxxxx>
> Inviato: mercoledì 29 giugno 2022 20:02
> A: Carmine Cesarano<mailto:c.cesarano@xxxxxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx<mailto:xen-devel@xxxxxxxxxxxxxxxxxxxx>; 
> Andrew Cooper<mailto:andrew.cooper3@xxxxxxxxxx>
> Oggetto: Re: R: R: Crash when using xencov
> 
> (moving the discussion to xen-devel)
> 
> On 28/06/2022 16:32, Carmine Cesarano wrote:
>> Hi,
> 
> Hello,
> 
> Please refrain to top-post and/or post images on the ML. If you need to
> share an image, then please upload them somewhere else.
> 
>> I made two further attempts, first by compiling xen and xen-tools with gcc 
>> 10 and second with gcc 7, getting the same problem.
>>
>> By running “xencov reset”, with with both compilers, the line of code 
>> associated with the crash is:
> 
> Discussing with Andrew Cooper on IRC, it looks like the problem is
> because Xen and GCC disagrees on the format. There are newer format that
> Xen doesn't understand.
> 
> If you are interested to support GCOV on your setup, then I would
> suggest to look at the documentation and/or look at what Linux is doing
> for newer compiler.
> 
>>
>>    *   /xen/xen/common/coverage/gcc_4_7.c:123
>> By running “xencov read”, I get two different behaviors with the two 
>> compilers:
>>
>>    *   /xen/xen/common/coverage/gcc_4_7.c:165   [GCC 11]
>>    *   /xen/xen/common/coverage/gcov.c:131          [GCC 7]
>>
>> Attached are the logs captured with a serial port.
>>
>> Cheers,
>>
>> Carmine Cesarano
>> Da: Julien Grall<mailto:julien@xxxxxxx>
>> Inviato: lunedì 27 giugno 2022 14:42
>> A: Carmine Cesarano<mailto:c.cesarano@xxxxxxxxxx>
>> Oggetto: Re: R: Crash when using xencov
>>
>> Hello,
>>
>> You seemed to have removed xen-users from the CC list. Please keep it in
>> CC unless the discussion needs to private.
>>
>> Also, please avoid top-posting.
>>
>> On 27/06/2022 13:36, Carmine Cesarano wrote:
>>> Yes, i mean stable-4.16. Below the logs after running "xencov reset". The 
>>> situation for "xencov read" is similar.
>>>
>>> (XEN) ----[ Xen-4.16.2-pre  x86_64  debug=y gcov=y  Not tainted ]----
>>> (XEN) CPU:    0
>>> (XEN) RIP:    e008:[<ffff82d040257bd2>] gcov_info_reset+0x87/0xa9
>>> (XEN) RFLAGS: 0000000000010202   CONTEXT: hypervisor (d0v0)
>>> (XEN) rax: 0000000000000000   rbx: ffff82d04056bdc0   rcx: 00000000000c000b
>>> (XEN) rdx: 0000000000000000   rsi: 0000000000000001   rdi: ffff82d04056bdc0
>>> (XEN) rbp: ffff83023a7e7cb0   rsp: ffff83023a7e7c88   r8:  7fffffffffffffff
>>> (XEN) r9:  deadbeefdeadf00d   r10: 0000000000000000   r11: 0000000000000000
>>> (XEN) r12: 0000000000000001   r13: ffff82d04056be28   r14: 0000000000000000
>>> (XEN) r15: ffff82d04056bdc0   cr0: 0000000080050033   cr4: 0000000000172620
>>> (XEN) cr3: 000000017ea0b000   cr2: 0000000000000000
>>> (XEN) fsb: 00007fc0fb0ca200   gsb: ffff88807b400000   gss: 0000000000000000
>>> (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: e010   cs: e008
>>> (XEN) Xen code around <ffff82d040257bd2> (gcov_info_reset+0x87/0xa9):
>>> (XEN)  1d 44 89 f0 49 8b 57 70 <4c> 8b 24 c2 49 83 c4 18 48 83 05 a6 81 4c 
>>> 00 01
>>> (XEN) Xen stack trace from rsp=ffff83023a7e7c88:
>>> (XEN)    ffff82d04056bdc0 0000000000000001 ffff82d04070f180 0000000000000001
>>> (XEN)    0000000000000000 ffff83023a7e7cc8 ffff82d040257a6a ffff83023a7e7db0
>>> (XEN)    ffff83023a7e7ce8 ffff82d040257547 ffff83023a7e7fff ffff83023a7e7fff
>>> (XEN)    ffff83023a7e7e58 ffff82d040255d5f ffff83023a7e7d68 ffff82d0403b5e8b
>>> (XEN)    000000000017d5b2 0000000000000000 ffff83023a6b5000 0000000000000000
>>> (XEN)    00007fc0fb348010 800000017ea0e127 0000000000000202 ffff82d040399fd8
>>> (XEN)    0000000000005a40 ffff83023a7e7d68 0000000000000206 ffff82e002fab640
>>> (XEN)    ffff83023a7e7e58 ffff82d0403bb29d ffff83023a69f000 000000003a7e7fff
>>> (XEN)    000000017ea0f067 0000000000000000 000000000017d5b2 000000000017d5b2
>>> (XEN)    0000001400000014 0000000000000002 ffffffffffffffff 0000000000000000
>>> (XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
>>> (XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
>>> (XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
>>> (XEN)    0000000000000000 ffff83023a7e7ef8 0000000000000001 ffff83023a69f000
>>> (XEN)    deadbeefdeadf00d ffff82d04025579d ffff83023a7e7ee8 ffff82d040387f62
>>> (XEN)    00007fc0fb348010 deadbeefdeadf00d deadbeefdeadf00d deadbeefdeadf00d
>>> (XEN)    deadbeefdeadf00d ffff83023a7e7fff ffff82d0403b2c99 ffff83023a7e7eb8
>>> (XEN)    ffff82d04038214c ffff83023a69f000 ffff83023a7e7ed8 ffff83023a69f000
>>> (XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
>>> (XEN)    00007cfdc58180e7 ffff82d0404392ae 0000000000000000 ffff88800f484c00
>>> (XEN) Xen call trace:
>>> (XEN)    [<ffff82d040257bd2>] R gcov_info_reset+0x87/0xa9
>>
>> Thanks! There are multiple versions of gcov_info_reset() in the tree.
>> The one used will depend on the compiler you are using.
>>
>> Can you use addr2line (or gdb) to find out the file and line of code
>> associated with the crash?
>>
>> For addr2line you could do:
>>
>>     addr2line -e xen-syms 0xffff82d040257bd2
> 
> Cheers,
> 
> --
> Julien Grall
> 
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.