{"action":"created","issue":{"url":"https://api.github.com/repos/EventStore/EventStore/issues/413","labels_url":"https://api.github.com/repos/EventStore/EventStore/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/EventStore/EventStore/issues/413/comments","events_url":"https://api.github.com/repos/EventStore/EventStore/issues/413/events","html_url":"https://github.com/EventStore/EventStore/issues/413","id":60254788,"number":413,"title":"Crash on CTRL+C in docker","user":{"login":"haf","id":193115,"avatar_url":"https://avatars.githubusercontent.com/u/193115?v=3","gravatar_id":"","url":"https://api.github.com/users/haf","html_url":"https://github.com/haf","followers_url":"https://api.github.com/users/haf/followers","following_url":"https://api.github.com/users/haf/following{/other_user}","gists_url":"https://api.github.com/users/haf/gists{/gist_id}","starred_url":"https://api.github.com/users/haf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haf/subscriptions","organizations_url":"https://api.github.com/users/haf/orgs","repos_url":"https://api.github.com/users/haf/repos","events_url":"https://api.github.com/users/haf/events{/privacy}","received_events_url":"https://api.github.com/users/haf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-03-08T12:36:52Z","updated_at":"2015-03-08T13:17:06Z","closed_at":null,"body":"Repro:\r\n\r\n``` bash\r\ndocker pull haaf/eventstore\r\ndocker run --entrypoint /bin/bash -it haaf/eventstore\r\n./eventstore\r\n# wait a bit\r\n[CTRL+C]\r\n```\r\n\r\nCrash details:\r\n\r\n```\r\n[root@8d3db9cf20be eventstore]# ls\r\n1Prelude.js         apple-touch-icon.png           index.html          mode-json.js\r\nModules.js          clusternode                    js                  projections\r\nModulesExecuted.js  clusternode-web                libicui18n.so       requirejs.min.js\r\nNLog.config         css                            libicuuc.so         run-node.sh\r\nPrelude             es-tile.png                    libjs1.so           testclient\r\nProjections.js      es.menu.part.json              libv8.so            theme-monokai.js\r\nace                 es.projections.environment.js  logo.svg            web-resources\r\nace.js              favicon.png                    main.min.css        worker-javascript.js\r\napp.min.js          images                         mode-javascript.js\r\n[root@8d3db9cf20be eventstore]# ./clusternode\r\n2015-03-08 12:34:29.8843|INFO|ProgramBase`1|\r\nES VERSION:               3.0.1.0 (release-oss-v3.0.1/7fa876c111888dd5980dbd86d126e6abe13b05ab, Thu, 23 Oct 2014 22:27:04 +0100)\r\nOS:                       Unknown (Unix 3.18.1.0)\r\nRUNTIME:                  3.8.0 ((detached/45d0ba1) (64-bit)\r\nGC:                       2 GENERATIONS\r\nLOGS:                     /tmp/EventStore/2015-03-08_12.34.28.802847-Node2113-logs\r\n\r\nHELP:                     False (<DEFAULT>)\r\nVERSION:                  False (<DEFAULT>)\r\nLOG:                      <empty> (<DEFAULT>)\r\nCONFIG:                   <empty> (<DEFAULT>)\r\nDEFINES:                  <empty> (<DEFAULT>)\r\nWHAT IF:                  False (<DEFAULT>)\r\nINT IP:                   127.0.0.1 (<DEFAULT>)\r\nEXT IP:                   127.0.0.1 (<DEFAULT>)\r\nINT HTTP PORT:            2112 (<DEFAULT>)\r\nEXT HTTP PORT:            2113 (<DEFAULT>)\r\nINT TCP PORT:             1112 (<DEFAULT>)\r\nINT SECURE TCP PORT:      0 (<DEFAULT>)\r\nEXT TCP PORT:             1113 (<DEFAULT>)\r\nEXT SECURE TCP PORT:      0 (<DEFAULT>)\r\nINT TCP HEARTBEAT TIMEOUT: 700 (<DEFAULT>)\r\nEXT TCP HEARTBEAT TIMEOUT: 1000 (<DEFAULT>)\r\nINT TCP HEARTBEAT INTERVAL: 700 (<DEFAULT>)\r\nEXT TCP HEARTBEAT INTERVAL: 2000 (<DEFAULT>)\r\nFORCE:                    False (<DEFAULT>)\r\nCLUSTER SIZE:             1 (<DEFAULT>)\r\nNODE PRIORITY:            0 (<DEFAULT>)\r\nMIN FLUSH DELAY MS:       2 (<DEFAULT>)\r\nCOMMIT COUNT:             -1 (<DEFAULT>)\r\nPREPARE COUNT:            -1 (<DEFAULT>)\r\nADMIN ON EXT:             True (<DEFAULT>)\r\nSTATS ON EXT:             True (<DEFAULT>)\r\nGOSSIP ON EXT:            True (<DEFAULT>)\r\nDISABLE SCAVENGE MERGING: False (<DEFAULT>)\r\nDISCOVER VIA DNS:         True (<DEFAULT>)\r\nCLUSTER DNS:              fake.dns (<DEFAULT>)\r\nCLUSTER GOSSIP PORT:      30777 (<DEFAULT>)\r\nGOSSIP SEED:              <empty> (<DEFAULT>)\r\nSTATS PERIOD SEC:         30 (<DEFAULT>)\r\nCACHED CHUNKS:            -1 (<DEFAULT>)\r\nCHUNKS CACHE SIZE:        536871424 (<DEFAULT>)\r\nMAX MEM TABLE SIZE:       1000000 (<DEFAULT>)\r\nDB:                       <empty> (<DEFAULT>)\r\nMEM DB:                   False (<DEFAULT>)\r\nSKIP DB VERIFY:           False (<DEFAULT>)\r\nRUN PROJECTIONS:          System (<DEFAULT>)\r\nPROJECTION THREADS:       3 (<DEFAULT>)\r\nWORKER THREADS:           5 (<DEFAULT>)\r\nHTTP PREFIXES:            <empty> (<DEFAULT>)\r\nENABLE TRUSTED AUTH:      False (<DEFAULT>)\r\nCERTIFICATE STORE LOCATION: <empty> (<DEFAULT>)\r\nCERTIFICATE STORE NAME:   <empty> (<DEFAULT>)\r\nCERTIFICATE SUBJECT NAME: <empty> (<DEFAULT>)\r\nCERTIFICATE THUMBPRINT:   <empty> (<DEFAULT>)\r\nCERTIFICATE FILE:         <empty> (<DEFAULT>)\r\nCERTIFICATE PASSWORD:     <empty> (<DEFAULT>)\r\nUSE INTERNAL SSL:         False (<DEFAULT>)\r\nSSL TARGET HOST:          n/a (<DEFAULT>)\r\nSSL VALIDATE SERVER:      True (<DEFAULT>)\r\nAUTHENTICATION TYPE:      internal (<DEFAULT>)\r\nPREPARE TIMEOUT MS:       2000 (<DEFAULT>)\r\nCOMMIT TIMEOUT MS:        2000 (<DEFAULT>)\r\nUNSAFE DISABLE FLUSH TO DISK: False (<DEFAULT>)\r\nGOSSIP INTERVAL MS:       1000 (<DEFAULT>)\r\nGOSSIP ALLOWED DIFFERENCE MS: 60000 (<DEFAULT>)\r\nGOSSIP TIMEOUT MS:        500 (<DEFAULT>)\r\n\r\n2015-03-08 12:34:29.9640|INFO|ProgramBase`1|Quorum size set to 1\r\n2015-03-08 12:34:29.9679|INFO|ProgramBase`1|Can't find plugins path: plugins\r\n2015-03-08 12:34:30.0220|INFO|ProgramBase`1|\r\nINSTANCE ID:              ec13085f-91a2-46b5-ad7b-a9c2c18103d6\r\nDATABASE:                 /tmp/EventStore/2015-03-08_12.34.28.802847-Node2113\r\nWRITER CHECKPOINT:        0 (0x0)\r\nCHASER CHECKPOINT:        0 (0x0)\r\nEPOCH CHECKPOINT:         -1 (0xFFFFFFFFFFFFFFFF)\r\nTRUNCATE CHECKPOINT:      -1 (0xFFFFFFFFFFFFFFFF)\r\n\r\n2015-03-08 12:34:31.0613|INFO|MiniWeb|Starting MiniWeb for /web/es/js/projections ==> /opt/eventstore/projections\r\n2015-03-08 12:34:31.0630|INFO|MiniWeb|Starting MiniWeb for /web/es/js/projections/v8/Prelude ==> /opt/eventstore/Prelude\r\n2015-03-08 12:34:31.0634|INFO|MiniWeb|Starting MiniWeb for /web/es/js/projections/resources ==> /opt/eventstore/web-resources/js\r\n2015-03-08 12:34:31.0751|INFO|MiniWeb|Starting MiniWeb for /web ==> /opt/eventstore/clusternode-web\r\n2015-03-08 12:34:31.0762|INFO|MiniWeb|Starting MiniWeb for /web/users ==> /opt/eventstore/Users/web\r\n2015-03-08 12:34:31.0833|INFO|ClusterVNodeController|========== [127.0.0.1:2112] SYSTEM INIT...\r\n2015-03-08 12:34:31.1964|INFO|TcpServerListener|Starting Normal TCP listening on TCP endpoint: 127.0.0.1:1113.\r\n2015-03-08 12:34:31.2902|INFO|IndexCommitter|TableIndex initialization...\r\n2015-03-08 12:34:31.2973|INFO|IndexCommitter|ReadIndex building...\r\n2015-03-08 12:34:31.3444|INFO|HttpAsyncServer|Starting HTTP server on [http://127.0.0.1:2113/,http://localhost:2113/]...\r\n2015-03-08 12:34:31.3518|INFO|HttpAsyncServer|HTTP server is up and listening on [http://127.0.0.1:2113/,http://localhost:2113/]\r\n2015-03-08 12:34:31.3643|INFO|ClusterVNodeController|========== [127.0.0.1:2112] Service 'StorageReader' initialized.\r\n2015-03-08 12:34:31.3660|INFO|ClusterVNodeController|========== [127.0.0.1:2112] Service 'StorageWriter' initialized.\r\n2015-03-08 12:34:31.3685|INFO|ClusterVNodeController|========== [127.0.0.1:2112] Service 'StorageChaser' initialized.\r\n2015-03-08 12:34:31.3713|INFO|ClusterVNodeController|========== [127.0.0.1:2112] SYSTEM START...\r\n2015-03-08 12:34:31.4535|INFO|ClusterVNodeController|========== [127.0.0.1:2112] IS UNKNOWN!!! WHOA!!!\r\n2015-03-08 12:34:31.4823|INFO|ElectionsService|ELECTIONS: (V=0) DONE. ELECTED MASTER = [127.0.0.1:2112,{ec13085f-91a2-46b5-ad7b-a9c2c18103d6}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000}). ME=[127.0.0.1:2112,{ec13085f-91a2-46b5-ad7b-a9c2c18103d6}](L=-1,W=0,C=0,E-1@-1:{00000000-0000-0000-0000-000000000000}).\r\n2015-03-08 12:34:31.4980|INFO|ClusterVNodeController|========== [127.0.0.1:2112] PRE-MASTER STATE, WAITING FOR CHASER TO CATCH UP...\r\n2015-03-08 12:34:31.4994|INFO|ClusterVNodeController|========== [127.0.0.1:2112] IS MASTER!!! SPARTA!!!\r\n2015-03-08 12:34:32.4293|INFO|UserManagementService|'admin' user account has been created\r\n2015-03-08 12:34:32.4996|INFO|ProjectionManager|Projection manager is initializing from the empty $projections-$all stream\r\n2015-03-08 12:34:32.8080|INFO|ProjectionManager|'$streams' projection source has been written\r\n2015-03-08 12:34:32.8263|INFO|ProjectionManager|'$stream_by_category' projection source has been written\r\n2015-03-08 12:34:32.8333|INFO|ProjectionManager|'$by_category' projection source has been written\r\n2015-03-08 12:34:32.8370|INFO|ProjectionManager|'$by_event_type' projection source has been written\r\n2015-03-08 12:34:32.8407|INFO|ProjectionManager|'$users' projection source has been written\r\n13\r\n* Assertion: should not be reached at tramp-amd64.c:400\r\n\r\nStacktrace:\r\n\r\n\r\nNative stacktrace:\r\n\r\n\t./clusternode() [0x6314f2]\r\n\t/lib64/libpthread.so.0(+0xf130) [0x7f45959fe130]\r\n\t/lib64/libc.so.6(gsignal+0x39) [0x7f45956635c9]\r\n\t/lib64/libc.so.6(abort+0x148) [0x7f4595664cd8]\r\n\t./clusternode() [0x580dc5]\r\n\t./clusternode() [0x580f06]\r\n\t./clusternode() [0x4602a3]\r\n\t[0x40876fa9]\r\n\r\nDebug info from gdb:\r\n\r\n\r\n=================================================================\r\nGot a SIGABRT while executing native code. This usually indicates\r\na fatal error in the mono runtime or one of the native libraries\r\nused by your application.\r\n=================================================================\r\n\r\nAborted (core dumped)\r\n```"},"comment":{"url":"https://api.github.com/repos/EventStore/EventStore/issues/comments/77748255","html_url":"https://github.com/EventStore/EventStore/issues/413#issuecomment-77748255","issue_url":"https://api.github.com/repos/EventStore/EventStore/issues/413","id":77748255,"user":{"login":"haf","id":193115,"avatar_url":"https://avatars.githubusercontent.com/u/193115?v=3","gravatar_id":"","url":"https://api.github.com/users/haf","html_url":"https://github.com/haf","followers_url":"https://api.github.com/users/haf/followers","following_url":"https://api.github.com/users/haf/following{/other_user}","gists_url":"https://api.github.com/users/haf/gists{/gist_id}","starred_url":"https://api.github.com/users/haf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haf/subscriptions","organizations_url":"https://api.github.com/users/haf/orgs","repos_url":"https://api.github.com/users/haf/repos","events_url":"https://api.github.com/users/haf/events{/privacy}","received_events_url":"https://api.github.com/users/haf/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T13:17:06Z","updated_at":"2015-03-08T13:17:06Z","body":"I think Suave is more than the socket though. I'd personally find a library I like and then replace its socket implementation in it. We'd absolutely welcome libevent or libuv PR ;).\r\n\r\nYes, you're probably right."}}