{"action":"created","issue":{"url":"https://api.github.com/repos/netty/netty/issues/3551","labels_url":"https://api.github.com/repos/netty/netty/issues/3551/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/3551/comments","events_url":"https://api.github.com/repos/netty/netty/issues/3551/events","html_url":"https://github.com/netty/netty/issues/3551","id":65051044,"number":3551,"title":"JVM crashes when closing server.","user":{"login":"doom369","id":1536494,"avatar_url":"https://avatars.githubusercontent.com/u/1536494?v=3","gravatar_id":"","url":"https://api.github.com/users/doom369","html_url":"https://github.com/doom369","followers_url":"https://api.github.com/users/doom369/followers","following_url":"https://api.github.com/users/doom369/following{/other_user}","gists_url":"https://api.github.com/users/doom369/gists{/gist_id}","starred_url":"https://api.github.com/users/doom369/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doom369/subscriptions","organizations_url":"https://api.github.com/users/doom369/orgs","repos_url":"https://api.github.com/users/doom369/repos","events_url":"https://api.github.com/users/doom369/events{/privacy}","received_events_url":"https://api.github.com/users/doom369/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-29T11:16:10Z","updated_at":"2015-03-30T17:09:15Z","closed_at":"2015-03-30T17:09:15Z","body":"I have a shutdown hook on which I try to close netty server and sometimes during close() I'm getting JVM crashes.\r\n```\r\nJ 175 C1 java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; (7 bytes) @ 0x00007f5f65159fc4 [0x00007f5f65159ec0+0x104]\r\nv  ~StubRoutines::call_stub\r\nj  io.netty.channel.AbstractChannelHandlerContext.close(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;+39\r\nj  io.netty.channel.AbstractChannelHandlerContext.close()Lio/netty/channel/ChannelFuture;+5\r\nj  io.netty.channel.DefaultChannelPipeline.close()Lio/netty/channel/ChannelFuture;+4\r\nj  io.netty.channel.AbstractChannel.close()Lio/netty/channel/ChannelFuture;+4\r\nj  cc.blynk.server.core.BaseServer.stop()V+11\r\n```\r\n\r\nHere is full crash log : https://www.dropbox.com/s/u47fzlnk2mj861n/hs_err_pid38261.log?dl=0\r\nClose method : https://github.com/blynkkk/blynk-server/blob/master/server/tcp-server/src/main/java/cc/blynk/server/core/BaseServer.java#L63\r\n\r\nNetty version - 4.0.26.Final\r\n"},"comment":{"url":"https://api.github.com/repos/netty/netty/issues/comments/87753598","html_url":"https://github.com/netty/netty/issues/3551#issuecomment-87753598","issue_url":"https://api.github.com/repos/netty/netty/issues/3551","id":87753598,"user":{"login":"doom369","id":1536494,"avatar_url":"https://avatars.githubusercontent.com/u/1536494?v=3","gravatar_id":"","url":"https://api.github.com/users/doom369","html_url":"https://github.com/doom369","followers_url":"https://api.github.com/users/doom369/followers","following_url":"https://api.github.com/users/doom369/following{/other_user}","gists_url":"https://api.github.com/users/doom369/gists{/gist_id}","starred_url":"https://api.github.com/users/doom369/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doom369/subscriptions","organizations_url":"https://api.github.com/users/doom369/orgs","repos_url":"https://api.github.com/users/doom369/repos","events_url":"https://api.github.com/users/doom369/events{/privacy}","received_events_url":"https://api.github.com/users/doom369/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T17:09:15Z","updated_at":"2015-03-30T17:09:15Z","body":"@normanmaurer look like you are right. Found exactly same issue https://bugs.openjdk.java.net/browse/JDK-8013062."}}