Skip to content

Commit

Permalink
Added patches to fix SEGV problem
Browse files Browse the repository at this point in the history
See github.com/EOSIO/eos/pull/7437
  • Loading branch information
Matthieu Vachon committed May 30, 2019
1 parent b783f4a commit 2c73748
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudbuild-eos-dm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ substitutions:
_TAG: v1.8.0-rc2
# Check available tags via `gcr.io/${PROJECT_ID}/eosio-buildenv` images
_EOSIO_BUILDENV_TAG: v1.8.0-rc2
_PATCHES: "eos-deep-mind-v1.8.0-rc2-v10.1.patch eos-deep-mind-logging-v1.8.0-rc2-v10.1.patch"
_PATCHES: "eos-deep-mind-v1.8.0-rc2-v10.1.patch eos-deep-mind-logging-v1.8.0-rc2-v10.1.patch github.com-eosio-eos-91c7912b62eabbf0d42bebf6ecdbba009d15f5f9"

steps:
- id: docker-build-full
Expand Down
2 changes: 1 addition & 1 deletion cloudbuild-eos-vanilla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ substitutions:
_TAG: v1.8.0-rc2
# Check available tags via `gcr.io/${PROJECT_ID}/eosio-buildenv` images
_EOSIO_BUILDENV_TAG: v1.8.0-rc2
_PATCHES: ""
_PATCHES: "github.com-eosio-eos-91c7912b62eabbf0d42bebf6ecdbba009d15f5f9"

steps:
- id: docker-eos-full
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/plugins/producer_plugin/producer_plugin.cpp b/plugins/producer_plugin/producer_plugin.cpp
index 044caa2757..ab9f5c8aa9 100644
--- a/plugins/producer_plugin/producer_plugin.cpp
+++ b/plugins/producer_plugin/producer_plugin.cpp
@@ -1493,7 +1493,7 @@ producer_plugin_impl::start_block_result producer_plugin_impl::start_block() {

if( preprocess_deadline <= fc::time_point::now() ) exhausted = true;
if( exhausted ) break;
- const auto& trx = itr->second;
+ const transaction_metadata_ptr trx = itr->second;
auto category = calculate_transaction_category(trx);
if (category == tx_category::EXPIRED ||
(category == tx_category::UNEXPIRED_UNPERSISTED && _producers.empty()))

0 comments on commit 2c73748

Please sign in to comment.