Sonarcloud Run code analysis task error

Template for a good new topic, formatted with Markdown:

  • ALM used - Azure DevOps
  • CI system used - Azure DevOps
  • Error observed:
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 8:54.717s
INFO: Final Memory: 1059M/3548M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]java.lang.StackOverflowError
java.lang.StackOverflowError
##[error]at java.base/java.util.HashMap.hash(HashMap.java:338)
	at java.base/java.util.HashMap.getNode(HashMap.java:568)
	at java.base/java.util.HashMap.containsKey(HashMap.java:594)
	at java.base/java.util.HashMap.hash(HashMap.java:338)
	at java.base/java.util.HashMap.getNode(HashMap.java:568)
	at java.base/java.util.HashMap.containsKey(HashMap.java:594)
##[error]at com.sonar.security.G.B.A(na:258)
	at com.sonar.security.G.B.A(na:3320)
	at com.sonar.security.G.B.A(na:3320)
	at com.sonar.security.G.B.A(na:3320)
	at com.sonar.security.G.B.A(na:3320)
	at com.sonar.security.G.B.A(na:3320)
	at com.sonar.security.G.B.A(na:3320)
	at com.sonar.security.G.B.A(na:3320)

Above error shows in the Run Code analysis task in azdo pipeline.

Hi,

Could we have the full analysis log, please?

 
Thx,
Ann

Hi Ann,

Thanks for taking up the issue.
Can I share log with you separately? I mean not post here publicly.

Hi,

Please feel free to redact as needed.

 
Ann

RunCodeAnalysis.txt (130.0 KB)
Attaching the log

Please let me know when you receive the log, so that I can remove it.

Hi,

What part of the log is still sensitive? Because I’m probably not the only one who needs to look at it.

 
Ann

1 Like

Hello @rahul.shankhareman and thank you for the report!

This definitely seems like a bug and I would be happy to fix it.

Interestingly, it occurs in a very old part and “well-proven” part of the code, so it is rather surprising to me.

In order to help me help you, could you send me a zip file of the ucfg2 dir inside the .scannerwork directory generated during analysis? According to your logs, it was at the location C:\a\6\s\.scannerwork\ucfg2\ when you ran the analysis. You can send it to me as a private message so that you do not have to share it publicly in this thread.

Hi @Malte_Skoruppa ,
Thanks, I will share the files in the folder, but I don’t see the option to send a private message to you.

@rahul.shankhareman I sent you a private message.

Thank you, Shared the files in PM @Malte_Skoruppa

1 Like

Thank you, @rahul.shankhareman ! I confirm reception of the files. I created an internal ticket and I plan to look into it this week. I will hopefully have some news for you by the end of the week. :slight_smile:

Thank you @rahul.shankhareman for your help!

I am happy to confirm that we identified and fixed this issue. It will be released today and deployed on SonarCloud this week. You should see this error disappear within the next few days. :slight_smile: