Skip to content

Error : regex_error #2123

Description

@xguya

Describe the bug
when I run ./xmrig I get this error: what(): regex_error

To Reproduce
yum install -y git make cmake gcc gcc-c++ libstdc++-static libuv-static hwloc-devel openssl-devel
git clone https://github.com/xmrig/xmrig.git
mkdir xmrig/build && cd xmrig/build
cmake ..
make -j$(nproc)

Required data
Error:
./xmrig

  • ABOUT XMRig/6.9.0 gcc/4.8.5
  • LIBS libuv/1.40.0 OpenSSL/1.0.2k hwloc/1.11.8
  • HUGE PAGES supported
  • 1GB PAGES unavailable
  • CPU Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz (1) 64-bit AES
    L2:1.0 MB L3:8.0 MB 4C/8T NUMA:1
  • MEMORY 15.2/15.5 GB (98%)
    terminate called after throwing an instance of 'std::regex_error'
    what(): regex_error

OS - CentOS Linux release 7.9.2009 (Core)
Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
NO GPU

Default config.json (added just my ewallet)

Activity

  1. xguya commented on Feb 21, 2021

    @xguya
    Author

    solved with: Static, CPU only https://xmrig.com/download

  2. guoshuaifeng commented on Feb 27, 2021

    @guoshuaifeng

    But i need to build from source,How to solve it ?

  3. xmrig commented on Feb 27, 2021

    @xmrig
    Owner

    gcc 4.8 has bad incomplete c++ regex support as a temporary solution you can disable DMI support by using -DWITH_DMI=OFF CMake option.
    Thank you.

  4. reopened this on Feb 27, 2021
  5. added this to the v6 milestone on Feb 27, 2021
  6. added a commit that references this issue on Feb 27, 2021
  7. xmrig commented on Feb 27, 2021

    @xmrig
    Owner

    Fixed in dev branch.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions