rethinkdb / rethinkdb-enterprise

Other
0 stars 0 forks source link

Testing bugs #7

Closed nighelles closed 8 years ago

nighelles commented 8 years ago

This was apparently during polyglot/regression/469.py2.6

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffd8bff700 (LWP 18225)] 0x00000000012fc6e8 in je_arena_tcache_fill_small () (gdb) bt

0 0x00000000012fc6e8 in je_arena_tcache_fill_small ()

1 0x0000000001311c9f in je_tcache_alloc_small_hard ()

2 0x00000000012f2a87 in malloc ()

3 0x00007ffff7b34dad in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

4 0x0000000000c070cb in make_counted<ql::make_obj_term_t, ql::compile_env_t*&, ql::raw_term_t const&> (args=..., args=...) at ./src/containers/counted.hpp:133

5 ql::make_make_obj_term (env=0x7fffd4d63dd8, term=...) at src/rdb_protocol/terms/datum_terms.cc:162

6 0x0000000000c62497 in ql::compile_on_current_stack (env=0x7fffd4d63dd8, t=...) at src/rdb_protocol/term.cc:30

7 0x0000000000c643ef in operator() (this=) at src/rdb_protocol/term.cc:217

8 call_with_enough_stack<counted_t, (lambda at src/rdb_protocol/term.cc:216:61)> (min_bytes_free=16384, fun=)

at ./src/arch/runtime/coroutines.hpp:264

9 ql::compile_term (env=, t=...) at src/rdb_protocol/term.cc:216

10 0x0000000000aa51a4 in ql::func_term_t::func_term_t (this=, env=, t=...) at src/rdb_protocol/func.cc:201

11 0x0000000000c62d40 in make_counted<ql::func_term_t, ql::compile_env_t*&, ql::raw_term_t const&> (args=..., args=...) at ./src/containers/counted.hpp:133

12 ql::compile_on_current_stack (env=0x7fffd4d64ff8, t=...) at src/rdb_protocol/term.cc:136

13 0x0000000000c643ef in operator() (this=) at src/rdb_protocol/term.cc:217

14 call_with_enough_stack<counted_t, (lambda at src/rdb_protocol/term.cc:216:61)> (min_bytes_free=16384, fun=)

at ./src/arch/runtime/coroutines.hpp:264

15 ql::compile_term (env=, t=...) at src/rdb_protocol/term.cc:216

16 0x0000000000cf4d58 in ql::op_term_t::op_term_t (this=0x7fffc641eb80, env=, term=..., argspec=..., optargspec=...) at src/rdb_protocol/op.cc:184

17 0x0000000000c37522 in grouped_seq_op_term_t<ql::compile_env_t*, ql::raw_term_t, ql::argspec_t> (args=..., this=, args=..., args=...)

at ./src/rdb_protocol/op.hpp:192

18 ql::map_term_t::map_term_t (this=0x7fffc641eb80, env=0x7fffd4d64ff8, term=...) at src/rdb_protocol/terms/seq.cc:174

19 0x0000000000c2b38c in make_counted<ql::map_term_t, ql::compile_env_t*&, ql::raw_term_t const&> (args=..., args=...) at ./src/containers/counted.hpp:133

20 ql::make_map_term (env=0x7fffd78a4010, term=...) at src/rdb_protocol/terms/seq.cc:897

21 0x0000000000c62814 in ql::compile_on_current_stack (env=0x7fffd4d64ff8, t=...) at src/rdb_protocol/term.cc:79

22 0x0000000000c643ef in operator() (this=) at src/rdb_protocol/term.cc:217

23 call_with_enough_stack<counted_t, (lambda at src/rdb_protocol/term.cc:216:61)> (min_bytes_free=16384, fun=)

at ./src/arch/runtime/coroutines.hpp:264

24 ql::compile_term (env=, t=...) at src/rdb_protocol/term.cc:216

25 0x0000000000b62865 in ql::query_cache_t::create (this=0x7fffeec82340, query_params=0x7fffd7899660, interruptor=0x7fffd4d65310) at src/rdb_protocol/query_cache.cc:61

26 0x0000000000bbb4c8 in rdb_query_server_t::run_query (this=0x7fffd78642c8, query_params=0x7fffd7899660, response_out=0x7fffd4d654d0, interruptor=0x7fffd4d65310)

at src/rdb_protocol/query_server.cc:44

27 0x00000000007b95f0 in query_server_t::handle (this=0x7fffd78642d0, req=..., result=0x7fffd4d65d40, interruptor=0x7fffeec7e6b0) at src/client_protocol/server.cc:740

28 0x0000000000a678a1 in routing_http_app_t::handle (this=, req=..., result=0x7fffd4d65d40, interruptor=0x7fffeec7e6b0) at src/http/routing_app.cc:29

29 0x0000000000a678a1 in routing_http_app_t::handle (this=, req=..., result=0x7fffd4d65d40, interruptor=0x7fffeec7e6b0) at src/http/routing_app.cc:29

30 0x0000000000a6c55c in http_server_t::handle_conn (this=, nconn=..., keepalive=...) at src/http/http.cc:426

31 0x0000000000a6f714 in operator() (this=, p=, a1=..., a2=...) at /usr/local/include/boost/bind/mem_fn_template.hpp:280

32 boost::_bi::list3boost::_bi::value<http_server_t*, boost::arg<1>, boost::_bi::value >::operator()<boost::_mfi::mf2<void, http_server_t, scoped_ptr_t const&, auto_drainer_t::lock_t>, boost::_bi::list1<scoped_ptr_t&> > (this=, f=...,

a=...) at /usr/local/include/boost/bind/bind.hpp:392

33 0x0000000000a6f5fa in operator()<scoped_ptr_t > (this=0x1, a1=...) at /usr/local/include/boost/bind/bind_template.hpp:32

34 std::_Function_handler<void (scoped_ptr_t&), boost::_bi::bind_t<void, boost::_mfi::mf2<void, http_server_t, scoped_ptr_t const&, auto_drainer_t::lock_t>, boost::_bi::list3boost::_bi::value<http_server_t*, boost::arg<1>, boost::_bi::value > > >::_M_invoke(std::_Any_data const&, scoped_ptr_t&) (functor=..., args=...)

at /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/functional:2071

35 0x0000000000759ff7 in operator() (this=, __args=...) at /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/functional:2471

---Type to continue, or q to quit---

36 linux_nonthrowing_tcp_listener_t::handle (this=, socket=) at src/arch/io/network.cc:1640

37 0x0000000000760434 in coro_t::run () at src/arch/runtime/coroutines.cc:277

38 0x0000000000000000 in ?? ()

nighelles commented 8 years ago

0 hash_region_t (_beg=, _end=, _inner=..., this=) at ./src/region/hash_region.hpp:58

1 void region_map_t<std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > >::visit<void table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t>(void (primary_query_clientt::)(fifo_enforcer_sink_t::exit_writet), void (primary_query_clientt::)(write_t const&, write_responset, order_token_t, fifo_enforcer_sink_t::exit_writet, signalt), write_t const&, write_responset, order_token_t, signalt)::{lambda(hash_region_t const&, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1}>(hash_region_t const&, void table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t>(void (primary_query_clientt::)(fifo_enforcer_sink_t::exit_writet), void (primary_query_clientt::)(write_t const&, write_responset, order_token_t, fifo_enforcer_sink_t::exit_writet, signalt), write_t const&, write_responset, order_token_t, signalt)::{lambda(hash_region_t const&, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1} const&) const::{lambda(key_range_t::right_bound_t const&, key_range_t::right_bound_t const, range_map_t<unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > > const&)#1}::operator()(key_range_t::right_bound_t const, key_range_t::right_bound_t const, range_map_t<unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > > const) const::{lambda(unsigned long, unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1}::operator()(unsigned long, unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t*> > const&) const (this=0x7fff79303978, b=, e=, value=...) at ./src/region/region_map.hpp:94

2 0x00000000009b70fb in visit<(lambda at ./src/region/region_map.hpp:90:21)> (l=@0x7fff79303ad0: 0, this=, r=, cb=...)

at ./src/containers/range_map.hpp:88

3 operator() (this=, l=..., r=..., hrm=...) at ./src/region/region_map.hpp:89

4 range_map_t<key_range_t::right_bound_t, range_map_t<unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > > >::visit<void region_map_t<std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > >::visit<void table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t>(void (primary_query_clientt::)(fifo_enforcer_sink_t::exit_writet), void (primary_query_clientt::)(write_t const&, write_responset, order_token_t, fifo_enforcer_sink_t::exit_writet, signalt), write_t const&, write_responset, order_token_t, signalt)::{lambda(hash_region_t const&, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1}>(hash_region_t const&, void table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t>(void (primary_query_clientt::)(fifo_enforcer_sink_t::exit_writet), void (primary_query_clientt::)(write_t const&, write_responset, order_token_t, fifo_enforcer_sink_t::exit_writet, signalt), write_t const&, write_responset, order_token_t, signalt)::{lambda(hash_region_t const&, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1} const&) const::{lambda(key_range_t::right_bound_t const&, key_range_t::right_bound_t const, range_map_t<unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > > const&)#1}>(key_range_t::right_bound_t const, key_range_t::right_bound_t const, void region_map_t<std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > >::visit<void table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t>(void (primary_query_clientt::)(fifo_enforcer_sink_t::exit_writet), void (primary_query_clientt::)(write_t const&, write_responset, order_token_t, fifo_enforcer_sink_t::exit_writet, signalt), write_t const&, write_responset, order_token_t, signalt)::{lambda(hash_region_t const&, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1}>(hash_region_t const&, void table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t>(void (primary_query_clientt::)(fifo_enforcer_sink_t::exit_writet), void (primary_query_clientt::)(write_t const&, write_responset, order_token_t, fifo_enforcer_sink_t::exit_writet, signalt), write_t const&, write_responset, order_token_t, signalt)::{lambda(hash_region_t const&, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t> > const&)#1} const&) const::{lambda(key_range_t::right_bound_t const&, key_range_t::right_bound_t, range_map_t<unsigned long, std::set<table_query_client_t::relationship_t, std::less<table_query_client_t::relationship_t>, std::allocator<table_query_client_t::relationship_t*> > > const&)#1} const&) const (this=, l=..., r=..., cb=...)

at ./src/containers/range_map.hpp:92

5 0x00000000009b232f in visit<(lambda at src/clustering/query_routing/table_query_client.cc:206:5)> (region=...,

cb=<error reading variable: Cannot access memory at address 0x0>, this=<optimized out>) at ./src/region/region_map.hpp:87

6 table_query_client_t::dispatch_immediate_op<write_t, fifo_enforcer_sink_t::exit_write_t, write_response_t> (this=0x7fff44b859c0, how_to_make_token=,

how_to_run_query=<optimized out>, op=..., response=0x0, order_token=..., interruptor=<optimized out>) at src/clustering/query_routing/table_query_client.cc:205

7 0x00000000009aea9b in table_query_client_t::write (this=0x7fff44b859c0, user_context=..., w=..., response=0x7fff79304470, order_token=...,

interruptor=0x7fffe0033378) at src/clustering/query_routing/table_query_client.cc:153

8 0x0000000000b839c7 in real_table_t::write_with_profile (this=, env=, write=0x7fff793044b0, response=0x7fff79304470)

at src/rdb_protocol/real_table.cc:356

9 0x0000000000b83fb6 in real_table_t::write_batched_insert(ql::envt, std::vector<ql::datum_t, std::allocator >&&, std::vector<bool, std::allocator >&&, conflict_behavior_t, boost::optional<counted_t >, return_changes_t, durability_requirement_t) (this=0x7fff73ff81a0, env=0x7fff79305a10,

inserts=<optimized out>,
pkey_is_autogenerated=<unknown type in /home/ssd2/nighelles/rethinkdb-enterprise/build/release_clang/rethinkdb, CU 0x3244bfe, DIE 0x32a1a7b>,
conflict_behavior=ERROR, conflict_func=..., return_changes=<optimized out>, durability=<optimized out>) at src/rdb_protocol/real_table.cc:294

---Type to continue, or q to quit---

10 0x0000000000ca599a in ql::table_t::batched_insert(ql::envt, std::vector<ql::datum_t, std::allocator >&&, std::vector<bool, std::allocator >&&, conflict_behavior_t, boost::optional<counted_t >, durability_requirement_t, return_changes_t) (this=0x7fff71d8b5c0, env=0x7fff79305a10,

insert_datums=<optimized out>, pkey_was_autogenerated=<optimized out>, conflict_behavior=ERROR, conflict_func=..., durability_requirement=<optimized out>,
return_changes=NO) at src/rdb_protocol/val.cc:367

11 0x0000000000c5d38b in ql::insert_term_t::eval_impl (this=0x7fff5b3ffa80, env=0x7fff79305840, args=) at src/rdb_protocol/terms/writes.cc:218

12 0x0000000000cf5e79 in ql::op_term_t::term_eval (this=0x7fff5b3ffa80, env=0x7fff79305840, eval_flags=ql::NO_FLAGS) at src/rdb_protocol/op.cc:232

13 0x0000000000c64766 in ql::runtime_term_t::eval_on_current_stack (this=0x7fff5b3ffa80, env=0x7fff79305840, eval_flags=ql::NO_FLAGS) at src/rdb_protocol/term.cc:275

14 0x0000000000c64a11 in operator() (this=) at src/rdb_protocol/term.cc:297

15 call_with_enough_stack<scoped_ptr_t, (lambda at src/rdb_protocol/term.cc:296:57)> (min_bytes_free=32768, fun=)

at ./src/arch/runtime/coroutines.hpp:264

16 ql::runtime_term_t::eval (this=0x7fff5b3ffa80, env=, eval_flags=) at src/rdb_protocol/term.cc:296

17 0x0000000000b65253 in ql::query_cache_t::ref_t::run (this=0x7fffe0033300, env=0x7fff79305a10, res=0x7fff79305db0) at src/rdb_protocol/query_cache.cc:292

18 0x0000000000b6454d in ql::query_cache_t::ref_t::fill_response (this=0x7fffe0033300, res=0x7fff79305db0) at src/rdb_protocol/query_cache.cc:228

19 0x0000000000bbb4d5 in rdb_query_server_t::run_query (this=0x7fffd7c642c8, query_params=, response_out=0x7fff79305db0, interruptor=)

at src/rdb_protocol/query_server.cc:45

20 0x00000000007bbf39 in void query_server_t::connection_loop(linux_tcp_connt, unsigned long, ql::query_cachet, signalt)::{lambda()#1}::operator()() const::{lambda()#1}::operator()() const (this=0x7fff79305d70) at src/client_protocol/server.cc:632

21 0x00000000007bbc8f in save_exception<void query_server_t::connection_loop(linux_tcp_connt, unsigned long, ql::query_cachet, signalt)::{lambda()#1}::operator()() const::{lambda()#1}>(std::__exception_ptr::exceptionptr, std::string_, condt, void query_server_t::connection_loop(linux_tcp_connt, unsigned long, ql::query_cachet, signalt)::{lambda()#1}::operator()() const::{lambda()#1}&&) (err=0x7fffd7e9c688, err_str=0x7fffd7e9c680,

abort=0x7fffd7e9c650, fn=<unknown type in /home/ssd2/nighelles/rethinkdb-enterprise/build/release_clang/rethinkdb, CU 0x35261e, DIE 0x38d7e6>)
at src/client_protocol/server.cc:583

22 0x00000000007bb890 in void query_server_t::connection_loop(linux_tcp_connt, unsigned long, ql::query_cachet, signal_t*)::{lambda()#1}::operator()() const (this=0x7fffa63fb7b8) at src/client_protocol/server.cc:631

23 0x0000000000760434 in coro_t::run () at src/arch/runtime/coroutines.cc:277

24 0x0000000000000000 in ?? ()

nighelles commented 8 years ago

I think I found what was causing these. Closing unless we see it again.