electrs: Bug: Segmentation Fault Error at indexing blocks [180001..182000]

Describe the bug Everytime I start electrs I get a seg fault error at indexing the blocks. Specifically at blocks [180001…182000]. It’s always in the same spot. Any help would be appreciated.

Electrs version v.0.10.5

To Reproduce Steps to reproduce the behavior:

  1. Configure and start electrs
  2. Wait
  3. See error

Expected behavior Indexing throws no errors.

Configuration

electrs.toml Didn't find it in the directory.
[2024-07-12T16:42:00.610Z INFO  electrs::index] indexing 2000 blocks: [180001..182000]
Segmentation fault (core dumped)

running with gdb:


Thread 8 "rocksdb:high" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff58006c0 (LWP 3120)]
0x0000555555ba5775 in rocksdb::CompressionContextCache::Rep::GetZSTDUncompressData() ()

Environment variables: ELECTRS_X=Y;... Arguments: --foo

System running electrs

  • Deployment method: manual from source
  • OS name and version: Ubuntu Server 24.04 LTS

Electrum client Client name (if not upstream desktop Electrum) and version: no electrum installed

Additional context n/a

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

Found the issue for me, I was missing the build-essential package. After installing it and rebuilding electrs it works like a charm.

@romanz I built using OpenEmbedded/Yocto not quiet standard build system:

https://github.com/embetrix/meta-satobox/blob/scarthgap/recipes-extended/electrs/electrs_0.10.9.bb

I just noticed, that I do get error now only for x86_64 , aarch64 seems to be working fine

How come it even compiled without it?! That’s super weird.