Skip to content

Minor fix

Xiating Xie requested to merge xiext/wukong:fix into master
  1. Changes in config.hpp

    • Missing compile setting in config.hpp leads to confusing warning when binding cores.
  2. Changes in loader/base_loader.hpp

    • Add loading check before minus one since "gstore->num_normal_preds == -1" will lead to endless loop in function [init_seg_metas].
  3. Changes in mm/jemalloc.hpp, store/dynamic_gstore.hpp

    • jemalloc.hpp: add range check to notify the reason why "memory range false" happened. This is just to make debugging easier.
    • dynamic_gstore.hpp: fix bug when insert idx.

    -----------------------------bug----------------------------

    INFO: #0: 1905ms for initializing predicate segment statistics. ERROR: memory range false ERROR: Assertion: /home/xxt/wukong/core/mm/jemalloc.hpp(malloc:155): 'false' failed terminate called after throwing an instance of 'WukongException' what(): Something wrong happened

    ------------------------------bug---------------------------

    The bug can be reproduced in the following configuration.

    $ ./build.sh -DUSE_DYNAMIC_GSTORE=ON

    -------------config-------------

    global_num_proxies 1

    global_num_engines 1

           ... ...

    -------------config--------------

Edited by Xiating Xie

Merge request reports