Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Ballerina profiler crashes in windows environment #41576

Closed
HindujaB opened this issue Oct 26, 2023 · 1 comment · Fixed by #41823
Closed

[Bug]: Ballerina profiler crashes in windows environment #41576

HindujaB opened this issue Oct 26, 2023 · 1 comment · Fixed by #41823
Assignees
Labels
OS/Windows Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug

Comments

@HindujaB
Copy link
Contributor

Description

Happens for both bal package and single file execution. The crash happens while executing the instrumented jar file.

Steps to Reproduce

Create a bal package and execute bal profile command.

Exception in thread "main" io.ballerina.runtime.profiler.util.ProfilerException: java.util.regex.PatternSyntaxException: Illegal/unsuppquence near index 3
C:\Users\WSO2\Documents\Ballerina\ballerina-lang\tests\jballerina-integration-test\src\test\resources\profiler\projectForProfile\packag   ^
        at io.ballerina.runtime.profiler.Profiler.initializeProfiling(Profiler.java:269)
        at io.ballerina.runtime.profiler.Profiler.start(Profiler.java:387)
        at io.ballerina.runtime.profiler.Main.main(Main.java:35)
Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 3
C:\Users\WSO2\Documents\Ballerina\ballerina-lang\tests\jballerina-integration-test\src\test\resources\profiler\projectForProfile\packag   ^
        at java.base/java.util.regex.Pattern.error(Pattern.java:2028)
        at java.base/java.util.regex.Pattern.escape(Pattern.java:2608)
        at java.base/java.util.regex.Pattern.atom(Pattern.java:2286)
        at java.base/java.util.regex.Pattern.sequence(Pattern.java:2210)
        at java.base/java.util.regex.Pattern.expr(Pattern.java:2069)
        at java.base/java.util.regex.Pattern.compile(Pattern.java:1783)
        at java.base/java.util.regex.Pattern.<init>(Pattern.java:1430)
        at io.ballerina.runtime.profiler.Profiler.analyseInstrumentedDirectories(Profiler.java:311)
        at io.ballerina.runtime.profiler.Profiler.analyseInstrumentedDirectories(Profiler.java:309)
        at io.ballerina.runtime.profiler.Profiler.listAllFiles(Profiler.java:301)
        at io.ballerina.runtime.profiler.Profiler.modifyJar(Profiler.java:276)
        at io.ballerina.runtime.profiler.Profiler.initializeProfiling(Profiler.java:267)
        ... 2 more

Affected Version(s)

2201.8.2

OS, DB, other environment details and versions

Windows 10

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@HindujaB HindujaB added Type/Bug Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime OS/Windows labels Oct 26, 2023
@gabilang gabilang self-assigned this Nov 30, 2023
@gabilang gabilang moved this to In Progress in Ballerina Team Main Board Nov 30, 2023
@gabilang gabilang moved this from In Progress to On Hold in Ballerina Team Main Board Dec 11, 2023
@gabilang gabilang moved this from On Hold to In Progress in Ballerina Team Main Board Dec 12, 2023
@gabilang gabilang moved this from In Progress to PR Sent in Ballerina Team Main Board Dec 14, 2023
@github-project-automation github-project-automation bot moved this from PR Sent to Done in Ballerina Team Main Board Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS/Windows Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants