-
Notifications
You must be signed in to change notification settings - Fork 55
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
Application Crash on hotswap attempt #42
Comments
Are you able to reproduce the problem ? |
I'm not sure how to reproduce as it doesn't matter what I change or do and try to hot-swap it just crashes my application. |
Could you create minimalistic example? |
I don't have a core dump but I have a more complete pid hs_err log, would that help? |
do you still have this problem? |
I've moved to JBR dcevm because of this since it was unstable for me sorry. |
Though I saw you released a new version, I can give that a try! |
Hi, I'm experimenting the same problem. Could you give me any hint?
|
Is the problem reproducible or is it completely random? |
I get this error message too. I use hotswap inside docker container and problem was in user permission. On recompiled class was changed user permission (access only for root). On reload that class disappear for dcevm because of permission and whole application crash. |
I got the same issue in SpringBoot tests which used Mockito. And there was something else that was contributing to this issue because this Mockito stuff worked perfectly until the point when we added support of mongo gridfs, after which it started causing SIGSEGV crash. When I replaced Mockito mock with the regular class, it started working again. What I had:
My workaround to fix this SIGSEGV:
I also attached the crash log - hs_err_pid37359.log |
I recommend to use jbr17, if it is possible, since there are a lot of problems fixed, especially with Mockito and redefinition of |
My startup:
java -DIReallyKnowWhatIAmDoingISwear -Xms3G -Xmx3G -XX:HotswapAgent=fatjar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -XX:-OmitStackTraceInFastThrow ->
The text was updated successfully, but these errors were encountered: