{"action":"created","issue":{"url":"https://api.github.com/repos/aerospike/aerospike-server/issues/105","labels_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/105/comments","events_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/105/events","html_url":"https://github.com/aerospike/aerospike-server/issues/105","id":117277502,"number":105,"title":"SIGSEGV crashed when get namespace not exist.","user":{"login":"absolute8511","id":678699,"avatar_url":"https://avatars.githubusercontent.com/u/678699?v=3","gravatar_id":"","url":"https://api.github.com/users/absolute8511","html_url":"https://github.com/absolute8511","followers_url":"https://api.github.com/users/absolute8511/followers","following_url":"https://api.github.com/users/absolute8511/following{/other_user}","gists_url":"https://api.github.com/users/absolute8511/gists{/gist_id}","starred_url":"https://api.github.com/users/absolute8511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/absolute8511/subscriptions","organizations_url":"https://api.github.com/users/absolute8511/orgs","repos_url":"https://api.github.com/users/absolute8511/repos","events_url":"https://api.github.com/users/absolute8511/events{/privacy}","received_events_url":"https://api.github.com/users/absolute8511/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aerospike/aerospike-server/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T03:54:57Z","updated_at":"2016-01-09T00:51:46Z","closed_at":null,"body":"The client tried twice requests with the non-exist namespace and the server is down. Log as below:\r\n\r\nNov 17 2015 03:37:40 GMT: WARNING (demarshal): (thr_demarshal.c::570) Can't get namespace from AS_MSG (peeked 83 bytes) ~~ Using default thr_demarshal arena.\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::160) SIGSEGV received, aborting Aerospike Community Edition build 3.5.15\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: found 7 frames\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 0: /opt/aerospike/bin/asd(as_sig_handle_segv+0x59) [0x46f718]\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 1: /lib64/libc.so.6() [0x3dc08326a0]\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 2: /opt/aerospike/bin/asd(as_msg_peek_data_in_memory+0x32) [0x4676e2]\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 3: /opt/aerospike/bin/asd(thr_tsvc_process_or_enqueue+0x29) [0x4c027f]\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 4: /opt/aerospike/bin/asd(thr_demarshal+0x38f) [0x48416a]\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 5: /lib64/libpthread.so.0() [0x3dc0c07a51]\r\nNov 17 2015 03:37:40 GMT: WARNING (as): (signal.c::162) stacktrace: frame 6: /lib64/libc.so.6(clone+0x6d) [0x3dc08e893d]"},"comment":{"url":"https://api.github.com/repos/aerospike/aerospike-server/issues/comments/170171547","html_url":"https://github.com/aerospike/aerospike-server/issues/105#issuecomment-170171547","issue_url":"https://api.github.com/repos/aerospike/aerospike-server/issues/105","id":170171547,"user":{"login":"psi-mankoski","id":1413500,"avatar_url":"https://avatars.githubusercontent.com/u/1413500?v=3","gravatar_id":"","url":"https://api.github.com/users/psi-mankoski","html_url":"https://github.com/psi-mankoski","followers_url":"https://api.github.com/users/psi-mankoski/followers","following_url":"https://api.github.com/users/psi-mankoski/following{/other_user}","gists_url":"https://api.github.com/users/psi-mankoski/gists{/gist_id}","starred_url":"https://api.github.com/users/psi-mankoski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psi-mankoski/subscriptions","organizations_url":"https://api.github.com/users/psi-mankoski/orgs","repos_url":"https://api.github.com/users/psi-mankoski/repos","events_url":"https://api.github.com/users/psi-mankoski/events{/privacy}","received_events_url":"https://api.github.com/users/psi-mankoski/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T00:51:46Z","updated_at":"2016-01-09T00:51:46Z","body":"Hello. Are you still seeing this problem? What version of the Java client are you using? Have you tried the latest Aerospike Server CE release (3.7.1)?\r\n\r\nSo far, we have been unable to trigger a crash with a simple Java client app. (using Java client version 3.1.5) based upon the line you sent: [The commented-out lines show various different test cases we attempted.]\r\n\r\nimport com.aerospike.client.*;\r\n\r\npublic class test {\r\n\tstatic public void main(String args[]) {\r\n\t\tAerospikeClient client = new AerospikeClient(\"127.0.0.1\", 3000);\r\n\r\n//\t\tKey key = new Key(\"test\", \"\", \"JK1\");\r\n//\t\tKey key = new Key(null, \"\", \"JK1\");\r\n//\t\tKey key = new Key(null, null, \"JK1\");\r\n\t\tKey key = new Key(null, null, \"\");\r\n//\t\tBin bin = new Bin(\"B1\", \"V1\");\r\n\t\tBin bin = new Bin(null, \"\");\r\n\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tSystem.out.println(\"Test[\" + i + \"]:\");\r\n\t\t\ttry {\r\n\t\t\t\t// Write a record\r\n\t\t\t\tclient.put(null, key, bin);\r\n\t\t\t} catch (AerospikeException ex) {\r\n\t\t\t\tSystem.out.println(\"Caught exception: \" + ex);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Read a record\r\n\t\tRecord record = client.get(null, key);\r\n\r\n\t\tclient.close();\r\n\t}\r\n}\r\n"}}