payload: {"action":"created","issue":{"url":"https://api.github.com/repos/silviucpp/erlcass/issues/42","repository_url":"https://api.github.com/repos/silviucpp/erlcass","labels_url":"https://api.github.com/repos/silviucpp/erlcass/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/silviucpp/erlcass/issues/42/comments","events_url":"https://api.github.com/repos/silviucpp/erlcass/issues/42/events","html_url":"https://github.com/silviucpp/erlcass/issues/42","id":460244010,"node_id":"MDU6SXNzdWU0NjAyNDQwMTA=","number":42,"title":"Segmentation fault","user":{"login":"dubrovine","id":23291485,"node_id":"MDQ6VXNlcjIzMjkxNDg1","avatar_url":"https://avatars0.githubusercontent.com/u/23291485?v=4","gravatar_id":"","url":"https://api.github.com/users/dubrovine","html_url":"https://github.com/dubrovine","followers_url":"https://api.github.com/users/dubrovine/followers","following_url":"https://api.github.com/users/dubrovine/following{/other_user}","gists_url":"https://api.github.com/users/dubrovine/gists{/gist_id}","starred_url":"https://api.github.com/users/dubrovine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dubrovine/subscriptions","organizations_url":"https://api.github.com/users/dubrovine/orgs","repos_url":"https://api.github.com/users/dubrovine/repos","events_url":"https://api.github.com/users/dubrovine/events{/privacy}","received_events_url":"https://api.github.com/users/dubrovine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2019-06-25T06:51:49Z","updated_at":"2019-08-28T14:48:49Z","closed_at":"2019-08-28T14:48:49Z","author_association":"NONE","body":"Hello there. \r\n\r\nI am trying to use prepared statements and I got such error\r\n\r\nhere is the details :\r\n\r\n```\r\nProcess:               beam.smp [39416]\r\nPath:                  /usr/local/Cellar/erlang/22.0.2/lib/erlang/erts-10.4.1/bin/beam.smp\r\nIdentifier:            beam.smp\r\nVersion:               0\r\nCode Type:             X86-64 (Native)\r\nParent Process:        ??? [39412]\r\nResponsible:           beam.smp [39416]\r\nUser ID:               501\r\n\r\nDate/Time:             2019-06-25 09:42:03.471 +0300\r\nOS Version:            Mac OS X 10.14.5 (18F132)\r\nReport Version:        12\r\nAnonymous UUID:        8A45D459-111E-8A3B-4060-6F29BD632111\r\n\r\nSleep/Wake UUID:       BB7D50C2-EB6F-47C2-ACBE-A39E64A0EFB5\r\n\r\nTime Awake Since Boot: 100000 seconds\r\nTime Since Wake:       2200 seconds\r\n\r\nSystem Integrity Protection: enabled\r\n\r\nCrashed Thread:        35\r\n\r\nException Type:        EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes:       KERN_INVALID_ADDRESS at 0x00007fb2a1e2b330\r\nException Note:        EXC_CORPSE_NOTIFY\r\n\r\nTermination Signal:    Segmentation fault: 11\r\nTermination Reason:    Namespace SIGNAL, Code 0xb\r\nTerminating Process:   exc handler [39416]\r\n\r\nThread 35 Crashed:\r\n0   erlcass_nif.so                \t0x000000005af371b0 cass::decode_int32(char*, int&) + 16\r\n1   erlcass_nif.so                \t0x000000005b02689b cass::UserTypeFieldIterator::decode_field(char*) + 43\r\n2   erlcass_nif.so                \t0x000000005b026847 cass::UserTypeFieldIterator::next() + 167\r\n3   erlcass_nif.so                \t0x000000005ae4a566 cass_iterator_next + 38\r\n4   erlcass_nif.so                \t0x000000005ada93a0 udt_to_erlang_term(enif_environment_t*, CassValue_ const*) + 128 (data_conversion.cc:390)\r\n5   erlcass_nif.so                \t0x000000005ada90a6 collection_to_erlang_term(enif_environment_t*, CassValue_ const*) + 198 (data_conversion.cc:346)\r\n6   erlcass_nif.so                \t0x000000005ada9cf6 cass_result_to_erlang_term(enif_environment_t*, CassResult_ const*) + 374 (data_conversion.cc:449)\r\n7   erlcass_nif.so                \t0x000000005ada4045 on_statement_executed(CassFuture_*, void*) + 261 (nif_cass_session.cc:166)\r\n8   erlcass_nif.so                \t0x000000005ae3a64b cass::Future::internal_set(cass::ScopedLock<cass::Mutex>&) + 107\r\n9   erlcass_nif.so                \t0x000000005af2818e cass::ResponseFuture::set_response(cass::Address, cass::SharedRefPtr<cass::Response> const&) + 190\r\n10  erlcass_nif.so                \t0x000000005af2807e cass::RequestHandler::set_response(cass::SharedRefPtr<cass::Host> const&, cass::SharedRefPtr<cass::Response> const&) + 142\r\n11  erlcass_nif.so                \t0x000000005af2afb8 cass::RequestExecution::set_response(cass::SharedRefPtr<cass::Response> const&) + 56\r\n12  erlcass_nif.so                \t0x000000005af296c5 cass::RequestExecution::on_result_response(cass::Connection*, cass::ResponseMessage*) + 677\r\n13  erlcass_nif.so                \t0x000000005af292cd cass::RequestExecution::on_set(cass::ResponseMessage*) + 301\r\n14  erlcass_nif.so                \t0x000000005add72c1 cass::Connection::consume(char*, unsigned long) + 2993\r\n15  erlcass_nif.so                \t0x000000005add8a5b cass::Connection::on_read(uv_stream_s*, long, uv_buf_t const*) + 1083\r\n16  libuv.1.dylib                 \t0x00000000146d7d32 uv__stream_io + 1231\r\n17  libuv.1.dylib                 \t0x00000000146df183 uv__io_poll + 1704\r\n18  libuv.1.dylib                 \t0x00000000146cfc37 uv_run + 320\r\n19  erlcass_nif.so                \t0x000000005af56db1 cass::LoopThread::on_run_internal(void*) + 49\r\n20  libsystem_pthread.dylib       \t0x00007fff7c3912eb _pthread_body + 126\r\n21  libsystem_pthread.dylib       \t0x00007fff7c394249 _pthread_start + 66\r\n22  libsystem_pthread.dylib       \t0x00007fff7c39040d thread_start + 13\r\n```\r\n\r\nHere is the table settings & prepared statement\r\n\r\n```\r\nCREATE TABLE test ( \r\n    companyId text,\r\n    releaseId timeuuid,\r\n    created timestamp,\r\n    user frozen<user>,\r\n    name text, \r\n    description text,\r\n    release map<text, frozen<viewReleaseInfo>>,\r\n    PRIMARY KEY (companyId, releaseId)\r\n) WITH  \r\n    comment='\r\n        View releases\r\n    ';\r\n```\r\n\r\n```\r\n    ok = erlcass:add_prepare_statement(\r\n        test,\r\n        <<\r\n            \"SELECT \"\r\n                \"releaseId, \"\r\n                \"release \"\r\n            \"FROM test \"\r\n            \"WHERE \"\r\n                \"companyId=? AND releaseId<? \"\r\n            \"ORDER BY releaseId DESC LIMIT 1\"\r\n        >>\r\n    ),\r\n```\r\n\r\nthe query is working fine when I execute it from app console but crashing when I use it through the application api \r\n\r\nbtw: \r\nerlcass v3.2.4\r\nerlang 22\r\n\r\nif you need additional information let me know"},"comment":{"url":"https://api.github.com/repos/silviucpp/erlcass/issues/comments/525780027","html_url":"https://github.com/silviucpp/erlcass/issues/42#issuecomment-525780027","issue_url":"https://api.github.com/repos/silviucpp/erlcass/issues/42","id":525780027,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNTc4MDAyNw==","user":{"login":"silviucpp","id":4814731,"node_id":"MDQ6VXNlcjQ4MTQ3MzE=","avatar_url":"https://avatars0.githubusercontent.com/u/4814731?v=4","gravatar_id":"","url":"https://api.github.com/users/silviucpp","html_url":"https://github.com/silviucpp","followers_url":"https://api.github.com/users/silviucpp/followers","following_url":"https://api.github.com/users/silviucpp/following{/other_user}","gists_url":"https://api.github.com/users/silviucpp/gists{/gist_id}","starred_url":"https://api.github.com/users/silviucpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviucpp/subscriptions","organizations_url":"https://api.github.com/users/silviucpp/orgs","repos_url":"https://api.github.com/users/silviucpp/repos","events_url":"https://api.github.com/users/silviucpp/events{/privacy}","received_events_url":"https://api.github.com/users/silviucpp/received_events","type":"User","site_admin":false},"created_at":"2019-08-28T14:48:49Z","updated_at":"2019-08-28T14:48:49Z","author_association":"OWNER","body":"Thanks I'll close the bug"}}
other: {"actor":{"display_login":"silviucpp"}}