Skip to content

Panic: "Assertion failed: [pval2.has()]" using .get() with rethinkdb._debug_table_status #3501

Closed

Description

@larkost

This is likely associated with (or duplicate to) #3487. It is hitting slightly differently, so I am posting this separately.

next edc8056 is reliably crashing with an assertion (Assertion failed: [pval2.has()]) when I do the following:

import rethinkdb as r
conn = r.connect().repl()
r.table_create('bob').run()
r.db('rethinkdb').table('_debug_table_status').get(r.table('bob').config()['id']).run()

Here is the crash output:

Version: rethinkdb 1.15.2-1552-gedc805-dirty (debug) (CLANG 6.0 (clang-600.0.56))
error: Error in src/rdb_protocol/artificial_table/artificial_table.cc at line 27:
error: Assertion failed: [pval2.has()] 
error: Backtrace:
error: Mon Jan  5 16:11:26 2015

       1: 0   rethinkdb                           0x00000001027d1db0 _Z19rethinkdb_backtracePPvi + 272 at 0x1027d1db0 ()
       2: 0   rethinkdb                           0x00000001019c1ef0 _ZN11backtrace_tC2Ev + 304 at 0x1019c1ef0 ()
       3: 0   rethinkdb                           0x00000001019c3e0b _ZN26lazy_backtrace_formatter_tC2Ev + 43 at 0x1019c3e0b ()
       4: 0   rethinkdb                           0x00000001019c0d55 _ZN26lazy_backtrace_formatter_tC1Ev + 21 at 0x1019c0d55 ()
       5: 0   rethinkdb                           0x00000001019c0cc0 _Z16format_backtraceb + 48 at 0x1019c0cc0 ()
       6: 0   rethinkdb                           0x000000010218b2dd _Z18report_fatal_errorPKciS0_z + 733 at 0x10218b2dd ()
       7: 0   rethinkdb                           0x0000000102221974 _Z29checked_read_row_from_backendP26artificial_table_backend_tRKN2ql7datum_tEP8signal_tPS2_PNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEE + 404 at 0x102221974 ()
       8: 0   rethinkdb                           0x0000000102221c58 _ZN18artificial_table_t8read_rowEPN2ql5env_tENS0_7datum_tEb + 248 at 0x102221c58 ()
       9: 0   rethinkdb                           0x000000010279535e _ZN2ql7table_t7get_rowEPNS_5env_tENS_7datum_tE + 142 at 0x10279535e ()
       10: 0   rethinkdb                           0x00000001027a40e1 _ZN2ql15get_selection_t3getEv + 145 at 0x1027a40e1 ()
       11: 0   rethinkdb                           0x0000000102792e30 _ZNK2ql5val_t8as_datumEv + 128 at 0x102792e30 ()
       12: 0   rethinkdb                           0x00000001026ca3e8 _ZN2ql3runENS_8protob_tI5QueryEEP13rdb_context_tP8signal_tPNS_14stream_cache_tERK13ip_and_port_tP8Response + 4040 at 0x1026ca3e8 ()
       13: 0   rethinkdb                           0x000000010262f170 _ZN18rdb_query_server_t9run_queryERKN2ql8protob_tI5QueryEEP8ResponseP16client_context_tRK13ip_and_port_t + 928 at 0x10262f170 ()
       14: 0   rethinkdb                           0x0000000102216d3e _ZN14query_server_t15connection_loopI15json_protocol_tEEvP16linux_tcp_conn_tP16client_context_t + 302 at 0x102216d3e ()
       15: 0   rethinkdb                           0x0000000102213663 _ZN14query_server_t11handle_connERK12scoped_ptr_tI27linux_tcp_conn_descriptor_tEN14auto_drainer_t6lock_tE + 2771 at 0x102213663 ()
       16: 0   rethinkdb                           0x000000010221c41c _ZNSt3__110__function6__funcINS_6__bindIM14query_server_tFvRK12scoped_ptr_tI27linux_tcp_conn_descriptor_tEN14auto_drainer_t6lock_tEEJPS3_RNS_12placeholders4__phILi1EEESA_EEENS_9allocatorISI_EEFvRS6_EEclESL_ + 716 at 0x10221c41c ()
       17: 0   rethinkdb                           0x00000001019822f0 _ZNKSt3__18functionIFvR12scoped_ptr_tI27linux_tcp_conn_descriptor_tEEEclES4_ + 160 at 0x1019822f0 ()
       18: 0   rethinkdb                           0x000000010197e53c _ZN32linux_nonthrowing_tcp_listener_t6handleEi + 108 at 0x10197e53c ()
       19: 0   rethinkdb                           0x000000010198548e _ZN26callable_action_instance_tINSt3__16__bindIM32linux_nonthrowing_tcp_listener_tFviEJPS2_RiEEEE10run_actionEv + 302 at 0x10198548e ()
       20: 0   rethinkdb                           0x00000001019b0cfc _ZN25callable_action_wrapper_t3runEv + 108 at 0x1019b0cfc ()
       21: 0   rethinkdb                           0x00000001019910b5 _ZN6coro_t3runEv + 917 at 0x1019910b5 ()

Activity

  1. added this to the 1.16 milestone on Jan 6, 2015
  2. danielmewes commented on Jan 6, 2015

    @danielmewes
    Member

    Mentioning @Tryneus and @timmaxw . Whoever gets to #3487 first should probably take this one too.

  3. Tryneus commented on Jan 6, 2015

    @Tryneus
    Member

    This appears to be a debug assertion that failed because _debug_stats_table reported its primary key as id, but returned rows with uuid instead. This goes away by renaming uuid to id. Still investigating #3487.

  4. Tryneus commented on Jan 6, 2015

    @Tryneus
    Member

    The fix has been approved and merged to next in commit 6598f54 (review was 2431). Will be in release 1.16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions