[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    [cfe-dev] Seeing "`!HitMapping && "recursive macro expansion?"' assertion failure -- hoping for hint
From:       Chris Hamilton via cfe-dev <cfe-dev () lists ! llvm ! org>
Date:       2019-11-19 21:37:38
Message-ID: MN2PR15MB36944CD616E9F0B13E080576F04C0 () MN2PR15MB3694 ! namprd15 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi folks (especially Ilya Biryukov),

 

I'm working with clangd under the Theia IDE, and while browsing source, I'm
regularly seeing this assertion failure from clangd:

 

root ERROR C/C++: clangd:
/repo/eahcmrh/flexc-llvm-project/clang/lib/Tooling/Syntax/Tokens.cpp:473:
void
clang::syntax::TokenCollector::Builder::consumeMapping(clang::syntax::TokenB
uffer::MarkedFile&, unsigned int, unsigned int, unsigned int, unsigned
int&): Assertion `!HitMapping && "recursive macro expansion?"' failed.

 

Outside of working on some clang-tidy checks, I've had very little
experience with clang front-end code, and I'm struggling to root cause this.
Ilya, the assertion is coming from code you added about 5 months ago, so I'm
hoping you might have some suggestions about what might cause this error,
given that it is cropping up in unmodified source files that are known to
compile.

 

I'm working on trying to extract some non-proprietary code that triggers the
failure - if I'm able, I'll file a bug for it.   Regardless of whether I
file a bug, I'd like to root-cause this and perhaps even identify a fix,
because it is blocking some folks in my team from making progress on other
objectives.   I'd be grateful for any suggestions on where to look to narrow
this down..

 

Thanks,

Chris

 

 <https://www.ericsson.com/> 

 

Chris Hamilton 

Compiler Developer

 

Developer

BNEW DNEW 4G5G BI BBI 10

Mobile: +15125673298

chris.hamilton@ericsson.com

 

Ericsson

1703 W. 5th Street Suite 600

78703,Austin, Texas

United States

 <https://www.ericsson.com/> ericsson.com

 

 <https://www.ericsson.com/current_campaign> 

 

Our commitment to
<https://www.ericsson.com/thecompany/sustainability-corporateresponsibility>
Technology for Good and
<https://www.ericsson.com/thecompany/diversity-inclusion> Diversity and
Inclusion contributes to positive change.
Follow us on:  <https://www.facebook.com/ericsson> Facebook
<https://www.linkedin.com/company/ericsson> LinkedIn
<https://twitter.com/Ericsson> Twitter

Legal entity:ERICSSON AB registration number 556056-6258, registered office
in Stockholm.
This communication is confidential. Our email terms:
<https://www.ericsson.com/en/legal/privacy/email-disclaimer>
www.ericsson.com/en/legal/privacy/email-disclaimer


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" \
CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} o\:* \
{behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" \
vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi folks (especially Ilya \
Biryukov),<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>I&#8217;m working with clangd under the Theia IDE, and while browsing \
source, I&#8217;m regularly seeing this assertion failure from \
clangd:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>root \
ERROR C/C++: clangd: \
/repo/eahcmrh/flexc-llvm-project/clang/lib/Tooling/Syntax/Tokens.cpp:473: void \
clang::syntax::TokenCollector::Builder::consumeMapping(clang::syntax::TokenBuffer::MarkedFile&amp;, \
unsigned int, unsigned int, unsigned int, unsigned int&amp;): Assertion `!HitMapping \
&amp;&amp; &quot;recursive macro expansion?&quot;' failed.<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Outside of working on some \
clang-tidy checks, I&#8217;ve had very little experience with clang front-end code, \
and I&#8217;m struggling to root cause this. &nbsp;&nbsp;Ilya, the assertion is \
coming from code you added about 5 months ago, so I&#8217;m hoping you might have \
some suggestions about what might cause this error, given that it is cropping up in \
unmodified source files that are known to compile.<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m working on trying \
to extract some non-proprietary code that triggers the failure &#8211; if I&#8217;m \
able, I&#8217;ll file a bug for it.&nbsp; &nbsp;Regardless of whether I file a bug, \
I&#8217;d like to root-cause this and perhaps even identify a fix, because it is \
blocking some folks in my team from making progress on other objectives.&nbsp;&nbsp; \
I&#8217;d be grateful for any suggestions on where to look to narrow this \
down&#8230;.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Chris<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal \
style='mso-line-height-alt:3.0pt'><a href="https://www.ericsson.com/" \
target="'_blank'"><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;text-decoration:none'><img \
border=0 width=30 height=30 style='width:.3125in;height:.3125in' id="_x0000_i1026" \
src="https://mediabank.ericsson.net/internet-media/Email_logo_Ericsson.png" \
alt="https://www.ericsson.com"></span></a><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'><o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>&nbsp;<o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><b><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>Chris \
Hamilton</span></b><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'> \
<o:p></o:p></span></p><p class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>Compiler \
Developer<o:p></o:p></span></p><p class=MsoNormal \
style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>&nbsp;<o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>Developer<o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>BNEW DNEW 4G5G \
BI BBI 10<o:p></o:p></span></p><p class=MsoNormal \
style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>Mobile: \
+15125673298<o:p></o:p></span></p><p class=MsoNormal \
style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>chris.hamilton@ericsson.com<o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>&nbsp;<o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>Ericsson<o:p></o:p></span></p><p \
class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>1703 W. 5th \
Street Suite 600<o:p></o:p></span></p><p class=MsoNormal \
style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>78703,Austin, \
Texas<o:p></o:p></span></p><p class=MsoNormal style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'>United \
States<o:p></o:p></span></p><p class=MsoNormal \
style='mso-line-height-alt:3.0pt'><span \
style='font-size:10.0pt;font-family:"Arial",sans-serif;color:#181818'><a \
href="https://www.ericsson.com/" target="_blank"><span \
style='color:blue'>ericsson.com</span></a><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'>&nbsp;<o:p></o:p></span></p><p \
class=MsoNormal><a href="https://www.ericsson.com/current_campaign" \
target="'_blank'"><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:blue;text-decoration:none'><img \
border=0 width=500 height=80 style='width:5.2083in;height:.8333in' id="_x0000_i1025" \
src="https://mediabank.ericsson.net/internet-media/Email_Message.gif" \
alt="https://www.ericsson.com/current_campaign"></span></a><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'>&nbsp;<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'>Our commitment \
to <a href="https://www.ericsson.com/thecompany/sustainability-corporateresponsibility" \
title="https://www.ericsson.com/thecompany/sustainability-corporateresponsibility"><span \
style='color:blue'>Technology for Good</span></a> and <a \
href="https://www.ericsson.com/thecompany/diversity-inclusion" \
title="https://www.ericsson.com/thecompany/diversity-inclusion"><span \
style='color:blue'>Diversity and Inclusion</span></a> contributes to positive \
change.<br>Follow us on: <a href="https://www.facebook.com/ericsson" \
title="https://www.facebook.com/ericsson"><span \
style='color:blue'>Facebook</span></a> <a \
href="https://www.linkedin.com/company/ericsson" \
title="https://www.linkedin.com/company/ericsson"><span \
style='color:blue'>LinkedIn</span></a> <a href="https://twitter.com/Ericsson" \
title="https://twitter.com/Ericsson"><span \
style='color:blue'>Twitter</span></a><br><br>Legal entity:</span><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#333333'>ERICSSON \
AB</span><span style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'> \
registration number </span><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#333333'>556056-6258</span><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'>, registered \
office in </span><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#333333'>Stockholm</span><span \
style='font-size:8.0pt;font-family:"Arial",sans-serif;color:#181818'>.<br>This \
communication is confidential. Our email terms: <a \
href="https://www.ericsson.com/en/legal/privacy/email-disclaimer" \
title="https://www.ericsson.com/en/legal/privacy/email-disclaimer"><span \
style='color:blue'>www.ericsson.com/en/legal/privacy/email-disclaimer</span></a></span><o:p></o:p></p></div></body></html>



["smime.p7s" (application/pkcs7-signature)]
[Attachment #7 (unknown)]

_______________________________________________
cfe-dev mailing list
cfe-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic