Skip to content

Conversation

procdump
Copy link
Collaborator

No description provided.

procdump and others added 30 commits June 25, 2025 08:53
1) Refrain from unwraps()
2) Revise pubs
3) fmt
should you encounter issues with cargo fetching:
mkdir -p .cargo
vi .cargo/config.toml
and add

[net]
git-fetch-with-cli = true
of the main types (Instruction, Metadata, Pubkey, SyscallStubs, etc..)
procdump and others added 30 commits July 17, 2025 13:05
Then with RUST_LOG=info we can see notable msgs.
This fixes a segfault on Linux while still working on MacOS.
The reason:
- Linux - When the Library (from libloading) is dropped, it calls dlclose(),
which immediately unloads the .so from memory.
- MacOS - The system's dlclose() is effectively a no-op — it doesn't
actually unload the library from memory in most cases.
This makes macOS more permissive but also more misleading — it hides bugs
that will break on Linux.
start using it through the master branches of solana-program-stubs.
use the original_data_len as done in solana-bpf-loader-program's
deserialize_parameters_aligned. Mind that the padding in the input
should hold the original_data_len but nevertheless have the lens from
the serialized account meta data after the serialization.
This avoids the need to pre-sign with payer as done before.
Equalize ProgramTestContext's recent blockhash with transaction's.
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

Successfully merging this pull request may close these issues.

2 participants