Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Fix segmentation fault of using --cache option without redis server #528

Open
marktwtn opened this issue Mar 24, 2020 · 0 comments
Open
Assignees
Labels
C-bug Category - Something isn't working help wanted Community contributors are welcome P-low Priority - Low, not necessary

Comments

@marktwtn
Copy link
Contributor

When running the tangle-accelerator with the command bazel run //accelerator -- --cache , the segmentation fault would occur if the Redis server is not activated.

Error message:

INFO: Analyzed target //accelerator:accelerator (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //accelerator:accelerator up-to-date:
  bazel-bin/accelerator/accelerator
INFO: Elapsed time: 0.243s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
2020-03-24 22:05:31:         config:   INFO: [ta_core_default_init : 209] enable logger config.
2020-03-24 22:05:31:         config:   INFO: [ta_core_default_init : 219] Initializing TA information
2020-03-24 22:05:31:         config:   INFO: [ta_core_default_init : 232] Initializing Redis information
2020-03-24 22:05:31:         config:   INFO: [ta_core_default_init : 237] Initializing IRI configuration
2020-03-24 22:05:31:         config:   INFO: [ta_core_default_init : 245] Initializing IRI connection
2020-03-24 22:05:31:   cclient_core:   INFO: [logger_init_client_core:16] enable logger cclient_core.
2020-03-24 22:05:31:json_serializer:   INFO: [logger_init_json_serializer:16] enable logger json_serializer.
2020-03-24 22:05:31:cclient_extended:   INFO: [logger_init_client_extended:16] enable logger cclient_extended.
2020-03-24 22:05:31:         config:   INFO: [ta_core_set : 417] Initializing PoW implementation context
2020-03-24 22:05:31:         config:   INFO: [ta_core_set : 420] Initializing cache state
fish: 'bazel run //accelerator -- --ca…' terminated by signal SIGSEGV (Address boundary error)

The debugging command:

# build debug version
$ bazel build -c dbg //accelerator

# run with gdb
$ gdb --args bazel-bin/accelerator/accelerator
@marktwtn marktwtn added C-bug Category - Something isn't working P-low Priority - Low, not necessary labels Mar 24, 2020
@marktwtn marktwtn self-assigned this Apr 6, 2020
@howjmay howjmay added the help wanted Community contributors are welcome label May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-bug Category - Something isn't working help wanted Community contributors are welcome P-low Priority - Low, not necessary
2 participants