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

Filter stack traces of exceptions thrown inside validation function #438

Open
eupp opened this issue Dec 23, 2024 · 0 comments
Open

Filter stack traces of exceptions thrown inside validation function #438

eupp opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@eupp
Copy link
Collaborator

eupp commented Dec 23, 2024

Currently that validation function stack traces are handled differently compared to other stack traces printed by Lincheck.

In particular, the stack trace elements corresponding to Lincheck internals are not filtered (see, validation_function_failure.txt, last 3 stack frames):

	java.lang.IllegalStateException: Validation works!
	at org.jetbrains.kotlinx.lincheck_test.representation.ValidationFunctionCallTest.validateWithError(ValidationFunctionTests.kt:44)
	at org.jetbrains.kotlinx.lincheck.runner.TestThreadExecution196.run(Unknown Source)
	at org.jetbrains.kotlinx.lincheck.runner.FixedActiveThreadsExecutor.testThreadRunnable$lambda$10(FixedActiveThreadsExecutor.kt:172)
	at java.base/java.lang.Thread.run(Thread.java:840)

We need to fix this problem to handle these exceptions similarly as other exceptions, and filter the stack traces.

@eupp eupp added the bug Something isn't working label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant