{"action":"created","issue":{"url":"https://api.github.com/repos/scylladb/scylla/issues/1635","repository_url":"https://api.github.com/repos/scylladb/scylla","labels_url":"https://api.github.com/repos/scylladb/scylla/issues/1635/labels{/name}","comments_url":"https://api.github.com/repos/scylladb/scylla/issues/1635/comments","events_url":"https://api.github.com/repos/scylladb/scylla/issues/1635/events","html_url":"https://github.com/scylladb/scylla/issues/1635","id":174320315,"number":1635,"title":"CQL UUID parsing marshal error","user":{"login":"penberg","id":81939,"avatar_url":"https://avatars.githubusercontent.com/u/81939?v=3","gravatar_id":"","url":"https://api.github.com/users/penberg","html_url":"https://github.com/penberg","followers_url":"https://api.github.com/users/penberg/followers","following_url":"https://api.github.com/users/penberg/following{/other_user}","gists_url":"https://api.github.com/users/penberg/gists{/gist_id}","starred_url":"https://api.github.com/users/penberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penberg/subscriptions","organizations_url":"https://api.github.com/users/penberg/orgs","repos_url":"https://api.github.com/users/penberg/repos","events_url":"https://api.github.com/users/penberg/events{/privacy}","received_events_url":"https://api.github.com/users/penberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-08-31T16:34:22Z","updated_at":"2016-09-01T07:28:11Z","closed_at":null,"body":"*Installation details*\r\nScylla version (or git commit hash): 1.3\r\n\r\nScylla throws a marshal exception for the following UUID although it works fine in Cassandra:\r\n\r\n```\r\nCREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'};\r\nUSE test;\r\nCREATE TABLE IF NOT EXISTS breadshop (userID uuid primary key, type text, bread map<text, int>, cost float, rate double, time timestamp);\r\nINSERT INTO breadshop (userid, type, bread, cost, rate, time) VALUES (80761BE4-C2E8-4329-A3BA-B6E0688CC775, 'Sandwitch', {'Chicken Roller': 3, 'Steak Roller': 7, 'Spicy Chicken Roller': 9}, 2.1, 9.1, dateof(now()));\r\n```\r\n\r\nFull backtrace:\r\n\r\n```\r\n#0  0x00007ffff724f39d in __cxa_throw () from /lib64/libstdc++.so.6\r\n#1  0x0000000000bcff18 in uuid_type_impl::from_string (this=<optimized out>, s=\"80761BE4-C2E8-4329-A3BA-B6E0688CC775\") at types.cc:803\r\n#2  0x0000000000c7fe41 in cql3::constants::literal::parsed_value (this=this@entry=0x600000321820, validator=...) at cql3/constants.cc:76\r\n#3  0x0000000000c80579 in cql3::constants::literal::prepare (this=0x600000321820, db=..., keyspace=..., receiver=...) at cql3/constants.cc:153\r\n#4  0x0000000000aa6804 in cql3::statements::raw::insert_statement::prepare_internal (this=0x60000132a910, db=..., schema=..., bound_names=..., attrs=...) at cql3/statements/update_statement.cc:160\r\n#5  0x0000000000a8efee in cql3::statements::raw::modification_statement::prepare (this=this@entry=0x60000132a910, db=..., bound_names=...) at cql3/statements/modification_statement.cc:589\r\n#6  0x0000000000a8f77d in cql3::statements::raw::modification_statement::prepare (this=0x60000132a910, db=...) at cql3/statements/modification_statement.cc:578\r\n#7  0x0000000000c86d48 in cql3::query_processor::get_statement (this=this@entry=0x6000000ac810, query=\"INSERT INTO breadshop (userID, type, rate, bread, time, cost) VALUES(80761BE4-C2E8-4329-A3BA-B6E0688CC775, 'Sandwich', 9.1, { 'Chicken Roller' : 3, 'Steak Roller' : 7, 'Spicy Chicken Roller' : 9 }, 14\"..., \r\n    client_state=...) at cql3/query_processor.cc:288\r\n#8  0x0000000000c86e43 in cql3::query_processor::process (this=0x6000000ac810, query_string=\"INSERT INTO breadshop (userID, type, rate, bread, time, cost) VALUES(80761BE4-C2E8-4329-A3BA-B6E0688CC775, 'Sandwich', 9.1, { 'Chicken Roller' : 3, 'Steak Roller' : 7, 'Spicy Chicken Roller' : 9 }, 14\"..., query_state=..., \r\n    options=...) at cql3/query_processor.cc:119\r\n#9  0x0000000000a01b4e in transport::cql_server::connection::process_query (this=0x600000047110, stream=<optimized out>, buf=\"\", client_state=...) at transport/server.cc:783\r\n#10 0x0000000000a0a818 in transport::cql_server::connection::<lambda()>::operator() (__closure=0x7fffffffb8b0) at transport/server.cc:509\r\n#11 apply_helper<transport::cql_server::connection::process_request_one(bytes_view, uint8_t, uint16_t, service::client_state, transport::cql_server::connection::tracing_request_type)::<lambda()>, std::tuple<>&&, std::integer_sequence<long unsigned int> >::apply (args=<optimized out>, func=<optimized out>)\r\n    at /home/penberg/scylla/seastar/core/apply.hh:34\r\n#12 apply<transport::cql_server::connection::process_request_one(bytes_view, uint8_t, uint16_t, service::client_state, transport::cql_server::connection::tracing_request_type)::<lambda()> > (args=<optimized out>, func=<optimized out>) at /home/penberg/scylla/seastar/core/apply.hh:42\r\n#13 futurize<future<std::pair<shared_ptr<transport::cql_server::response>, service::client_state> > >::apply<transport::cql_server::connection::process_request_one(bytes_view, uint8_t, uint16_t, service::client_state, transport::cql_server::connection::tracing_request_type)::<lambda()> > (args=<optimized out>, \r\n    func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5ddba04>) at /home/penberg/scylla/seastar/core/future.hh:1211\r\n#14 future<>::then<transport::cql_server::connection::process_request_one(bytes_view, uint8_t, uint16_t, service::client_state, transport::cql_server::connection::tracing_request_type)::<lambda()> > (func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5e0e9a7>, this=0x7fffffffb710)\r\n    at /home/penberg/scylla/seastar/core/future.hh:837\r\n#15 transport::cql_server::connection::process_request_one (this=0x600000047110, buf=\"\\000\\000\\000\\332INSERT INTO breadshop (userID, type, rate, bread, time, cost) VALUES(80761BE4-C2E8-4329-A3BA-B6E0688CC775, 'Sandwich', 9.1, { 'Chicken Roller' : 3, 'Steak Roller' : 7, 'Spicy Chicken Roller' : 9 }\"..., \r\n    op=<optimized out>, stream=<optimized out>, client_state=..., tracing_request=transport::cql_server::connection::tracing_request_type::not_requested) at transport/server.cc:481\r\n#16 0x0000000000a0b8f3 in transport::cql_server::connection::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>::<lambda()>::<lambda()>::operator()(void) (__closure=__closure@entry=0x6000012cc800) at transport/server.cc:662\r\n#17 0x0000000000a0d117 in futurize<future<std::pair<foreign_ptr<shared_ptr<transport::cql_server::response> >, service::client_state> > >::apply<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>::<lambda()> mutable::<lambda()>&> (func=...) at /home/penberg/scylla/seastar/core/future.hh:1221\r\n#18 smp::submit_to<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>::<lambda()> mutable::<lambda()> > (\r\n    func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5e0a0cb>, t=0) at /home/penberg/scylla/seastar/core/reactor.hh:1065\r\n#19 transport::cql_server::connection::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>::<lambda()>::operator() (__closure=0x7fffffffc580) at transport/server.cc:661\r\n#20 seastar::with_gate<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>::<lambda()> > (\r\n    func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5e5ff08>, g=...) at /home/penberg/scylla/seastar/core/gate.hh:120\r\n#21 transport::cql_server::connection::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>::operator() (__closure=0x7fffffffcb00, __closure=0x7fffffffcb00, __closure=0x7fffffffcb00, __closure=0x7fffffffcb00, \r\n    __closure=0x7fffffffcb00, buf=<error reading variable: access outside bounds of object referenced via synthetic pointer>) at transport/server.cc:658\r\n#22 apply_helper<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>, std::tuple<temporary_buffer<char> >&&, std::integer_sequence<long unsigned int, 0ul> >::apply (\r\n    args=args@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5c20ee1>, func=func@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5dd3e2f>) at /home/penberg/scylla/seastar/core/apply.hh:34\r\n#23 apply<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>, temporary_buffer<char> > (args=<optimized out>, func=<optimized out>)\r\n    at /home/penberg/scylla/seastar/core/apply.hh:42\r\n#24 futurize<future<> >::apply<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)>, temporary_buffer<char> >(<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5dcc2ea>, <unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5c20ee1>) (func=func@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5dcc2ea>, \r\n    args=args@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5c20ee1>) at /home/penberg/scylla/seastar/core/future.hh:1211\r\n#25 0x0000000000a0f433 in future<temporary_buffer<char> >::then<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::<lambda(temporary_buffer<char>)> > (\r\n    func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5e099f3>, this=0x7fffffffcc10) at /home/penberg/scylla/seastar/core/future.hh:837\r\n#26 transport::cql_server::connection::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>::operator() (__closure=__closure@entry=0x7fffffffca60) at transport/server.cc:682\r\n#27 apply_helper<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()>, std::tuple<>&&, std::integer_sequence<long unsigned int> >::apply (args=<optimized out>, func=<optimized out>)\r\n    at /home/penberg/scylla/seastar/core/apply.hh:34\r\n#28 apply<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()> > (args=<optimized out>, func=<optimized out>) at /home/penberg/scylla/seastar/core/apply.hh:42\r\n#29 futurize<future<> >::apply<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()> >(<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5d96324>, <unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5c1a59a>) (func=func@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5d96324>, args=<optimized out>) at /home/penberg/scylla/seastar/core/future.hh:1211\r\n#30 0x0000000000a101d8 in future<>::then<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()> > (func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5dcc109>, \r\n    this=0x7fffffffcce0) at /home/penberg/scylla/seastar/core/future.hh:837\r\n#31 with_semaphore<semaphore_default_exception_factory, transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::<lambda()> > (\r\n    func=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5e098e4>, units=8450, sem=...) at /home/penberg/scylla/seastar/core/semaphore.hh:319\r\n#32 transport::cql_server::connection::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>::operator() (v=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5cbf22d>, __closure=0x6000012fe040) at transport/server.cc:682\r\n#33 futurize<future<> >::apply<transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>, future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> > >(<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5dc89bb>, <unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5cbf22d>) (func=func@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5dc89bb>, \r\n    args#0=args#0@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5cbf22d>) at /home/penberg/scylla/seastar/core/future.hh:1221\r\n#34 0x0000000000a1779e in future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >::<lambda(auto:2&&)>::operator()<future_state<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> > > (\r\n    state=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x5a83699, DIE 0x5cbefad>, __closure=0x6000012fe020) at /home/penberg/scylla/seastar/core/future.hh:886\r\n#35 continuation<future<T>::then_wrapped(Func&&) [with Func = transport::cql_server::connection::process_request()::<lambda(future<std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >&&)>; Result = future<>; T = {std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3>}]::<lambda(auto:2&&)>, std::experimental::fundamentals_v1::optional<transport::cql_binary_frame_v3> >::run(void) (this=0x6000012fe000) at /home/penberg/scylla/seastar/core/future.hh:389\r\n#36 0x000000000048f3b9 in reactor::run_tasks (this=this@entry=0x6000002a2000, tasks=...) at core/reactor.cc:1896\r\n#37 0x00000000004c79eb in reactor::run (this=0x6000002a2000) at core/reactor.cc:2316\r\n#38 0x00000000005453f4 in app_template::run_deprecated(int, char**, std::function<void ()>&&) (this=this@entry=0x7fffffffd9e0, ac=ac@entry=12, av=av@entry=0x7fffffffdc58, func=func@entry=<unknown type in /home/penberg/scylla/build/release/scylla, CU 0x744bf6, DIE 0x80b643>) at core/app-template.cc:131\r\n#39 0x0000000000420f32 in main (ac=12, av=0x7fffffffdc58) at main.cc:662\r\n```\r\n\r\nSpotted by https://github.com/IBM-Swift/Kassandra tests."},"comment":{"url":"https://api.github.com/repos/scylladb/scylla/issues/comments/243998256","html_url":"https://github.com/scylladb/scylla/issues/1635#issuecomment-243998256","issue_url":"https://api.github.com/repos/scylladb/scylla/issues/1635","id":243998256,"user":{"login":"penberg","id":81939,"avatar_url":"https://avatars.githubusercontent.com/u/81939?v=3","gravatar_id":"","url":"https://api.github.com/users/penberg","html_url":"https://github.com/penberg","followers_url":"https://api.github.com/users/penberg/followers","following_url":"https://api.github.com/users/penberg/following{/other_user}","gists_url":"https://api.github.com/users/penberg/gists{/gist_id}","starred_url":"https://api.github.com/users/penberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/penberg/subscriptions","organizations_url":"https://api.github.com/users/penberg/orgs","repos_url":"https://api.github.com/users/penberg/repos","events_url":"https://api.github.com/users/penberg/events{/privacy}","received_events_url":"https://api.github.com/users/penberg/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T07:28:11Z","updated_at":"2016-09-01T07:28:11Z","body":"@tgrabiec Like I said, no ASan errors, so unlikely to be use-after-free."}}
{"actor":{"display_login":"penberg"}}