-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Edit: See next comment for an even simpler repro using the data explorer
The following node.js insert code (using rethinkdb npm package version 2.3.2) triggers this:
// hash is a string, data is a node.js Buffer (<= 32KB)
r.table('woot')
.insert({ id: hash, type: 'chunk', data: data, length: data.length, count: 1 },
{
// Crashes server...
conflict: r.js("(function (id, o, n) { return n; })")
}
)
.run(connection, function (err, res) { if (err) throw err; });Replacing the r.js() call above with just the bare js function definition resolves the server crash.
Here is the resulting server crash console dump:
Running rethinkdb 2.3.3 (CLANG 7.3.0 (clang-703.0.29))...
Running on Darwin 15.5.0 x86_64
Loading data from directory /Users/vsivsi/rethinkdb_data
Listening for intracluster connections on port 29015
Listening for client driver connections on port 28015
Listening for administrative HTTP connections on port 8080
Listening on cluster addresses: 127.0.0.1, ::1
Listening on driver addresses: 127.0.0.1, ::1
Listening on http addresses: 127.0.0.1, ::1
To fully expose RethinkDB on the network, bind to all addresses by running rethinkdb with the `--bind all` command line option.
Server ready, "servername" server-id
Version: rethinkdb 2.3.3 (CLANG 7.3.0 (clang-703.0.29))
error: Error in ./build/external/boost_1.56.0/include/boost/optional/optional.hpp at line 992:
error: BOOST_ASSERT failure in 'reference_type boost::optional<unsigned long>::get()': this->is_initialized()
error: Backtrace:
error: Wed Jun 8 17:54:40 2016
1 [0x106c01be4]: 0 rethinkdb 0x0000000106c01be4 _Z11deserializeIL17cluster_version_t8EE16archive_result_tP13read_stream_tP17repli_timestamp_t + 548 at 0x106c01be4 ()
2 [0x10668548c]: 0 rethinkdb 0x000000010668548c _ZN9starter_t11run_wrapperERKNSt3__18functionIFvvEEE + 18892 at 0x10668548c ()
3 [0x1066867a7]: 0 rethinkdb 0x00000001066867a7 _ZN9starter_t11run_wrapperERKNSt3__18functionIFvvEEE + 23783 at 0x1066867a7 ()
4 [0x106684fd0]: 0 rethinkdb 0x0000000106684fd0 _ZN9starter_t11run_wrapperERKNSt3__18functionIFvvEEE + 17680 at 0x106684fd0 ()
5 [0x10697fc96]: 0 rethinkdb 0x000000010697fc96 _Z11deserializeIL17cluster_version_t8EE16archive_result_tP13read_stream_tP13name_string_t + 13750 at 0x10697fc96 ()
6 [0x1069801e6]: 0 rethinkdb 0x00000001069801e6 _Z11deserializeIL17cluster_version_t8EE16archive_result_tP13read_stream_tP13name_string_t + 15110 at 0x1069801e6 ()
7 [0x106be3cd0]: 0 rethinkdb 0x0000000106be3cd0 _ZN2ql18with_fields_term_t7rewriteERKNS_10raw_term_tE + 163008 at 0x106be3cd0 ()
8 [0x106ad9ce1]: 0 rethinkdb 0x0000000106ad9ce1 _Z11deserializeIL17cluster_version_t8EE16archive_result_tP13read_stream_tP16ellipsoid_spec_t + 340129 at 0x106ad9ce1 ()
9 [0x106b80e3b]: 0 rethinkdb 0x0000000106b80e3b _ZN2ql11deserializeIL17cluster_version_t8EEE16archive_result_tP13read_stream_tPNS_5sym_tE + 15547 at 0x106b80e3b ()
10 [0x106b80fea]: 0 rethinkdb 0x0000000106b80fea _ZN2ql11deserializeIL17cluster_version_t8EEE16archive_result_tP13read_stream_tPNS_5sym_tE + 15978 at 0x106b80fea ()
11 [0x106b44046]: 0 rethinkdb 0x0000000106b44046 _ZN5boost9date_time6c_time6gmtimeEPKlP2tm + 15206 at 0x106b44046 ()
12 [0x106b43636]: 0 rethinkdb 0x0000000106b43636 _ZN5boost9date_time6c_time6gmtimeEPKlP2tm + 12630 at 0x106b43636 ()
13 [0x106b45e49]: 0 rethinkdb 0x0000000106b45e49 _ZN5boost9date_time6c_time6gmtimeEPKlP2tm + 22889 at 0x106b45e49 ()
14 [0x1066e5bcf]: 0 rethinkdb 0x00000001066e5bcf _Z11deserializeIL17cluster_version_t8EE16archive_result_tP13read_stream_tP13sindex_name_t + 210687 at 0x1066e5bcf ()
15 [0x1066e58bb]: 0 rethinkdb 0x00000001066e58bb _Z11deserializeIL17cluster_version_t8EE16archive_result_tP13read_stream_tP13sindex_name_t + 209899 at 0x1066e58bb ()
16 [0x10667bb95]: 0 rethinkdb 0x000000010667bb95 _ZN8signal_t5pulseEv + 7973 at 0x10667bb95 ()
error: Exiting.
Version: rethinkdb 2.3.3 (CLANG 7.3.0 (clang-703.0.29))
Crashing while already crashed. Printing error message to stderr.
BOOST_ASSERT failure in 'reference_type boost::optional<unsigned long>::get()': this->is_initialized()Trace/BPT trap: 5