Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core dump #65

Closed
249198000 opened this issue Mar 24, 2024 · 1 comment
Closed

core dump #65

249198000 opened this issue Mar 24, 2024 · 1 comment

Comments

@249198000
Copy link

249198000 commented Mar 24, 2024

Has anyone successfully run it on the mainnet-beta? Why do I always exit abnormally every time, and the plugin settings only saved a few million account data? The server memory is 512g.

dmesg output ========》
[10263.326006] solBstoreProc02[15654]: segfault at 1 ip 00007ff829683dcd sp 00007f9e03988368 error 4 in libc.so.6[7ff8294fd000+195000]
[10263.326025] Code: 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 48 89 f8 48 83 fa 20 72 33 <62> e1 fe 28 6f 06 48 83 fa 40 0f 87 a3 00 00 00 62 e1 fe 28 6f 4c

gdb ========》
#0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:317
lijunwangs/solana-accountsdb-plugin-postgres#1 0x00007f0106986542 in core::intrinsics::copy_nonoverlapping (src=, dst=,
count=) at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/intrinsics.rs:2702
lijunwangs/solana-accountsdb-plugin-postgres#2 core::ptr::const_ptr::{impl#0}::copy_to_nonoverlapping (self=, dest=,
count=)
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ptr/const_ptr.rs:1316
lijunwangs/solana-accountsdb-plugin-postgres#3 alloc::slice::hack::{impl#1}::to_vec<u8, alloc::alloc::Global> (s=..., alloc=...)
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/slice.rs:167
lijunwangs/solana-accountsdb-plugin-postgres#4 0x00007f010667140c in alloc::slice::hack::to_vec<u8, alloc::alloc::Global> (s=...)
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/slice.rs:111
lijunwangs/solana-accountsdb-plugin-postgres#5 alloc::slice::{impl#0}::to_vec_in<u8, alloc::alloc::Global> (self=...)
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/slice.rs:441
lijunwangs/solana-accountsdb-plugin-postgres#6 alloc::slice::{impl#0}::to_vec (self=...)
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/alloc/src/slice.rs:416
lijunwangs/solana-accountsdb-plugin-postgres#7 0x00007f0105f59edc in solana_geyser_plugin_postgres::postgres_client::{impl#1}::new::{closure#0}<solana_geyser_plugin_interface::geyser_plugin_interface::ReplicaAccountInfoV3> (v=...) at src/postgres_client.rs:122
lijunwangs/solana-accountsdb-plugin-postgres#8 0x00007f0105f42fe2 in core::option::Option<&[u8]>::map<&[u8], alloc::vec::Vec<u8, alloc::alloc::Global>, solana_geyser_plugin_postgres::postgres_client::{impl#1}::new::{closure_env#0}<solana_geyser_plugin_interface::geyser_plugin_interface::ReplicaAccountInfoV3>> (self=..., f=...)
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/option.rs:1072
lijunwangs/solana-accountsdb-plugin-postgres#9 0x00007f0105f59db2 in solana_geyser_plugin_postgres::postgres_client::DbAccountInfo::new<solana_geyser_plugin_interface::geyser_plugin_interface::ReplicaAccountInfoV3> (account=0x7ea70087be90, slot=255435149)
at src/postgres_client.rs:122
#10 0x00007f0105f74aa1 in solana_geyser_plugin_postgres::postgres_client::ParallelPostgresClient::update_account
(self=0x7f014ea2b1d0, account=0x7ea70087be90, slot=255435149, is_startup=false)
at src/postgres_client.rs:1176
#11 0x00007f0105f4b74a in solana_geyser_plugin_postgres::geyser_plugin_postgres::{impl#1}::update_account (
self=0x7f014ea2b1c0, account=..., slot=255435149, is_startup=false) at src/geyser_plugin_postgres.rs:283

solana-validator v1.17.27
install script: sh -c "$(curl -sSfL https://release.solana.com/v1.17.27/install)"

cmd line
solana-validator
--identity /root/sol/validator-keypair.json
--trusted-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2
--trusted-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ
--trusted-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ
--trusted-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S
--no-untrusted-rpc
--ledger /mnt/ledger
--accounts /mnt/accounts
--rpc-port 8899
--private-rpc
--no-port-check
--no-voting
--dynamic-port-range 8000-8110
--entrypoint entrypoint.mainnet-beta.solana.com:8001
--entrypoint entrypoint2.mainnet-beta.solana.com:8001
--entrypoint entrypoint3.mainnet-beta.solana.com:8001
--entrypoint entrypoint4.mainnet-beta.solana.com:8001
--entrypoint entrypoint5.mainnet-beta.solana.com:8001
--expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d
--wal-recovery-mode skip_any_corrupted_record
--limit-ledger-size 536870912000
--log /root/sol/solana-validator.log
--geyser-plugin-config /root/sol/plugin_debug.cfg
--no-snapshot-fetch

@249198000
Copy link
Author

Important: Solana's plugin interface requires the build environment of the Solana validator and this plugin to be identical.

This includes the Solana version and Rust compiler version. Loading a plugin targeting wrong versions will result in memory corruption and crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant